Skip to content
Snippets Groups Projects
Commit 9b02bcfc authored by bve-odoo's avatar bve-odoo
Browse files

[FIX] account_edi_ubl_cii: handle ubl version 2.2 and 2.3:


Customer reported an XML file with an UBL_version 2.2
reported <cbc:UBLVersionID>2.2</cbc:UBLVersionID>
at the beginning of the XML file.

As reported on the wikipedia page of the
'Universal Business Language' (UBL):
- the version 2.2 has been approved&published on July 2018.
- the version 2.3 has been approved&published on June 2021.

opw-3316684

closes odoo/odoo#128729

X-original-commit: 86fbee95
Signed-off-by: default avatarLaurent Smet (las) <las@odoo.com>
parent d75af969
Branches
Tags
No related merge requests found
......@@ -36,7 +36,7 @@ class AccountEdiFormat(models.Model):
if ubl_version is not None:
if ubl_version.text == '2.0':
return self.env['account.edi.xml.ubl_20']
if ubl_version.text == '2.1':
if ubl_version.text in ('2.1', '2.2', '2.3'):
return self.env['account.edi.xml.ubl_21']
if customization_id is not None:
if 'xrechnung' in customization_id.text:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment