Daily updates from Odoo
Thursday, March 5, 2026
1 change · 17.0
Enhancements to existing features
This update enhances Odoo's ability to handle taxes in UBL and CII EDI formats by introducing an 'allowance/charge' mechanism. Previously, tax handling was limited, now businesses can accurately represent complex fiscal scenarios like discounts and charges. Comprehensive testing ensures correct export and import of invoices with these new tax configurations.
Original PR description
This **PR** introduces support for the Allowance/Charge mechanism in UBL and CII EDI formats. Previously, allowance and charge handling was static and implicit: fixed taxes were always exported as…
This **PR** introduces support for the Allowance/Charge mechanism in UBL and CII EDI formats. Previously, allowance and charge handling was static and implicit: fixed taxes were always exported as charges with code AEO, while line discounts were exported as allowances with code 95, which did not allow correct modeling of many real-world fiscal scenarios. A new configuration is added on the tax form to explicitly define whether a tax is treated as a regular tax or as an allowance/charge. When marked as an allowance/charge, the corresponding code and reason can be defined. The sign of the amount determines the semantic: negative values are treated as allowances, while positive values are treated as charges. When applied on invoices, such taxes are exported as AllowanceCharge elements in UBL and CII for EDI purposes. Support is also added for importing invoices containing such allowance/charge entries. Additionally, test cases are added to validate correct behavior across export and import flows, including scenarios combining standard taxes with allowance/charge entries. **task**-5424216