[FIX] l10n_ch: improve the definition of "dédouanement" taxes so that they can be used with tax closing features
Tax closing requires the use of tax_line_id field on the lines it needs to take into account. This new config ensures such a line is created for 100% taxes. An empty, 0-balanced line is also created for the base line, but this is acceptable. [IMP] l10n_ch: add new 100% tax for investments and other expenses OPW 2333144 closes odoo/odoo#58014 X-original-commit: 0cc190ad302f98f7ae198166983ac40532d1d5ee Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
This commit is contained in:
@@ -17,5 +17,10 @@
|
||||
</record>
|
||||
|
||||
</data>
|
||||
|
||||
<data>
|
||||
<record id="tax_group_tva_100" model="account.tax.group">
|
||||
<field name="name">TVA 100%</field>
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
|
||||
@@ -679,35 +679,72 @@
|
||||
<field name="tax_group_id" ref="tax_group_tva_0"/>
|
||||
</record>
|
||||
|
||||
<!--# 100% on import !! the tax percentage is 00-->
|
||||
<record model="account.tax.template" id="vat_100_import">
|
||||
<field name="name">100% dédouanement TVA</field>
|
||||
<field name="name">Dédouanement TVA (biens et services)</field>
|
||||
<field name="description">100% imp.</field>
|
||||
<field name="amount" eval="0.0"/>
|
||||
<field name="amount_type">percent</field>
|
||||
<field name="amount" eval="100"/>
|
||||
<field name="amount_type">division</field>
|
||||
<field name="chart_template_id" ref="l10nch_chart_template"/>
|
||||
<field name="type_tax_use">purchase</field>
|
||||
<field name="tax_group_id" ref="tax_group_tva_0"/>
|
||||
<field name="tax_group_id" ref="tax_group_tva_100"/>
|
||||
<field name="price_include" eval="1"/>
|
||||
<field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'factor_percent': 100,
|
||||
'repartition_type': 'base',
|
||||
'plus_report_line_ids': [ref('account_tax_report_line_chtax_400')],
|
||||
}),
|
||||
(0,0, {
|
||||
'factor_percent': 100,
|
||||
'repartition_type': 'tax',
|
||||
'account_id': ref('ch_coa_1170'),
|
||||
'plus_report_line_ids': [ref('account_tax_report_line_chtax_400')],
|
||||
}),
|
||||
]"/>
|
||||
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
|
||||
(0,0, {
|
||||
'factor_percent': 100,
|
||||
'repartition_type': 'base',
|
||||
'minus_report_line_ids': [ref('account_tax_report_line_chtax_400')],
|
||||
}),
|
||||
(0,0, {
|
||||
'factor_percent': 100,
|
||||
'repartition_type': 'tax',
|
||||
'account_id': ref('ch_coa_1170'),
|
||||
'minus_report_line_ids': [ref('account_tax_report_line_chtax_400')],
|
||||
}),
|
||||
]"/>
|
||||
</record>
|
||||
|
||||
<record model="account.tax.template" id="vat_100_import_invest">
|
||||
<field name="name">Dédouanement TVA (invest. et autres ch.)</field>
|
||||
<field name="description">100% imp.invest.</field>
|
||||
<field name="amount" eval="100"/>
|
||||
<field name="amount_type">division</field>
|
||||
<field name="chart_template_id" ref="l10nch_chart_template"/>
|
||||
<field name="type_tax_use">purchase</field>
|
||||
<field name="tax_group_id" ref="tax_group_tva_100"/>
|
||||
<field name="price_include" eval="1"/>
|
||||
<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',
|
||||
'account_id': ref('ch_coa_1171'),
|
||||
'plus_report_line_ids': [ref('account_tax_report_line_chtax_405')],
|
||||
}),
|
||||
]"/>
|
||||
<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',
|
||||
'account_id': ref('ch_coa_1171'),
|
||||
'minus_report_line_ids': [ref('account_tax_report_line_chtax_405')],
|
||||
}),
|
||||
]"/>
|
||||
</record>
|
||||
|
||||
@@ -50,11 +50,26 @@ msgstr ""
|
||||
msgid "100% dédouanement TVA"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_ch
|
||||
#: model:account.tax.template,name:l10n_ch.vat_100_import
|
||||
msgid "Dédouanement TVA (biens et services)"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_ch
|
||||
#: model:account.tax.template,name:l10n_ch.vat_100_import_invest
|
||||
msgid "Dédouanement TVA (invest. et autres ch.)"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_ch
|
||||
#: model:account.tax.template,description:l10n_ch.vat_100_import
|
||||
msgid "100% imp."
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_ch
|
||||
#: model:account.tax.template,description:l10n_ch.vat_100_import
|
||||
msgid "100% imp.invest."
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_ch
|
||||
#: model:account.tax.template,description:l10n_ch.vat_25
|
||||
msgid "2.5%"
|
||||
|
||||
Reference in New Issue
Block a user