-
-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[14.0] add support for VAT return with teletransmission #321
Conversation
|
Hi alexis. Thanks for sharing this module. I'm not using teledec, so not interested by the whole PR. However, your PR introduce a type on fiscal position that is interesting and is missing in odoo. I propose that I refactor this part to have something more generic and also to take advantage of fiscal position template to avoid useless configuration. (https://github.com/odoo/odoo/blob/15.0/addons/account/models/chart_template.py#L1277) Please wait before merging this PR. Regards. |
8f89a89
to
51b8a35
Compare
|
I don't plan to merge this PR in the short term. I want to add tests first (the work has already started, but it's far from finished). I'm ok to add a field "fr_vat_type" on account.fiscal.position.template and add the data for the 4 fiscal position templates provided by l10n_fr. What do you mean exactly by "to have something more generic" ? |
I think that having a type on fiscal position could be a great feature. For that purpose, I imagine the following design :
then,
what do you think ? Note : as there is a module name |
|
Well, that's a good idea in theory, but I'm not sure about the result in real life. It's good to have a common field, but then we would have to agree on the content of the selection list if we really want to have several modules that use the same field. For example, the module "intrastat_base" adds an "intrastat" boolean on account.fiscal.position, cf https://github.com/OCA/intrastat-extrastat/blob/14.0/intrastat_base/models/account_fiscal_position.py#L11 Concretely, how do YOU plan to use that new field? Do you already have an idea in mind? |
|
Hi @alexis-via. Thanks a lot for your answer. this puts the finger on a discomfort I had with my proposal, but which I could not identify.
Well, in a few word.
You're right. This situation should be avoided. V2 Proposal !What about a module named the model could be something like :
Ex 1 : for your module Ex 2 : for Better ? |
|
@alexis-via : here is a PoC. OCA/account-fiscal-rule#245 you could remove :
replace by a data file of tags, and optionally another to configure templates (so that configuration will be correct when installing l10n_fr chart of account on a new company) |
|
One remark and proposal for VAT on payment with advance payments. Currently, when doing a native "sale down payment invoice" we don't have VAT taxes on the "advance payment product". it means that later on, when doing the VAT return computation we will miss the advance payment VAT in this part of the code: @alexis-via what's you idea to deal with such cases? My idea would be to attach the different VAT taxes on the advance payment invoice line with amounts proportional to the global amount paid in advance proportion. Then we would find the proper VAt account move lines in the advance payment invoices for the VAT return declaration. What do you think? cc @clementmbr |
|
reply to self, here is a workaround to collect the proper taxes in Down Payments at least in France https://github.com/akretion/odoo-usability/pull/175/files |
|
Travis error says "AttributeError: module 'PyPDF2' has no attribute 'filters'". |
…_teledec l10n_fr_account_vat_return: adds support for French VAT declaration l10n_fr_account_vat_return_teledec: allows to teletransmit the French VAT declaration via teledec.fr
Archive CA3 PDF at sent step Re-activate check of SIREN and period in CA3 input page Add reimbursement_comment_dgfip in reimbursement wizard
Add a field in tree view of VAT return
…q moves are not in VAT return period pre-commit fix
Update for new box codes used in 2022 Introduce first tests (to be continued) Add a new type "France exo" for fiscal positions
…ility='on_invoice'
…_on_payment Add tests on the lines of the account.move generated
…ny that has the l10n_fr standard chart of accounts Add expense account on some appendix taxes
Improve tests: we now have a full test suite for on_invoice and on_payment
…t.move by a new type of fiscal position Migration scripts provided
…here is no partial payment). Add a test for this new feature. pre-commit fixes
Improve source strings Several small usability improvements (dynamic columns on log lines, source invoice M2O field)
b06d3a3
to
083ae50
Compare
|
I recommend we take the opportunity to switch to GitHub actions ci on this repo, as it's what's been done in most oca repositories. Might just solve this issue too |
|
Yes, feel free to propose a PR to switch to Github actions or what-ever-is-the-new-standard. |
|
… to support the scenario where some intracom purchase invoices where dated before the VAT period and hadn't been autoliquidated yet Update comments with 2022 codes for form boxes
|
@alexis-via |
Add tests for negative due VAT and negative deductible VAT
… is not set on invoice line
…s lines and invert sign in total amount + add warning banner and color in tree view
Fix test when stock module is not installed (can't use type='product', only 'consu')
…o impact invoices already generated. Easier inheritance for the on_payment/on_invoice algo when fr_vat_exigibility is 'auto'
|
My TODO list on the VAT return module is now empty :) |
|
/ocabot merge nobump |
|
Hey, thanks for contributing! Proceeding to merge this for you. |
|
Congratulations, your PR was merged at 6746eb5. Thanks a lot for contributing to OCA. ❤️ |

l10n_fr_account_vat_return: adds support for French VAT return
l10n_fr_account_vat_return_teledec: allows to teletransmit the French VAT return via teledec.fr
Express demo of the module : https://www.youtube.com/watch?v=40sJ9kHXoEk
Blog post with lots of information about these new modules: https://akretion.com/fr/blog/nouveau-module-odoo-declaration-de-tva-avec-teletransmission