From 3671259eacae8e601ea31dfa453bbd4c46989d44 Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Thu, 19 Nov 2020 17:05:33 +0000 Subject: [PATCH] [FIX] l10n_de_skr03: Partner VAT Intra MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .../l10n_de_skr03/data/account_tax_fiscal_position_data.xml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/addons/l10n_de_skr03/data/account_tax_fiscal_position_data.xml b/addons/l10n_de_skr03/data/account_tax_fiscal_position_data.xml index c95fff75bf5..1d7e8c240df 100644 --- a/addons/l10n_de_skr03/data/account_tax_fiscal_position_data.xml +++ b/addons/l10n_de_skr03/data/account_tax_fiscal_position_data.xml @@ -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, {