Commit 2a157ae
committed
[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
closes odoo#214501
Signed-off-by: Maximilien La Barre (malb) <[email protected]>1 parent dd3679b commit 2a157ae
File tree
2 files changed
+9
-0
lines changed- addons/l10n_tr_nilvera_einvoice
- models
- tests
2 files changed
+9
-0
lines changedLines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
45 | 48 | | |
46 | 49 | | |
47 | 50 | | |
| |||
53 | 56 | | |
54 | 57 | | |
55 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
56 | 62 | | |
57 | 63 | | |
58 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
84 | 87 | | |
85 | 88 | | |
86 | 89 | | |
| |||
0 commit comments