From b2ae038ceb37eb23c2af2f9ba116b158b47bec3f Mon Sep 17 00:00:00 2001 From: Petr Vojta Date: Thu, 14 Mar 2024 22:41:33 +0100 Subject: [PATCH] [FIX] account_edi_ubl_cii: fixing import of a payment reference from Factur-X When importing an invoice from a Factur-X format a payment reference is now read from correct field. From the same field where the original payment reference is exported. closes odoo/odoo#157811 Signed-off-by: Josse Colpaert --- .../models/account_edi_xml_cii_facturx.py | 2 +- doc/cla/individual/petvoj.md | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 doc/cla/individual/petvoj.md 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 578cf68d751..e8f1a98bfb3 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 @@ -312,7 +312,7 @@ class AccountEdiXmlCII(models.AbstractModel): # ==== payment_reference ==== - payment_reference_node = tree.find('.//{*}BuyerOrderReferencedDocument/{*}IssuerAssignedID') + payment_reference_node = tree.find('./{*}SupplyChainTradeTransaction/{*}ApplicableHeaderTradeSettlement/{*}PaymentReference') if payment_reference_node is not None: invoice.payment_reference = payment_reference_node.text diff --git a/doc/cla/individual/petvoj.md b/doc/cla/individual/petvoj.md new file mode 100644 index 00000000000..4ff058e0e39 --- /dev/null +++ b/doc/cla/individual/petvoj.md @@ -0,0 +1,9 @@ +Czech Republic, 2024-03-14 + +I hereby agree to the terms of the Odoo Individual Contributor License Agreement v1.0. + +I declare that I am authorized and able to make this agreement and sign this declaration. + +Signed, + +Petr Vojta petvoj@gmail.com https://github.com/petvoj \ No newline at end of file