[FIX]l10n_be: vat due tag on vat due rep line

This commit aims to make the "due and deduced" taxes more consistent by
assigning the "VAT due" tags to the "VAT due" repartition line.
This way the tag representing the due VAT will be set on the account
move line that represents the due VAT instead of the account move line
that represents the deductible VAT.

Behavior before commit:
Due VAT tags is assigned on VAT to deduce account_move_line.

Behavior after commit:
Due VAT tags is assigned to the due VAT account_move_line.

closes odoo/odoo#77891

X-original-commit: 59961cc68ef001dade87bd5ab77809efaab31a17
Signed-off-by: Josse Colpaert <jco@openerp.com>
Signed-off-by: Brice Bartoletti <Levizar@users.noreply.github.com>
This commit is contained in:
Brice bib Bartoletti
2021-10-05 16:54:08 +00:00
parent 14af9048d5
commit cbf464898a
@@ -1171,13 +1171,14 @@
'factor_percent': 100,
'repartition_type': 'tax',
'account_id': ref('a411'),
'plus_report_line_ids': [ref('tax_report_line_56'), ref('tax_report_line_59')],
'plus_report_line_ids': [ref('tax_report_line_59')],
}),
(0,0, {
'factor_percent': -100,
'repartition_type': 'tax',
'account_id': ref('a451056'),
'minus_report_line_ids': [ref('tax_report_line_56')],
}),
]"/>
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
@@ -1224,13 +1225,14 @@
'factor_percent': 100,
'repartition_type': 'tax',
'account_id': ref('a411'),
'plus_report_line_ids': [ref('tax_report_line_56'), ref('tax_report_line_59')],
'plus_report_line_ids': [ref('tax_report_line_59')],
}),
(0,0, {
'factor_percent': -100,
'repartition_type': 'tax',
'account_id': ref('a451056'),
'minus_report_line_ids': [ref('tax_report_line_56')],
}),
]"/>
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
@@ -1277,13 +1279,14 @@
'factor_percent': 100,
'repartition_type': 'tax',
'account_id': ref('a411'),
'plus_report_line_ids': [ref('tax_report_line_56'), ref('tax_report_line_59')],
'plus_report_line_ids': [ref('tax_report_line_59')],
}),
(0,0, {
'factor_percent': -100,
'repartition_type': 'tax',
'account_id': ref('a451056'),
'minus_report_line_ids': [ref('tax_report_line_56')],
}),
]"/>
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
@@ -1368,13 +1371,14 @@
'factor_percent': 100,
'repartition_type': 'tax',
'account_id': ref('a411'),
'plus_report_line_ids': [ref('tax_report_line_56'), ref('tax_report_line_59')],
'plus_report_line_ids': [ref('tax_report_line_59')],
}),
(0,0, {
'factor_percent': -100,
'repartition_type': 'tax',
'account_id': ref('a451056'),
'minus_report_line_ids': [ref('tax_report_line_56')],
}),
]"/>
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
@@ -1421,13 +1425,14 @@
'factor_percent': 100,
'repartition_type': 'tax',
'account_id': ref('a411'),
'plus_report_line_ids': [ref('tax_report_line_56'), ref('tax_report_line_59')],
'plus_report_line_ids': [ref('tax_report_line_59')],
}),
(0,0, {
'factor_percent': -100,
'repartition_type': 'tax',
'account_id': ref('a451056'),
'minus_report_line_ids': [ref('tax_report_line_56')],
}),
]"/>
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
@@ -1474,13 +1479,14 @@
'factor_percent': 100,
'repartition_type': 'tax',
'account_id': ref('a411'),
'plus_report_line_ids': [ref('tax_report_line_56'), ref('tax_report_line_59')],
'plus_report_line_ids': [ref('tax_report_line_59')],
}),
(0,0, {
'factor_percent': -100,
'repartition_type': 'tax',
'account_id': ref('a451056'),
'minus_report_line_ids': [ref('tax_report_line_56')],
}),
]"/>
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
@@ -1565,13 +1571,14 @@
'factor_percent': 100,
'repartition_type': 'tax',
'account_id': ref('a411'),
'plus_report_line_ids': [ref('tax_report_line_56'), ref('tax_report_line_59')],
'plus_report_line_ids': [ref('tax_report_line_59')],
}),
(0,0, {
'factor_percent': -100,
'repartition_type': 'tax',
'account_id': ref('a451056'),
'minus_report_line_ids': [ref('tax_report_line_56')],
}),
]"/>
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
@@ -1618,13 +1625,14 @@
'factor_percent': 100,
'repartition_type': 'tax',
'account_id': ref('a411'),
'plus_report_line_ids': [ref('tax_report_line_56'), ref('tax_report_line_59')],
'plus_report_line_ids': [ref('tax_report_line_59')],
}),
(0,0, {
'factor_percent': -100,
'repartition_type': 'tax',
'account_id': ref('a451056'),
'minus_report_line_ids': [ref('tax_report_line_56')],
}),
]"/>
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
@@ -1671,13 +1679,14 @@
'factor_percent': 100,
'repartition_type': 'tax',
'account_id': ref('a411'),
'plus_report_line_ids': [ref('tax_report_line_56'), ref('tax_report_line_59')],
'plus_report_line_ids': [ref('tax_report_line_59')],
}),
(0,0, {
'factor_percent': -100,
'repartition_type': 'tax',
'account_id': ref('a451056'),
'minus_report_line_ids': [ref('tax_report_line_56')],
}),
]"/>
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
@@ -1815,13 +1824,14 @@
'factor_percent': 100,
'repartition_type': 'tax',
'account_id': ref('a411'),
'plus_report_line_ids': [ref('tax_report_line_55'), ref('tax_report_line_59')],
'plus_report_line_ids': [ref('tax_report_line_59')],
}),
(0,0, {
'factor_percent': -100,
'repartition_type': 'tax',
'account_id': ref('a451055'),
'minus_report_line_ids': [ref('tax_report_line_55')],
}),
]"/>
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
@@ -1868,13 +1878,14 @@
'factor_percent': 100,
'repartition_type': 'tax',
'account_id': ref('a411'),
'plus_report_line_ids': [ref('tax_report_line_55'), ref('tax_report_line_59')],
'plus_report_line_ids': [ref('tax_report_line_59')],
}),
(0,0, {
'factor_percent': -100,
'repartition_type': 'tax',
'account_id': ref('a451055'),
'minus_report_line_ids': [ref('tax_report_line_55')],
}),
]"/>
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
@@ -1921,13 +1932,14 @@
'factor_percent': 100,
'repartition_type': 'tax',
'account_id': ref('a411'),
'plus_report_line_ids': [ref('tax_report_line_55'), ref('tax_report_line_59')],
'plus_report_line_ids': [ref('tax_report_line_59')],
}),
(0,0, {
'factor_percent': -100,
'repartition_type': 'tax',
'account_id': ref('a451055'),
'minus_report_line_ids': [ref('tax_report_line_55')],
}),
]"/>
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
@@ -2012,13 +2024,14 @@
'factor_percent': 100,
'repartition_type': 'tax',
'account_id': ref('a411'),
'plus_report_line_ids': [ref('tax_report_line_55'), ref('tax_report_line_59')],
'plus_report_line_ids': [ref('tax_report_line_59')],
}),
(0,0, {
'factor_percent': -100,
'repartition_type': 'tax',
'account_id': ref('a451055'),
'minus_report_line_ids': [ref('tax_report_line_55')],
}),
]"/>
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
@@ -2065,13 +2078,14 @@
'factor_percent': 100,
'repartition_type': 'tax',
'account_id': ref('a411'),
'plus_report_line_ids': [ref('tax_report_line_55'), ref('tax_report_line_59')],
'plus_report_line_ids': [ref('tax_report_line_59')],
}),
(0,0, {
'factor_percent': -100,
'repartition_type': 'tax',
'account_id': ref('a451055'),
'minus_report_line_ids': [ref('tax_report_line_55')],
}),
]"/>
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
@@ -2118,13 +2132,14 @@
'factor_percent': 100,
'repartition_type': 'tax',
'account_id': ref('a411'),
'plus_report_line_ids': [ref('tax_report_line_55'), ref('tax_report_line_59')],
'plus_report_line_ids': [ref('tax_report_line_59')],
}),
(0,0, {
'factor_percent': -100,
'repartition_type': 'tax',
'account_id': ref('a451055'),
'minus_report_line_ids': [ref('tax_report_line_55')],
}),
]"/>
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
@@ -2171,13 +2186,14 @@
'factor_percent': 100,
'repartition_type': 'tax',
'account_id': ref('a411'),
'plus_report_line_ids': [ref('tax_report_line_55'), ref('tax_report_line_59')],
'plus_report_line_ids': [ref('tax_report_line_59')],
}),
(0,0, {
'factor_percent': -100,
'repartition_type': 'tax',
'account_id': ref('a451055'),
'minus_report_line_ids': [ref('tax_report_line_55')],
}),
]"/>
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
@@ -2224,13 +2240,14 @@
'factor_percent': 100,
'repartition_type': 'tax',
'account_id': ref('a411'),
'plus_report_line_ids': [ref('tax_report_line_55'), ref('tax_report_line_59')],
'plus_report_line_ids': [ref('tax_report_line_59')],
}),
(0,0, {
'factor_percent': -100,
'repartition_type': 'tax',
'account_id': ref('a451055'),
'minus_report_line_ids': [ref('tax_report_line_55')],
}),
]"/>
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
@@ -2277,13 +2294,14 @@
'factor_percent': 100,
'repartition_type': 'tax',
'account_id': ref('a411'),
'plus_report_line_ids': [ref('tax_report_line_55'), ref('tax_report_line_59')],
'plus_report_line_ids': [ref('tax_report_line_59')],
}),
(0,0, {
'factor_percent': -100,
'repartition_type': 'tax',
'account_id': ref('a451055'),
'minus_report_line_ids': [ref('tax_report_line_55')],
}),
]"/>
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
@@ -2368,13 +2386,14 @@
'factor_percent': 100,
'repartition_type': 'tax',
'account_id': ref('a411'),
'plus_report_line_ids': [ref('tax_report_line_55'), ref('tax_report_line_59')],
'plus_report_line_ids': [ref('tax_report_line_59')],
}),
(0,0, {
'factor_percent': -100,
'repartition_type': 'tax',
'account_id': ref('a451055'),
'minus_report_line_ids': [ref('tax_report_line_55')],
}),
]"/>
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
@@ -2459,13 +2478,14 @@
'factor_percent': 100,
'repartition_type': 'tax',
'account_id': ref('a411'),
'plus_report_line_ids': [ref('tax_report_line_55'), ref('tax_report_line_59')],
'plus_report_line_ids': [ref('tax_report_line_59')],
}),
(0,0, {
'factor_percent': -100,
'repartition_type': 'tax',
'account_id': ref('a451055'),
'minus_report_line_ids': [ref('tax_report_line_55')],
}),
]"/>
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
@@ -2512,13 +2532,14 @@
'factor_percent': 100,
'repartition_type': 'tax',
'account_id': ref('a411'),
'plus_report_line_ids': [ref('tax_report_line_55'), ref('tax_report_line_59')],
'plus_report_line_ids': [ref('tax_report_line_59')],
}),
(0,0, {
'factor_percent': -100,
'repartition_type': 'tax',
'account_id': ref('a451055'),
'minus_report_line_ids': [ref('tax_report_line_55')],
}),
]"/>
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
@@ -2602,13 +2623,14 @@
'factor_percent': 100,
'repartition_type': 'tax',
'account_id': ref('a411'),
'plus_report_line_ids': [ref('tax_report_line_57'), ref('tax_report_line_59')],
'plus_report_line_ids': [ref('tax_report_line_59')],
}),
(0,0, {
'factor_percent': -100,
'repartition_type': 'tax',
'account_id': ref('a451057'),
'minus_report_line_ids': [ref('tax_report_line_57')],
}),
]"/>
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
@@ -2655,13 +2677,14 @@
'factor_percent': 100,
'repartition_type': 'tax',
'account_id': ref('a411'),
'plus_report_line_ids': [ref('tax_report_line_57'), ref('tax_report_line_59')],
'plus_report_line_ids': [ref('tax_report_line_59')],
}),
(0,0, {
'factor_percent': -100,
'repartition_type': 'tax',
'account_id': ref('a451057'),
'minus_report_line_ids': [ref('tax_report_line_57')],
}),
]"/>
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
@@ -2708,13 +2731,14 @@
'factor_percent': 100,
'repartition_type': 'tax',
'account_id': ref('a411'),
'plus_report_line_ids': [ref('tax_report_line_57'), ref('tax_report_line_59')],
'plus_report_line_ids': [ref('tax_report_line_59')],
}),
(0,0, {
'factor_percent': -100,
'repartition_type': 'tax',
'account_id': ref('a451057'),
'minus_report_line_ids': [ref('tax_report_line_57')],
}),
]"/>
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
@@ -2799,13 +2823,14 @@
'factor_percent': 100,
'repartition_type': 'tax',
'account_id': ref('a411'),
'plus_report_line_ids': [ref('tax_report_line_57'), ref('tax_report_line_59')],
'plus_report_line_ids': [ref('tax_report_line_59')],
}),
(0,0, {
'factor_percent': -100,
'repartition_type': 'tax',
'account_id': ref('a451057'),
'minus_report_line_ids': [ref('tax_report_line_57')],
}),
]"/>
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
@@ -2852,13 +2877,14 @@
'factor_percent': 100,
'repartition_type': 'tax',
'account_id': ref('a411'),
'plus_report_line_ids': [ref('tax_report_line_57'), ref('tax_report_line_59')],
'plus_report_line_ids': [ref('tax_report_line_59')],
}),
(0,0, {
'factor_percent': -100,
'repartition_type': 'tax',
'account_id': ref('a451057'),
'minus_report_line_ids': [ref('tax_report_line_57')],
}),
]"/>
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
@@ -2905,13 +2931,14 @@
'factor_percent': 100,
'repartition_type': 'tax',
'account_id': ref('a411'),
'plus_report_line_ids': [ref('tax_report_line_57'), ref('tax_report_line_59')],
'plus_report_line_ids': [ref('tax_report_line_59')],
}),
(0,0, {
'factor_percent': -100,
'repartition_type': 'tax',
'account_id': ref('a451057'),
'minus_report_line_ids': [ref('tax_report_line_57')],
}),
]"/>
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
@@ -2996,13 +3023,14 @@
'factor_percent': 100,
'repartition_type': 'tax',
'account_id': ref('a411'),
'plus_report_line_ids': [ref('tax_report_line_57'), ref('tax_report_line_59')],
'plus_report_line_ids': [ref('tax_report_line_59')],
}),
(0,0, {
'factor_percent': -100,
'repartition_type': 'tax',
'account_id': ref('a451057'),
'minus_report_line_ids': [ref('tax_report_line_57')],
}),
]"/>
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
@@ -3049,13 +3077,14 @@
'factor_percent': 100,
'repartition_type': 'tax',
'account_id': ref('a411'),
'plus_report_line_ids': [ref('tax_report_line_57'), ref('tax_report_line_59')],
'plus_report_line_ids': [ref('tax_report_line_59')],
}),
(0,0, {
'factor_percent': -100,
'repartition_type': 'tax',
'account_id': ref('a451057'),
'minus_report_line_ids': [ref('tax_report_line_57')],
}),
]"/>
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
@@ -3102,13 +3131,14 @@
'factor_percent': 100,
'repartition_type': 'tax',
'account_id': ref('a411'),
'plus_report_line_ids': [ref('tax_report_line_57'), ref('tax_report_line_59')],
'plus_report_line_ids': [ref('tax_report_line_59')],
}),
(0,0, {
'factor_percent': -100,
'repartition_type': 'tax',
'account_id': ref('a451057'),
'minus_report_line_ids': [ref('tax_report_line_57')],
}),
]"/>
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),