Daily updates from Odoo
Sunday, December 14, 2025
2 changes · master
Resolved issues and error corrections
This update addresses a requirement in Mexican e-invoicing (CFDI) that prohibits negative line discounts. The change adds a test to verify that negative line amounts are correctly distributed across multiple positive line discounts, ensuring compliance with Mexican regulations. This prevents potential invoicing errors and associated financial issues.
Original PR description
In mexico, you cannot send any negative lines in the CFDI (Mexican e-invoicing). The negative lines are distributed accross the positive ones in _dispatch_global_discount_lines. This test ensures the negative line is well distributed when its amount is higher than the sum of multiple positive lines. Forward-Port-Of: odoo/enterprise#101888
This update enhances the accuracy of tax calculations within the bank reconciliation widget. It prevents accidental tax line deletions, automatically creates tax lines when default taxes are applied, and ensures correct tax recomputation across various scenarios. This improves the reliability of financial reporting.
Original PR description
This commit will do multiple things: - Prevent users from deleting a tax line - Adding default taxes on an account will create a tax line for it - Removing a taxes from a line will recompute the taxes correctly - Removing and adding new taxes will recompute the taxes correctly - Removing a base line that has a tax linked to it will recompute the taxes correctly - Add a simple way for users to delete the tax directly from the ui without going to the edit line button task: 5081786 Forward-Port-Of: odoo/enterprise#102031 Forward-Port-Of: odoo/enterprise#94552