Skip to content
Snippets Groups Projects
Commit 38645429 authored by Julien Van Roy's avatar Julien Van Roy
Browse files

[IMP] account_edi_ubl_cii: UBL Bis 3 add support for Denmark

Denmark is comprised in the EAS list but is not currently supported in
Odoo. This commit makes UBL Bis 3 available for Danish companies.

The schemeId "0184" corresponds to the "DIGSTORG" and is mandatory for
Danish Suppliers (see: rule DK-R-014,
https://docs.peppol.eu/poacc/billing/3.0/rules/ubl-peppol/DK-R-014/

).

issue-130519

closes odoo/odoo#130605

X-original-commit: e4e2a28c
Signed-off-by: default avatarLaurent Smet (las) <las@odoo.com>
Signed-off-by: default avatarJulien Van Roy (juvr) <juvr@odoo.com>
parent 1242d630
Branches
Tags
No related merge requests found
......@@ -52,6 +52,7 @@ COUNTRY_EAS = {
'CY': 9928,
'CZ': 9929,
'DE': 9930,
'DK': '0184',
'EE': 9931,
'GB': 9932,
'GR': 9933,
......
......@@ -91,6 +91,10 @@ class AccountEdiXmlUBLBIS3(models.AbstractModel):
})
if partner.country_id.code == "LU" and 'l10n_lu_peppol_identifier' in partner._fields and partner.l10n_lu_peppol_identifier:
vals['company_id'] = partner.l10n_lu_peppol_identifier
if partner.country_id.code == 'DK':
# DK-R-014: For Danish Suppliers it is mandatory to specify schemeID as "0184" (DK CVR-number) when
# PartyLegalEntity/CompanyID is used for AccountingSupplierParty
vals['company_id_attrs'] = {'schemeID': '0184'}
return vals_list
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment