diff --git a/addons/account_edi_ubl_cii/__manifest__.py b/addons/account_edi_ubl_cii/__manifest__.py index 5c85e29ae2d..39567544a8f 100644 --- a/addons/account_edi_ubl_cii/__manifest__.py +++ b/addons/account_edi_ubl_cii/__manifest__.py @@ -22,7 +22,7 @@ Note also that in order for Chorus Pro to automatically detect the "PDF/A-3 (Fac the "Factur-X PDF/A-3" option on the journal. This option will also validate the xml against the Factur-X and Chorus Pro rules and show the errors. """, - 'depends': ['account', 'base_vat'], + 'depends': ['account'], 'data': [ 'data/cii_22_templates.xml', 'data/ubl_20_templates.xml', diff --git a/addons/account_edi_ubl_cii/models/account_edi_xml_cii_facturx.py b/addons/account_edi_ubl_cii/models/account_edi_xml_cii_facturx.py index 0774721deb8..711c53e1bdc 100644 --- a/addons/account_edi_ubl_cii/models/account_edi_xml_cii_facturx.py +++ b/addons/account_edi_ubl_cii/models/account_edi_xml_cii_facturx.py @@ -259,7 +259,8 @@ class AccountEdiXmlCII(models.AbstractModel): mail = _find_value(f"//ram:{role}//ram:URIID[@schemeID='SMTP']") vat = _find_value(f"//ram:{role}/ram:SpecifiedTaxRegistration/ram:ID") phone = _find_value(f"//ram:{role}/ram:DefinedTradeContact/ram:TelephoneUniversalCommunication/ram:CompleteNumber") - self._import_retrieve_and_fill_partner(invoice, name=name, phone=phone, mail=mail, vat=vat) + country_code = _find_value(f'//ram:{role}/ram:PostalTradeAddress//ram:CountryID') + self._import_retrieve_and_fill_partner(invoice, name=name, phone=phone, mail=mail, vat=vat, country_code=country_code) # ==== currency_id ====