From 4da5f2eaba268b2ebca05cb77d1dfe7c61fc9420 Mon Sep 17 00:00:00 2001 From: fw-bot Date: Fri, 9 Apr 2021 15:08:55 +0000 Subject: [PATCH] [FIX]account_edi_ubl : fix finding of partner using vat identification closes odoo/odoo#69226 X-original-commit: 66c7ee23320c595e71c1183a3bd439530ace13c9 Signed-off-by: Laurent Smet --- addons/account_edi_ubl/models/account_edi_format.py | 2 +- addons/l10n_be_edi/test_xml_file/efff_test.xml | 2 +- doc/cla/corporate/acsone.md | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/addons/account_edi_ubl/models/account_edi_format.py b/addons/account_edi_ubl/models/account_edi_format.py index 28db734ce77..5e81cdaf17f 100644 --- a/addons/account_edi_ubl/models/account_edi_format.py +++ b/addons/account_edi_ubl/models/account_edi_format.py @@ -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 diff --git a/addons/l10n_be_edi/test_xml_file/efff_test.xml b/addons/l10n_be_edi/test_xml_file/efff_test.xml index de7bbed9ddb..2b6e46c419f 100644 --- a/addons/l10n_be_edi/test_xml_file/efff_test.xml +++ b/addons/l10n_be_edi/test_xml_file/efff_test.xml @@ -30,7 +30,7 @@ The best supplier - 12345689 + 477472701 diff --git a/doc/cla/corporate/acsone.md b/doc/cla/corporate/acsone.md index 6da52eaba18..b69c710720c 100644 --- a/doc/cla/corporate/acsone.md +++ b/doc/cla/corporate/acsone.md @@ -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