d1f9b17f514c05f2cea48d5ef6e0c253dfe917e7
Steps to reproduce: - install l10n_it_edi - create a bill and set the move line with a tax "RC" - confirm -> the blue banner edi appears - reset to draft - change the tax to a non "RC" tax - post the bill Issue: Despite resetting the bill to draft state and rectifying the tax configuration, the document could still undergo unintended processing as a Reverse Charge Bill. Solution: Reverse Charge bills, particularly those involving Intra-EU transactions, mandate that the VAT be paid by the buyer rather than the seller. Italian EDI regulations necessitate the submission of such bills to the Tax Agency, specifying the buyer's tax obligations through a process known as tax-integration or self-invoicing. In cases where an incorrect Reverse Charge tax is mistakenly applied to a domestic vendor bill, the existing issue becomes evident. Even if the bill is Reset to Draft and the incorrect tax is removed, the associated edi_document will still be existing and will still have its "to_send" state. Consequently, the Scheduled action incorrectly attempts to send it. This commit rectifies the problem by ensuring that when a bill is reset to draft state, the associated edi_document is promptly deleted. The document will be recreated only during the posting process, should it genuinely require submission to the tax agency. opw-3281007 closes odoo/odoo#132752 X-original-commit: f2c973a970af947a0e77a5e835237b09f11bdf7e Related: odoo/enterprise#46112 Signed-off-by: Laurent Smet (las) <las@odoo.com> Signed-off-by: Yolann Sabaux (yosa) <yosa@odoo.com>
…
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%