This addon improves UBL invoice import by matching taxes using the UNECE tax category/code instead of relying on rates, ensuring more accurate and consistent tax retrieval across companies and localizations.
auto_awesome What this module does
AI-generated from the code · Odoo 16.0Improves the import of UBL/CII electronic invoices by finding the right purchase tax using the UNECE tax category code and exemption reason, instead of relying only on the tax rate.
When you import a vendor electronic invoice in UBL format, Odoo normally tries to match the tax lines using the tax percentage. This module changes that behaviour so the tax is looked up using the UNECE tax category code (for example the standard VAT code) together with the tax rate and, when present, the tax exemption reason code.
- It only acts on purchase journals; sales and other journal types are left untouched.
- It only applies when the invoice line has at most one tax, and when the tax scheme in the file is VAT.
- If the tax already on the line matches the file's rate, UNECE code and exemption reason, nothing is changed.
- Otherwise it searches for a tax belonging to the same company, of percentage type, usable for purchases, with the same UNECE category code and the same rate, and optionally the same exemption reason code.
- If a matching tax is found, it replaces the tax on the imported invoice line.
It also normalises exemption reason codes coming from the file, accepting both underscore and dash separators, so codes written slightly differently still match a valid value. The module extends the UBL 2.0 electronic invoicing logic and the account.tax model fields added by its companion module. No new menus or screens are added; the change is visible only in the result of importing a vendor bill.
Depends on
Models and fields (1)
- account.edi.xml.ubl_20 · extends an existing model
Text generated by AI (DeepSeek) from reading the Odoo 16.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub
Availability by version
Reviewed: 2026-11-03Confirmation status: 1 confirmed, 8 with no information of 9 versions.
Sources · Odoo 16.0
Confirmed on 2026-11-03 in branch 16.0 of OCA/edi.
terminal Installation and usage
No verified informationInstallation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.