odoo/odoo#217763

Created by Bugfix, Mathieu Coutant (mcou)
Merged at 2ca1088c842a43e95eaed66b9f56f9f1cd4caf6f

Statuses:

label
odoo-dev:17.0-opw-4907827-fix_invalid_facturx-mcou
head
bb08546d66ba30d7a7dc49d53bdf910166f4bce9
merged
10 months ago by Accounting, Paolo Gatti (pgi)
odoo/odoo
17.0 #217763
18.0 #218686
saas-18.1 #219799
saas-18.2 #219801
saas-18.3 #219804
saas-18.4 #219966
19.0
saas-19.1
saas-19.2
saas-19.3
master #219990

[FIX] account_edi_ubl_cii: fix FacturX validation issues

Issue:

There are several issues with the XML of FacturX.

Steps to reproduce:

Cause:

  1. The namespaces are not there (doc).
  2. We always input "42" as payment mean

Solution:

  1. Added namespaces xmlns:qdt="urn:un:unece:uncefact:data:standard:QualifiedDataType:100" and xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. Added the code "59" for SDD, a lot of codes could be added but this commit only handles this one

Ticket link
opw-4907827