[FIX] l10n_se: invert values of blocks F and G for Swedish tax report

Steps to reproduce:

with SE Company:
- Accounting > Vendor > Bills
- Create and confirm a vendor bill with any of the `Ingående moms` taxes
- Reporting > Tax report

**The values of Block F and G appears in negative**

Cause of the issue:

The erroneous values come from the `se_48` formula of the
`account_tax_report_data` which provides minus the value it should:
https://github.com/odoo/odoo/blob/bd7aadf589ef1ba4556164bc70fc0fbb62928e48/addons/l10n_se/data/account_tax_report_data.xml#L374
This is due to the fact that the se_48 formula is set to minus the value
it should on the `Ingående moms` taxes see for instance:
https://github.com/odoo/odoo/blob/de1bee39c449eee2c5f0b722cf50aa33eade5142/addons/l10n_se/data/template/account.tax-se.csv#L58-L62
where the use of se_48 can be compared to the correctly used se_30.

opw-3750771

closes odoo/odoo#158392

X-original-commit: 834e026b221d966df13a4b4450f4047c8a879c2e
Related: odoo/enterprise#59022
Signed-off-by: Lancelot Semal (lase) <lase@odoo.com>
This commit is contained in:
lase@odoo.com
2024-03-22 14:47:57 +00:00
parent eb0cc88ba5
commit 47c2acf22d
+36 -36
View File
@@ -8,13 +8,13 @@
"","","","","","","","base","refund","-se_05","","",""
"","","","","","","","tax","refund","-se_10","a2611","",""
"purchase_tax_25_goods","25% G","VAT Purchases of goods 25%","25%","25.0","purchase","tax_group_25","base","invoice","","","","Ingående moms 25%"
"","","","","","","","tax","invoice","-se_48","a2641","",""
"","","","","","","","tax","invoice","+se_48","a2641","",""
"","","","","","","","base","refund","","","",""
"","","","","","","","tax","refund","+se_48","a2641","",""
"","","","","","","","tax","refund","-se_48","a2641","",""
"purchase_tax_25_services","25% S","VAT Purchases of services 25%","25%","25.0","purchase","tax_group_25","base","invoice","","","","Ingående moms Tjänst 25%"
"","","","","","","","tax","invoice","-se_48","a2641","",""
"","","","","","","","tax","invoice","+se_48","a2641","",""
"","","","","","","","base","refund","","","",""
"","","","","","","","tax","refund","+se_48","a2641","",""
"","","","","","","","tax","refund","-se_48","a2641","",""
"sale_tax_12_goods","12% G","VAT Sale of goods 12%","12%","12.0","sale","tax_group_12","base","invoice","+se_05","","","Utgående moms 12%"
"","","","","","","","tax","invoice","+se_11","a2621","",""
"","","","","","","","base","refund","-se_05","","",""
@@ -24,13 +24,13 @@
"","","","","","","","base","refund","-se_05","","",""
"","","","","","","","tax","refund","-se_11","a2621","",""
"purchase_tax_12_goods","12% G","VAT Purchases of goods 12%","12%","12.0","purchase","tax_group_12","base","invoice","","","","Ingående moms 12%"
"","","","","","","","tax","invoice","-se_48","a2641","",""
"","","","","","","","tax","invoice","+se_48","a2641","",""
"","","","","","","","base","refund","","","",""
"","","","","","","","tax","refund","+se_48","a2641","",""
"","","","","","","","tax","refund","-se_48","a2641","",""
"purchase_tax_12_services","12% S","VAT Purchases of services 12%","12%","12.0","purchase","tax_group_12","base","invoice","","","","Ingående moms Tjänst 12%"
"","","","","","","","tax","invoice","-se_48","a2641","",""
"","","","","","","","tax","invoice","+se_48","a2641","",""
"","","","","","","","base","refund","","","",""
"","","","","","","","tax","refund","+se_48","a2641","",""
"","","","","","","","tax","refund","-se_48","a2641","",""
"sale_tax_6_goods","6% G","VAT Sale of goods 6%","6%","6.0","sale","tax_group_6","base","invoice","+se_05","","","Utgående moms 6%"
"","","","","","","","tax","invoice","+se_12","a2631","",""
"","","","","","","","base","refund","-se_05","","",""
@@ -40,13 +40,13 @@
"","","","","","","","base","refund","-se_05","","",""
"","","","","","","","tax","refund","-se_12","a2631","",""
"purchase_tax_6_goods","6% G","VAT Purchase of goods 6%","6%","6.0","purchase","tax_group_6","base","invoice","","","","Ingående moms 6%"
"","","","","","","","tax","invoice","-se_48","a2641","",""
"","","","","","","","tax","invoice","+se_48","a2641","",""
"","","","","","","","base","refund","","","",""
"","","","","","","","tax","refund","+se_48","a2641","",""
"","","","","","","","tax","refund","-se_48","a2641","",""
"purchase_tax_6_services","6% S","VAT Purchase of services 6%","6%","6.0","purchase","tax_group_6","base","invoice","","","","Ingående moms Tjänst 6%"
"","","","","","","","tax","invoice","-se_48","a2641","",""
"","","","","","","","tax","invoice","+se_48","a2641","",""
"","","","","","","","base","refund","","","",""
"","","","","","","","tax","refund","+se_48","a2641","",""
"","","","","","","","tax","refund","-se_48","a2641","",""
"sale_tax_services_EC","0% EU S","VAT Sale of services in the EU 0%","0%","0.0","sale","tax_group_0","base","invoice","+se_39","","","Momsfri försäljning av tjänst EU"
"","","","","","","","tax","invoice","","","",""
"","","","","","","","base","refund","-se_39","","",""
@@ -56,58 +56,58 @@
"","","","","","","","base","refund","-se_35","","",""
"","","","","","","","tax","refund","","","",""
"purchase_goods_tax_25_EC","25% EU G","VAT Purchase of goods in the EU 25%","25%","25.0","purchase","tax_group_25","base","invoice","+se_20","","","Inköp av varor EU moms 25%"
"","","","","","","","tax","invoice","+se_30||-se_48","a2645","",""
"","","","","","","","tax","invoice","+se_30||+se_48","a2645","",""
"","","","","","","","tax","invoice","","a2614","-100",""
"","","","","","","","base","refund","-se_20","","",""
"","","","","","","","tax","refund","-se_30||+se_48","a2645","",""
"","","","","","","","tax","refund","-se_30||-se_48","a2645","",""
"","","","","","","","tax","refund","","a2614","-100",""
"purchase_goods_tax_12_EC","12% EU G","VAT Purchase of goods in the EU 12%","12%","12.0","purchase","tax_group_12","base","invoice","+se_20","","","Inköp av varor EU moms 12%"
"","","","","","","","tax","invoice","+se_31||-se_48","a2645","",""
"","","","","","","","tax","invoice","+se_31||+se_48","a2645","",""
"","","","","","","","tax","invoice","","a2624","-100",""
"","","","","","","","base","refund","-se_20","","",""
"","","","","","","","tax","refund","-se_31||+se_48","a2645","",""
"","","","","","","","tax","refund","-se_31||-se_48","a2645","",""
"","","","","","","","tax","refund","","a2624","-100",""
"purchase_goods_tax_6_EC","6% EU G","VAT Purchase of goods in the EU 6%","6%","6.0","purchase","tax_group_6","base","invoice","+se_20","","","Inköp av varor EU moms 6%"
"","","","","","","","tax","invoice","+se_32||-se_48","a2645","",""
"","","","","","","","tax","invoice","+se_32||+se_48","a2645","",""
"","","","","","","","tax","invoice","","a2634","-100",""
"","","","","","","","base","refund","-se_20","","",""
"","","","","","","","tax","refund","-se_32||+se_48","a2645","",""
"","","","","","","","tax","refund","-se_32||-se_48","a2645","",""
"","","","","","","","tax","refund","","a2634","-100",""
"purchase_services_tax_25_EC","25% EU S","VAT Purchase of services in the EU 25%","25%","25.0","purchase","tax_group_25","base","invoice","+se_21","","","Inköp av tjänst EU moms 25%"
"","","","","","","","tax","invoice","+se_30||-se_48","a2645","",""
"","","","","","","","tax","invoice","+se_30||+se_48","a2645","",""
"","","","","","","","tax","invoice","","a2614","-100",""
"","","","","","","","base","refund","-se_21","","",""
"","","","","","","","tax","refund","-se_30||+se_48","a2645","",""
"","","","","","","","tax","refund","-se_30||-se_48","a2645","",""
"","","","","","","","tax","refund","","a2614","-100",""
"purchase_services_tax_12_EC","12% EU S","VAT Purchase of services in the EU 12%","12%","12.0","purchase","tax_group_12","base","invoice","+se_21","","","Inköp av tjänst EU moms 12%"
"","","","","","","","tax","invoice","+se_31||-se_48","a2645","",""
"","","","","","","","tax","invoice","+se_31||+se_48","a2645","",""
"","","","","","","","tax","invoice","","a2624","-100",""
"","","","","","","","base","refund","-se_21","","",""
"","","","","","","","tax","refund","-se_31||+se_48","a2645","",""
"","","","","","","","tax","refund","-se_31||-se_48","a2645","",""
"","","","","","","","tax","refund","","a2624","-100",""
"purchase_services_tax_6_EC","6% EU S","VAT Purchase of services in the EU 6%","6%","6.0","purchase","tax_group_6","base","invoice","+se_21","","","Inköp av tjänst EU moms 6%"
"","","","","","","","tax","invoice","+se_32||-se_48","a2645","",""
"","","","","","","","tax","invoice","+se_32||+se_48","a2645","",""
"","","","","","","","tax","invoice","","a2634","-100",""
"","","","","","","","base","refund","-se_21","","",""
"","","","","","","","tax","refund","-se_32||+se_48","a2645","",""
"","","","","","","","tax","refund","-se_32||-se_48","a2645","",""
"","","","","","","","tax","refund","","a2634","-100",""
"purchase_construction_services_tax_25_EC","25% EU RS","VAT Purchase of services in Sweden, reverse charge 25%","25%","25.0","purchase","tax_group_25","base","invoice","+se_24","","","Inköpta tjänster i Sverige, omvändskattskyldighet, 25 %"
"","","","","","","","tax","invoice","+se_30||-se_48","a2647","",""
"","","","","","","","tax","invoice","+se_30||+se_48","a2647","",""
"","","","","","","","tax","invoice","","a2614","-100",""
"","","","","","","","base","refund","-se_24","","",""
"","","","","","","","tax","refund","-se_30||+se_48","a2647","",""
"","","","","","","","tax","refund","-se_30||-se_48","a2647","",""
"","","","","","","","tax","refund","","a2614","-100",""
"purchase_construction_services_tax_12_EC","12% EU RS","VAT Purchase of services in Sweden, reverse charge 12%","12%","12.0","purchase","tax_group_12","base","invoice","+se_24","","","Inköpta tjänster i Sverige, omvändskattskyldighet, 12 %"
"","","","","","","","tax","invoice","+se_31||-se_48","a4426","",""
"","","","","","","","tax","invoice","+se_31||+se_48","a4426","",""
"","","","","","","","tax","invoice","","a2624","-100",""
"","","","","","","","base","refund","-se_24","","",""
"","","","","","","","tax","refund","-se_31||+se_48","a4426","",""
"","","","","","","","tax","refund","-se_31||-se_48","a4426","",""
"","","","","","","","tax","refund","","a2624","-100",""
"purchase_construction_services_tax_6_EC","6% EU RS","VAT Purchase of services in Sweden, reverse charge 6%","6%","6.0","purchase","tax_group_6","base","invoice","+se_24","","","Inköpta tjänster i Sverige, omvändskattskyldighet, 6 %"
"","","","","","","","tax","invoice","+se_32||-se_48","a4427","",""
"","","","","","","","tax","invoice","+se_32||+se_48","a4427","",""
"","","","","","","","tax","invoice","","a2634","-100",""
"","","","","","","","base","refund","-se_24","","",""
"","","","","","","","tax","refund","-se_32||+se_48","a4427","",""
"","","","","","","","tax","refund","-se_32||-se_48","a4427","",""
"","","","","","","","tax","refund","","a2634","-100",""
"sale_tax_services_NEC","0% EU RS","VAT Sale of services outside EU 0%","0%","0.0","sale","tax_group_0","base","invoice","+se_39","","","Momsfri försäljning av tjänst utanför EU"
"","","","","","","","tax","invoice","","","",""
@@ -136,22 +136,22 @@
"","","","","","","","tax","refund","-se_62","a2645","",""
"","","","","","","","tax","refund","","a2635","-100",""
"purchase_services_tax_25_NEC","25% EX S","VAT Purchase of services outside EU 25%","25%","25.0","purchase","tax_group_25","base","invoice","+se_22","","","Inköp av tjänster utanför EU 25%"
"","","","","","","","tax","invoice","+se_30||-se_48","a2645","",""
"","","","","","","","tax","invoice","+se_30||+se_48","a2645","",""
"","","","","","","","tax","invoice","","a2614","-100",""
"","","","","","","","base","refund","-se_22","","",""
"","","","","","","","tax","refund","-se_30||+se_48","a2645","",""
"","","","","","","","tax","refund","-se_30||-se_48","a2645","",""
"","","","","","","","tax","refund","","a2614","-100",""
"purchase_services_tax_12_NEC","12% EX S","VAT Purchase of services outside EU 12%","12%","12.0","purchase","tax_group_12","base","invoice","+se_22","","","Inköp av tjänster utanför EU 12%"
"","","","","","","","tax","invoice","+se_31||-se_48","a2645","",""
"","","","","","","","tax","invoice","+se_31||+se_48","a2645","",""
"","","","","","","","tax","invoice","","a2624","-100",""
"","","","","","","","base","refund","-se_22","","",""
"","","","","","","","tax","refund","-se_31||+se_48","a2645","",""
"","","","","","","","tax","refund","-se_31||-se_48","a2645","",""
"","","","","","","","tax","refund","","a2624","-100",""
"purchase_services_tax_6_NEC","6% EX S","VAT Purchase of services outside EU 6%","6%","6.0","purchase","tax_group_6","base","invoice","+se_22","","","Inköp av tjänster utanför EU 6%"
"","","","","","","","tax","invoice","+se_32||-se_48","a2645","",""
"","","","","","","","tax","invoice","+se_32||+se_48","a2645","",""
"","","","","","","","tax","invoice","","a2634","-100",""
"","","","","","","","base","refund","-se_22","","",""
"","","","","","","","tax","refund","-se_32||+se_48","a2645","",""
"","","","","","","","tax","refund","-se_32||-se_48","a2645","",""
"","","","","","","","tax","refund","","a2634","-100",""
"triangular_tax_25_goods","25% EU G Tr","VAT Triangular Sale of goods 25%","25%","25.0","sale","tax_group_25","base","invoice","+se_37||-se_38","","","Trepartshandel - moms 25%"
"","","","","","","","tax","invoice","","a2615","",""
1 id name description invoice_label amount type_tax_use tax_group_id repartition_line_ids/repartition_type repartition_line_ids/document_type repartition_line_ids/tag_ids repartition_line_ids/account_id repartition_line_ids/factor_percent description@sv_SE
8 base refund -se_05
9 tax refund -se_10 a2611
10 purchase_tax_25_goods 25% G VAT Purchases of goods 25% 25% 25.0 purchase tax_group_25 base invoice Ingående moms 25%
11 tax invoice -se_48 +se_48 a2641
12 base refund
13 tax refund +se_48 -se_48 a2641
14 purchase_tax_25_services 25% S VAT Purchases of services 25% 25% 25.0 purchase tax_group_25 base invoice Ingående moms Tjänst 25%
15 tax invoice -se_48 +se_48 a2641
16 base refund
17 tax refund +se_48 -se_48 a2641
18 sale_tax_12_goods 12% G VAT Sale of goods 12% 12% 12.0 sale tax_group_12 base invoice +se_05 Utgående moms 12%
19 tax invoice +se_11 a2621
20 base refund -se_05
24 base refund -se_05
25 tax refund -se_11 a2621
26 purchase_tax_12_goods 12% G VAT Purchases of goods 12% 12% 12.0 purchase tax_group_12 base invoice Ingående moms 12%
27 tax invoice -se_48 +se_48 a2641
28 base refund
29 tax refund +se_48 -se_48 a2641
30 purchase_tax_12_services 12% S VAT Purchases of services 12% 12% 12.0 purchase tax_group_12 base invoice Ingående moms Tjänst 12%
31 tax invoice -se_48 +se_48 a2641
32 base refund
33 tax refund +se_48 -se_48 a2641
34 sale_tax_6_goods 6% G VAT Sale of goods 6% 6% 6.0 sale tax_group_6 base invoice +se_05 Utgående moms 6%
35 tax invoice +se_12 a2631
36 base refund -se_05
40 base refund -se_05
41 tax refund -se_12 a2631
42 purchase_tax_6_goods 6% G VAT Purchase of goods 6% 6% 6.0 purchase tax_group_6 base invoice Ingående moms 6%
43 tax invoice -se_48 +se_48 a2641
44 base refund
45 tax refund +se_48 -se_48 a2641
46 purchase_tax_6_services 6% S VAT Purchase of services 6% 6% 6.0 purchase tax_group_6 base invoice Ingående moms Tjänst 6%
47 tax invoice -se_48 +se_48 a2641
48 base refund
49 tax refund +se_48 -se_48 a2641
50 sale_tax_services_EC 0% EU S VAT Sale of services in the EU 0% 0% 0.0 sale tax_group_0 base invoice +se_39 Momsfri försäljning av tjänst EU
51 tax invoice
52 base refund -se_39
56 base refund -se_35
57 tax refund
58 purchase_goods_tax_25_EC 25% EU G VAT Purchase of goods in the EU 25% 25% 25.0 purchase tax_group_25 base invoice +se_20 Inköp av varor EU moms 25%
59 tax invoice +se_30||-se_48 +se_30||+se_48 a2645
60 tax invoice a2614 -100
61 base refund -se_20
62 tax refund -se_30||+se_48 -se_30||-se_48 a2645
63 tax refund a2614 -100
64 purchase_goods_tax_12_EC 12% EU G VAT Purchase of goods in the EU 12% 12% 12.0 purchase tax_group_12 base invoice +se_20 Inköp av varor EU moms 12%
65 tax invoice +se_31||-se_48 +se_31||+se_48 a2645
66 tax invoice a2624 -100
67 base refund -se_20
68 tax refund -se_31||+se_48 -se_31||-se_48 a2645
69 tax refund a2624 -100
70 purchase_goods_tax_6_EC 6% EU G VAT Purchase of goods in the EU 6% 6% 6.0 purchase tax_group_6 base invoice +se_20 Inköp av varor EU moms 6%
71 tax invoice +se_32||-se_48 +se_32||+se_48 a2645
72 tax invoice a2634 -100
73 base refund -se_20
74 tax refund -se_32||+se_48 -se_32||-se_48 a2645
75 tax refund a2634 -100
76 purchase_services_tax_25_EC 25% EU S VAT Purchase of services in the EU 25% 25% 25.0 purchase tax_group_25 base invoice +se_21 Inköp av tjänst EU moms 25%
77 tax invoice +se_30||-se_48 +se_30||+se_48 a2645
78 tax invoice a2614 -100
79 base refund -se_21
80 tax refund -se_30||+se_48 -se_30||-se_48 a2645
81 tax refund a2614 -100
82 purchase_services_tax_12_EC 12% EU S VAT Purchase of services in the EU 12% 12% 12.0 purchase tax_group_12 base invoice +se_21 Inköp av tjänst EU moms 12%
83 tax invoice +se_31||-se_48 +se_31||+se_48 a2645
84 tax invoice a2624 -100
85 base refund -se_21
86 tax refund -se_31||+se_48 -se_31||-se_48 a2645
87 tax refund a2624 -100
88 purchase_services_tax_6_EC 6% EU S VAT Purchase of services in the EU 6% 6% 6.0 purchase tax_group_6 base invoice +se_21 Inköp av tjänst EU moms 6%
89 tax invoice +se_32||-se_48 +se_32||+se_48 a2645
90 tax invoice a2634 -100
91 base refund -se_21
92 tax refund -se_32||+se_48 -se_32||-se_48 a2645
93 tax refund a2634 -100
94 purchase_construction_services_tax_25_EC 25% EU RS VAT Purchase of services in Sweden, reverse charge 25% 25% 25.0 purchase tax_group_25 base invoice +se_24 Inköpta tjänster i Sverige, omvändskattskyldighet, 25 %
95 tax invoice +se_30||-se_48 +se_30||+se_48 a2647
96 tax invoice a2614 -100
97 base refund -se_24
98 tax refund -se_30||+se_48 -se_30||-se_48 a2647
99 tax refund a2614 -100
100 purchase_construction_services_tax_12_EC 12% EU RS VAT Purchase of services in Sweden, reverse charge 12% 12% 12.0 purchase tax_group_12 base invoice +se_24 Inköpta tjänster i Sverige, omvändskattskyldighet, 12 %
101 tax invoice +se_31||-se_48 +se_31||+se_48 a4426
102 tax invoice a2624 -100
103 base refund -se_24
104 tax refund -se_31||+se_48 -se_31||-se_48 a4426
105 tax refund a2624 -100
106 purchase_construction_services_tax_6_EC 6% EU RS VAT Purchase of services in Sweden, reverse charge 6% 6% 6.0 purchase tax_group_6 base invoice +se_24 Inköpta tjänster i Sverige, omvändskattskyldighet, 6 %
107 tax invoice +se_32||-se_48 +se_32||+se_48 a4427
108 tax invoice a2634 -100
109 base refund -se_24
110 tax refund -se_32||+se_48 -se_32||-se_48 a4427
111 tax refund a2634 -100
112 sale_tax_services_NEC 0% EU RS VAT Sale of services outside EU 0% 0% 0.0 sale tax_group_0 base invoice +se_39 Momsfri försäljning av tjänst utanför EU
113 tax invoice
136 tax refund -se_62 a2645
137 tax refund a2635 -100
138 purchase_services_tax_25_NEC 25% EX S VAT Purchase of services outside EU 25% 25% 25.0 purchase tax_group_25 base invoice +se_22 Inköp av tjänster utanför EU 25%
139 tax invoice +se_30||-se_48 +se_30||+se_48 a2645
140 tax invoice a2614 -100
141 base refund -se_22
142 tax refund -se_30||+se_48 -se_30||-se_48 a2645
143 tax refund a2614 -100
144 purchase_services_tax_12_NEC 12% EX S VAT Purchase of services outside EU 12% 12% 12.0 purchase tax_group_12 base invoice +se_22 Inköp av tjänster utanför EU 12%
145 tax invoice +se_31||-se_48 +se_31||+se_48 a2645
146 tax invoice a2624 -100
147 base refund -se_22
148 tax refund -se_31||+se_48 -se_31||-se_48 a2645
149 tax refund a2624 -100
150 purchase_services_tax_6_NEC 6% EX S VAT Purchase of services outside EU 6% 6% 6.0 purchase tax_group_6 base invoice +se_22 Inköp av tjänster utanför EU 6%
151 tax invoice +se_32||-se_48 +se_32||+se_48 a2645
152 tax invoice a2634 -100
153 base refund -se_22
154 tax refund -se_32||+se_48 -se_32||-se_48 a2645
155 tax refund a2634 -100
156 triangular_tax_25_goods 25% EU G Tr VAT Triangular Sale of goods 25% 25% 25.0 sale tax_group_25 base invoice +se_37||-se_38 Trepartshandel - moms 25%
157 tax invoice a2615