[FIX]account_edi_ubl : fix finding of partner using vat identification

closes odoo/odoo#69226

X-original-commit: 66c7ee23320c595e71c1183a3bd439530ace13c9
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
This commit is contained in:
fw-bot
2021-04-19 07:35:25 +00:00
committed by Benjamin Frantzen (bfr)
parent ca3dfec135
commit 4da5f2eaba
3 changed files with 3 additions and 2 deletions
@@ -101,7 +101,7 @@ class AccountEdiFormat(models.Model):
name=_find_value('//cac:AccountingSupplierParty/cac:Party//cbc:Name'),
phone=_find_value('//cac:AccountingSupplierParty/cac:Party//cbc:Telephone'),
mail=_find_value('//cac:AccountingSupplierParty/cac:Party//cbc:ElectronicMail'),
vat=_find_value('//cac:AccountingSupplierParty/cac:Party//cbc:ID'),
vat=_find_value('//cac:AccountingSupplierParty/cac:Party//cbc:CompanyID'),
)
# Regenerate PDF
@@ -30,7 +30,7 @@
</cac:PostalAddress>
<cac:PartyLegalEntity>
<cbc:RegistrationName>The best supplier</cbc:RegistrationName>
<cbc:CompanyID>12345689</cbc:CompanyID>
<cbc:CompanyID>477472701</cbc:CompanyID>
</cac:PartyLegalEntity>
</cac:Party>
</cac:AccountingSupplierParty>
+1
View File
@@ -30,3 +30,4 @@ Denis Robinet denis.robinet@acsone.eu https://github.com/RobinetDenisAcsone
Benoit Aimont benoit.aimont@acsone.eu https://github.com/baimont
Bejaoui Souheil souheil.bejaoui@acsone.eu https://github.com/sbejaoui
Nans Lefebvre nans.lefebvre@acsone.eu https://github.com/len-foss
Régis Pirard regis.pirard@acsone.eu https://github.com/regispirard