Daily updates from Odoo
Wednesday, June 5, 2024
1 change
Resolved issues and error corrections
This fix prevents users from resetting invoices back to draft status after they have been successfully sent and accepted by AFIP (Argentina's tax authority). Previously, this was possible and caused data inconsistencies between Odoo and AFIP's records. Now, once an invoice is sent and validated, it cannot be edited or reverted to draft, ensuring data integrity and compliance with tax regulations.
Original PR description
Before this commit, when sending an invoice to the AFIP and that the result was accepted, it was still possible to reset the invoice the draft which caused discrepancies between the data in Odoo and the data that has already been sent to AFIP. This button to reset to draft is enabled for all users in Accounting. After an invoice is sent and validated, we cannot edit them. task-3955111 Forward-Port-Of: odoo/enterprise#63407