From 4818bee3b9093413e97254fb86b45ab4e21fce93 Mon Sep 17 00:00:00 2001 From: jans23 Date: Fri, 20 Jun 2025 13:02:06 +0200 Subject: [PATCH] Xrechnung BuyerReference field placeholder Backporting this fix: https://github.com/odoo/odoo/commit/afccc70969181449eb4fd5659a9e1616c0a4cf99 --- .../account_edi_ubl_cii/models/account_edi_xml_ubl_xrechnung.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/account_edi_ubl_cii/models/account_edi_xml_ubl_xrechnung.py b/addons/account_edi_ubl_cii/models/account_edi_xml_ubl_xrechnung.py index 87827d4d843552..4be7ed3be4d509 100644 --- a/addons/account_edi_ubl_cii/models/account_edi_xml_ubl_xrechnung.py +++ b/addons/account_edi_ubl_cii/models/account_edi_xml_ubl_xrechnung.py @@ -24,6 +24,8 @@ def _export_invoice_vals(self, invoice): # EXTENDS account.edi.xml.ubl_bis3 vals = super()._export_invoice_vals(invoice) vals['vals']['customization_id'] = 'urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0' + if not vals['vals'].get('buyer_reference'): + vals['vals']['buyer_reference'] = 'N/A' return vals def _export_invoice_constraints(self, invoice, vals):