[FIX] l10n_de_skr03: Partner VAT Intra

Steps to reproduce the bug:

- Let's consider the current company C in Germany with a VAT number
- Let's consider a partner P in Belgium with a VAT number and fiscal position Geschäftspartner EU (mit USt-ID)
- Let's consider a product PR with weight and a 19% tax
- Make a cutomer invoice CI to P with PR
- The 19% tax will be replaced by Steuerfreie innergem. Lieferung (§4 Abs. 1b UStG)
- Post CI
- Go to the Intrastat report

Bug:

PR didn't appear in the report

As wrtote here: https://github.com/odoo/enterprise/blob/13.0/l10n_de_reports/models/partner_vat_intra.py#L21
The taxes considered in the intrastat report must be with as least one of these tags:

- l10n_de.tag_de_intracom_community_delivery
- l10n_de.tag_de_intracom_community_supplies
- l10n_de.tag_de_intracom_ABC

But Steuerfreie innergem. Lieferung (§4 Abs. 1b UStG) didn't have one of these tags
Same for Steuerfreie Ausfuhr (§4 Nr. 1a UStG)

opw:2379263

closes odoo/odoo#62245

X-original-commit: e72b3fc9b899f93b515c6c4bb8287e21133a5946
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
This commit is contained in:
Goffin Simon
2020-11-24 13:07:12 +00:00
parent 5ab794cf30
commit 3671259eac
@@ -277,6 +277,7 @@
'factor_percent': 100,
'repartition_type': 'base',
'plus_report_line_ids': [ref('l10n_de.tax_report_de_tag_41')],
'tag_ids': [ref('l10n_de.tag_de_intracom_community_delivery')],
}),
(0,0, {
@@ -289,6 +290,7 @@
'factor_percent': 100,
'repartition_type': 'base',
'minus_report_line_ids': [ref('l10n_de.tax_report_de_tag_41')],
'tag_ids': [ref('l10n_de.tag_de_intracom_community_delivery')],
}),
(0,0, {
@@ -314,6 +316,7 @@
'factor_percent': 100,
'repartition_type': 'base',
'plus_report_line_ids': [ref('l10n_de.tax_report_de_tag_43')],
'tag_ids': [ref('l10n_de.tag_de_intracom_community_delivery')],
}),
(0,0, {
@@ -326,6 +329,7 @@
'factor_percent': 100,
'repartition_type': 'base',
'minus_report_line_ids': [ref('l10n_de.tax_report_de_tag_43')],
'tag_ids': [ref('l10n_de.tag_de_intracom_community_delivery')],
}),
(0,0, {