Wednesday, September 17, 2025
1 change · master
Enhancements to existing features
Mexican CFDI e-invoices are now generated so their totals match the validation method used by the SAT tax authority. This reduces the risk of rejected invoices by automatically handling rounding differences through discounts or an adjustment line when needed.
Original PR description
Simplify the CFDI generation. Now the totals are always computed from the lines. That way, it's impossible for the SAT to refuse a CFDI since it's built in the way the SAT checks the validity of the file. The difference between the CFDI total and the original documents is put using the discount if available. If not, we add a fake line in the CFDI. task-id: 4926200 Forward-Port-Of: odoo/enterprise#94602 Forward-Port-Of: odoo/enterprise#90434