[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 <jco@odoo.com>
This commit is contained in:
Petr Vojta
2024-04-11 09:50:43 +00:00
parent 3b3b90b6d6
commit b2ae038ceb
2 changed files with 10 additions and 1 deletions
@@ -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
+9
View File
@@ -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