odoo/odoo#219799

Created by fw-bot
Merged at fb11a9eb50d071472d79fc90151d42909e571b99

Statuses:

label
odoo-dev:saas-18.1-17.0-opw-4907827-fix_invalid_facturx-mcou-449801-fw
head
bdca3bfe6699a26c52d07b3ec13db83d86993f1a
merged
10 months ago by Bugfix, Mathieu Coutant (mcou)
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

Forward-Port-Of: #218686
Forward-Port-Of: #217763