Skip to content

Commit

Permalink
[FIX] account_edi_ubl(_bis3): OrderReference should refer to the PO o…
Browse files Browse the repository at this point in the history
…f the customer

According to https://docs.peppol.eu/poacc/billing/3.0/syntax/ubl-invoice/cac-OrderReference/
the cbc:ID in the Order Reference should be the PO number of the customer.

closes odoo#84179

Signed-off-by: Laurent Smet <las@odoo.com>
  • Loading branch information
jco-odoo committed Feb 21, 2022
1 parent 02d2b35 commit cd41453
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions addons/account_edi_ubl/data/ubl_templates.xml
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@
<cbc:Note t-if="note" t-esc="note"/>
<cbc:DocumentCurrencyCode t-esc="record.currency_id.name"/>
<cbc:BuyerReference t-esc="record.commercial_partner_id.name"/>
<cac:OrderReference t-if="record.invoice_origin">
<cbc:ID t-esc="record.invoice_origin"/>
<cac:OrderReference t-if="record.ref">
<cbc:ID t-esc="record.ref"/>
</cac:OrderReference>
<cac:AccountingSupplierParty t-call="account_edi_ubl.export_ubl_invoice_partner">
<t t-set="partner_vals" t-value="supplier_vals"/>
Expand Down
4 changes: 2 additions & 2 deletions addons/account_edi_ubl_bis3/data/bis3_templates.xml
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@
<cbc:TaxCurrencyCode t-if="record.currency_id != record.company_currency_id"
t-esc="record.company_currency_id.name"/>
<cbc:BuyerReference t-esc="record.commercial_partner_id.name"/>
<cac:OrderReference t-if="record.invoice_origin">
<cbc:ID t-esc="record.invoice_origin"/>
<cac:OrderReference t-if="record.ref">
<cbc:ID t-esc="record.ref"/>
</cac:OrderReference>
<cac:AccountingSupplierParty t-call="account_edi_ubl_bis3.export_bis3_invoice_partner">
<t t-set="partner_vals" t-value="supplier_vals"/>
Expand Down
4 changes: 2 additions & 2 deletions addons/l10n_be_edi/tests/test_efff_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def test_out_invoice_efff(self):
'invoice_payment_term_id': self.pay_terms_b.id,
'invoice_date': '2017-01-01',
'date': '2017-01-01',
'invoice_origin': 'test invoice origin',
'ref': 'test invoice ref',
'narration': 'test narration',
'invoice_line_ids': [(0, 0, {
'price_unit': 1000.0,
Expand Down Expand Up @@ -76,7 +76,7 @@ def test_out_invoice_efff(self):
<Note>test narration</Note>
<DocumentCurrencyCode>EUR</DocumentCurrencyCode>
<OrderReference>
<ID>test invoice origin</ID>
<ID>test invoice ref</ID>
</OrderReference>
<AdditionalDocumentReference>
<ID>efff_BE0477472701_INV201700001.pdf</ID>
Expand Down

0 comments on commit cd41453

Please sign in to comment.