diff --git a/addons/account_edi_ubl_cii/models/account_edi_xml_ubl_20.py b/addons/account_edi_ubl_cii/models/account_edi_xml_ubl_20.py index e8ebfed1a2d..06de9681cef 100644 --- a/addons/account_edi_ubl_cii/models/account_edi_xml_ubl_20.py +++ b/addons/account_edi_ubl_cii/models/account_edi_xml_ubl_20.py @@ -735,7 +735,7 @@ class AccountEdiXmlUBL20(models.AbstractModel): tax_nodes = tree.findall('.//{*}Item/{*}ClassifiedTaxCategory/{*}Percent') if not tax_nodes: for elem in tree.findall('.//{*}TaxTotal'): - tax_nodes += elem.findall('.//{*}TaxSubtotal/{*}Percent') + tax_nodes += elem.findall('.//{*}TaxSubtotal/{*}TaxCategory/{*}Percent') return self._import_fill_invoice_line_taxes(tax_nodes, invoice_line, inv_line_vals, logs) def _correct_invoice_tax_amount(self, tree, invoice):