[IMP] l10n_es: Add VAT non deductible percentages

Currently, there's only one tax for non deductible VAT on purchase, but although the
most common one (21% percentage), it's not the only one. There can be cases where
there's 4% or 10% VAT that is not deductible.

With this PR we add that percentages to the CoA.

Forward port to v13 of odoo/odoo#48629

closes odoo/odoo#55830

X-original-commit: 3b51ca0191f4df0f1f7543070b9e23a87286a426
Signed-off-by: Josse Colpaert <jco@openerp.com>
This commit is contained in:
Pedro M. Baeza
2020-08-12 18:50:06 +00:00
parent 4477a9445a
commit 0158fd90f7
+63 -1
View File
@@ -1774,7 +1774,7 @@
<record id="account_tax_template_p_iva0_nd" model="account.tax.template">
<field name="description"/> <!-- for resetting the value on existing DBs -->
<field name="type_tax_use">purchase</field>
<field name="name">IVA Soportado no deducible</field>
<field name="name">21% IVA Soportado no deducible</field>
<field name="chart_template_id" ref="l10n_es.account_chart_template_common"/>
<field name="amount" eval="21"/>
<field name="amount_type">percent</field>
@@ -1803,6 +1803,68 @@
}),
]"/>
</record>
<record id="account_tax_template_p_iva10_nd" model="account.tax.template">
<field name="type_tax_use">purchase</field>
<field name="name">10% IVA Soportado no deducible</field>
<field name="chart_template_id" ref="l10n_es.account_chart_template_common"/>
<field name="amount" eval="10"/>
<field name="amount_type">percent</field>
<field name="tax_group_id" ref="tax_group_iva_10"/>
<field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
(0,0, {
'factor_percent': 100,
'repartition_type': 'base',
}),
(0,0, {
'factor_percent': 100,
'repartition_type': 'tax',
}),
]"/>
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
(0,0, {
'factor_percent': 100,
'repartition_type': 'base',
}),
(0,0, {
'factor_percent': 100,
'repartition_type': 'tax',
}),
]"/>
</record>
<record id="account_tax_template_p_iva4_nd" model="account.tax.template">
<field name="type_tax_use">purchase</field>
<field name="name">4% IVA Soportado no deducible</field>
<field name="chart_template_id" ref="l10n_es.account_chart_template_common"/>
<field name="amount" eval="4"/>
<field name="amount_type">percent</field>
<field name="tax_group_id" ref="tax_group_iva_4"/>
<field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
(0,0, {
'factor_percent': 100,
'repartition_type': 'base',
}),
(0,0, {
'factor_percent': 100,
'repartition_type': 'tax',
}),
]"/>
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
(0,0, {
'factor_percent': 100,
'repartition_type': 'base',
}),
(0,0, {
'factor_percent': 100,
'repartition_type': 'tax',
}),
]"/>
</record>
<record id="account_tax_template_s_iva4s" model="account.tax.template">
<field name="description"/> <!-- for resetting the value on existing DBs -->
<field name="type_tax_use">sale</field>