Skip to content

Commit c4d66ce

Browse files
committed
[IMP] l10n_pt: add tax report for Portugal
closes odoo#80916 Signed-off-by: William André (wan) <wan@odoo.com>
1 parent ebdee5e commit c4d66ce

File tree

3 files changed

+422
-0
lines changed

3 files changed

+422
-0
lines changed

addons/l10n_pt/__manifest__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
'data/account_chart_template_data.xml',
2121
'data/account_fiscal_position_template_data.xml',
2222
'data/account_tax_group_data.xml',
23+
'data/account_tax_report.xml',
2324
'data/account_tax_data.xml',
2425
'data/account_chart_template_configure_data.xml',
2526
],

addons/l10n_pt/data/account_tax_data.xml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,32 @@
88
<field name="description">IVA23</field>
99
<field name="amount">23</field>
1010
<field name="amount_type">percent</field>
11+
<field name="type_tax_use">sale</field>
1112
<field name="tax_group_id" ref="tax_group_iva_23"/>
1213
<field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
1314
(0,0, {
1415
'factor_percent': 100,
1516
'repartition_type': 'base',
17+
'plus_report_line_ids': [ref('tax_report_pt_base_vendas_faturas_normal')],
1618
}),
1719
1820
(0,0, {
1921
'factor_percent': 100,
2022
'repartition_type': 'tax',
23+
'plus_report_line_ids': [ref('tax_report_pt_tax_vendas_faturas_normal')],
2124
}),
2225
]"/>
2326
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
2427
(0,0, {
2528
'factor_percent': 100,
2629
'repartition_type': 'base',
30+
'plus_report_line_ids': [ref('tax_report_pt_base_vendas_notas_credito_normal')],
2731
}),
2832
2933
(0,0, {
3034
'factor_percent': 100,
3135
'repartition_type': 'tax',
36+
'plus_report_line_ids': [ref('tax_report_pt_tax_vendas_notas_credito_normal')],
3237
}),
3338
]"/>
3439
</record>
@@ -39,27 +44,32 @@
3944
<field name="description">IVA13</field>
4045
<field name="amount">13</field>
4146
<field name="amount_type">percent</field>
47+
<field name="type_tax_use">sale</field>
4248
<field name="tax_group_id" ref="tax_group_iva_13"/>
4349
<field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
4450
(0,0, {
4551
'factor_percent': 100,
4652
'repartition_type': 'base',
53+
'plus_report_line_ids': [ref('tax_report_pt_base_vendas_faturas_intermedia')],
4754
}),
4855
4956
(0,0, {
5057
'factor_percent': 100,
5158
'repartition_type': 'tax',
59+
'plus_report_line_ids': [ref('tax_report_pt_tax_vendas_faturas_intermedia')],
5260
}),
5361
]"/>
5462
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
5563
(0,0, {
5664
'factor_percent': 100,
5765
'repartition_type': 'base',
66+
'plus_report_line_ids': [ref('tax_report_pt_base_vendas_notas_credito_intermedia')],
5867
}),
5968
6069
(0,0, {
6170
'factor_percent': 100,
6271
'repartition_type': 'tax',
72+
'plus_report_line_ids': [ref('tax_report_pt_tax_vendas_notas_credito_intermedia')],
6373
}),
6474
]"/>
6575
</record>
@@ -70,27 +80,32 @@
7080
<field name="description">IVA6</field>
7181
<field name="amount">6</field>
7282
<field name="amount_type">percent</field>
83+
<field name="type_tax_use">sale</field>
7384
<field name="tax_group_id" ref="tax_group_iva_6"/>
7485
<field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
7586
(0,0, {
7687
'factor_percent': 100,
7788
'repartition_type': 'base',
89+
'plus_report_line_ids': [ref('tax_report_pt_base_vendas_faturas_reduzida')],
7890
}),
7991
8092
(0,0, {
8193
'factor_percent': 100,
8294
'repartition_type': 'tax',
95+
'plus_report_line_ids': [ref('tax_report_pt_tax_vendas_faturas_reduzida')],
8396
}),
8497
]"/>
8598
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
8699
(0,0, {
87100
'factor_percent': 100,
88101
'repartition_type': 'base',
102+
'plus_report_line_ids': [ref('tax_report_pt_base_vendas_notas_credito_reduzida')],
89103
}),
90104
91105
(0,0, {
92106
'factor_percent': 100,
93107
'repartition_type': 'tax',
108+
'plus_report_line_ids': [ref('tax_report_pt_tax_vendas_notas_credito_reduzida')],
94109
}),
95110
]"/>
96111
</record>
@@ -101,27 +116,32 @@
101116
<field name="description">IVA0</field>
102117
<field name="amount">0</field>
103118
<field name="amount_type">percent</field>
119+
<field name="type_tax_use">sale</field>
104120
<field name="tax_group_id" ref="tax_group_iva_0"/>
105121
<field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
106122
(0,0, {
107123
'factor_percent': 100,
108124
'repartition_type': 'base',
125+
'plus_report_line_ids': [ref('tax_report_pt_base_vendas_faturas_isento')],
109126
}),
110127
111128
(0,0, {
112129
'factor_percent': 100,
113130
'repartition_type': 'tax',
131+
'plus_report_line_ids': [ref('tax_report_pt_tax_vendas_faturas_isento')],
114132
}),
115133
]"/>
116134
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
117135
(0,0, {
118136
'factor_percent': 100,
119137
'repartition_type': 'base',
138+
'plus_report_line_ids': [ref('tax_report_pt_base_vendas_notas_credito_isento')],
120139
}),
121140
122141
(0,0, {
123142
'factor_percent': 100,
124143
'repartition_type': 'tax',
144+
'plus_report_line_ids': [ref('tax_report_pt_tax_vendas_notas_credito_isento')],
125145
}),
126146
]"/>
127147
</record>
@@ -138,22 +158,26 @@
138158
(0,0, {
139159
'factor_percent': 100,
140160
'repartition_type': 'base',
161+
'plus_report_line_ids': [ref('tax_report_pt_base_despesas_faturas_normal')],
141162
}),
142163
143164
(0,0, {
144165
'factor_percent': 100,
145166
'repartition_type': 'tax',
167+
'plus_report_line_ids': [ref('tax_report_pt_tax_despesas_faturas_normal')],
146168
}),
147169
]"/>
148170
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
149171
(0,0, {
150172
'factor_percent': 100,
151173
'repartition_type': 'base',
174+
'plus_report_line_ids': [ref('tax_report_pt_base_despesas_notas_credito_normal')],
152175
}),
153176
154177
(0,0, {
155178
'factor_percent': 100,
156179
'repartition_type': 'tax',
180+
'plus_report_line_ids': [ref('tax_report_pt_tax_despesas_notas_credito_normal')],
157181
}),
158182
]"/>
159183
</record>
@@ -170,22 +194,26 @@
170194
(0,0, {
171195
'factor_percent': 100,
172196
'repartition_type': 'base',
197+
'plus_report_line_ids': [ref('tax_report_pt_base_despesas_faturas_intermedia')],
173198
}),
174199
175200
(0,0, {
176201
'factor_percent': 100,
177202
'repartition_type': 'tax',
203+
'plus_report_line_ids': [ref('tax_report_pt_tax_despesas_faturas_intermedia')],
178204
}),
179205
]"/>
180206
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
181207
(0,0, {
182208
'factor_percent': 100,
183209
'repartition_type': 'base',
210+
'plus_report_line_ids': [ref('tax_report_pt_base_despesas_notas_credito_intermedia')],
184211
}),
185212
186213
(0,0, {
187214
'factor_percent': 100,
188215
'repartition_type': 'tax',
216+
'plus_report_line_ids': [ref('tax_report_pt_tax_despesas_notas_credito_intermedia')],
189217
}),
190218
]"/>
191219
</record>
@@ -202,22 +230,26 @@
202230
(0,0, {
203231
'factor_percent': 100,
204232
'repartition_type': 'base',
233+
'plus_report_line_ids': [ref('tax_report_pt_base_despesas_faturas_reduzida')],
205234
}),
206235
207236
(0,0, {
208237
'factor_percent': 100,
209238
'repartition_type': 'tax',
239+
'plus_report_line_ids': [ref('tax_report_pt_tax_despesas_faturas_reduzida')],
210240
}),
211241
]"/>
212242
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
213243
(0,0, {
214244
'factor_percent': 100,
215245
'repartition_type': 'base',
246+
'plus_report_line_ids': [ref('tax_report_pt_base_despesas_notas_credito_reduzida')],
216247
}),
217248
218249
(0,0, {
219250
'factor_percent': 100,
220251
'repartition_type': 'tax',
252+
'plus_report_line_ids': [ref('tax_report_pt_tax_despesas_notas_credito_reduzida')],
221253
}),
222254
]"/>
223255
</record>
@@ -234,22 +266,26 @@
234266
(0,0, {
235267
'factor_percent': 100,
236268
'repartition_type': 'base',
269+
'plus_report_line_ids': [ref('tax_report_pt_base_despesas_faturas_isento')],
237270
}),
238271
239272
(0,0, {
240273
'factor_percent': 100,
241274
'repartition_type': 'tax',
275+
'plus_report_line_ids': [ref('tax_report_pt_tax_despesas_faturas_isento')],
242276
}),
243277
]"/>
244278
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
245279
(0,0, {
246280
'factor_percent': 100,
247281
'repartition_type': 'base',
282+
'plus_report_line_ids': [ref('tax_report_pt_base_despesas_notas_credito_isento')],
248283
}),
249284
250285
(0,0, {
251286
'factor_percent': 100,
252287
'repartition_type': 'tax',
288+
'plus_report_line_ids': [ref('tax_report_pt_tax_despesas_notas_credito_isento')],
253289
}),
254290
]"/>
255291
</record>

0 commit comments

Comments
 (0)