odoo/odoo#214501

Created by Romain Toulmonde (roto)
Merged at 2a157ae83856708bccf829478b98b2ce8888faf5

Statuses:

label
odoo-dev:18.0-tr-nilvera-partner-ref-override-tax-id-roto
head
f140facd62441011b142bc6290942ed6ce1d7c2e
merged
2 weeks ago by Accounting, Maximilien La Barre (malb)
odoo/odoo
18.0 #214501
saas-18.1 #215283
saas-18.2 #215306
saas-18.3 #215318
saas-18.4
master #215321

[FIX] l10n_tr_nilvera_einvoice: exclude ID without schemeID

[FIX] l10n_tr_nilvera_einvoice: exclude ID without schemeID
Nilvera expects a <schemeID> with every <ID>. In Odoo currently, we only
support VKN or TCKN as a schemeID that get impacted from the VAT Number.
Also, Nilvera reject any <BuyerReference> tag.

Before:
- The generated XML contains some <ID> tags without 'schemeID'
attribute.
- The generated XML contains some <BuyerReference> tag.
After:
- The <ID> tags with no 'schemeID' are removed from the XML.
- The <BuyerReference> tag is removed from the XML.

task-4822777
runbot: https://runbot.odoo.com/runbot/bundle/18-0-tr-nilvera-partner-ref-override-tax-id-roto-376352