[FIX] l10n_it: fix tax deductible percent and remove obsolete taxes

tax name suggest 10 but code 20, history tells 10 is right, fixed code
two children taxes are now orphans, kill the orphans

closes odoo/odoo#40825

X-original-commit: 28e74fafec4cec3179db330a1ededf4ef8677fbc
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
This commit is contained in:
Adrien Horgnies
2019-11-25 14:35:01 +00:00
parent 16e6907efa
commit 35eab823b0
+4 -56
View File
@@ -457,12 +457,12 @@
'repartition_type': 'base',
}),
(0,0, {
'factor_percent': 20,
'factor_percent': 10,
'repartition_type': 'tax',
'account_id': ref('1601'),
}),
(0,0, {
'factor_percent': 80,
'factor_percent': 90,
'repartition_type': 'tax',
}),
]"/>
@@ -472,12 +472,12 @@
'repartition_type': 'base',
}),
(0,0, {
'factor_percent': 20,
'factor_percent': 10,
'repartition_type': 'tax',
'account_id': ref('1601'),
}),
(0,0, {
'factor_percent': 80,
'factor_percent': 90,
'repartition_type': 'tax',
}),
]"/>
@@ -851,58 +851,6 @@
]"/>
</record>
<record id="4I5b" model="account.tax.template">
<field name="description">4I5b</field>
<field name="chart_template_id" ref="l10n_it_chart_template_generic"/>
<field name="name">IVA al 4% detraibile al 50% (D)</field>
<field name="sequence">200</field>
<field name="amount">2</field>
<field name="amount_type">percent</field>
<field name="type_tax_use">none</field>
<field name="price_include">False</field>
<field name="tax_group_id" ref="tax_group_iva_4_de_50"/>
<field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
(0,0, {
'factor_percent': 100,
'repartition_type': 'base',
}),
]"/>
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
(0,0, {
'factor_percent': 100,
'repartition_type': 'base',
}),
]"/>
</record>
<record id="4I5a" model="account.tax.template">
<field name="description">4I5a</field>
<field name="chart_template_id" ref="l10n_it_chart_template_generic"/>
<field name="name">IVA al 4% detraibile al 50% (I)</field>
<field name="sequence">100</field>
<field name="amount">2</field>
<field name="amount_type">percent</field>
<field name="type_tax_use">none</field>
<field name="price_include">False</field>
<field name="tax_group_id" ref="tax_group_iva_4_de_50"/>
<field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
(0,0, {
'factor_percent': 100,
'repartition_type': 'base',
}),
]"/>
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
(0,0, {
'factor_percent': 100,
'repartition_type': 'base',
}),
]"/>
</record>
<record id="4I5" model="account.tax.template">
<field name="description">4I5</field>
<field name="chart_template_id" ref="l10n_it_chart_template_generic"/>