Skip to content

Commit

Permalink
[16.0][MIG] l10n_be_eco_tax
Browse files Browse the repository at this point in the history
  • Loading branch information
rousseldenis committed Sep 5, 2023
1 parent a6085c8 commit 9cbc6fe
Show file tree
Hide file tree
Showing 14 changed files with 2,213 additions and 275 deletions.
1 change: 1 addition & 0 deletions l10n_be_eco_tax/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .hooks import post_init_hook
5 changes: 3 additions & 2 deletions l10n_be_eco_tax/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
{
"name": "Belgium Eco Taxes",
"summary": "Data module to support BEBAT and RECUPEL taxes",
"version": "10.0.1.0.0",
"author": "ACSONE SA/NV," "BCIM sprl, " "Okia, " "Odoo Community Association (OCA)",
"version": "16.0.1.0.0",
"author": "ACSONE SA/NV, BCIM sprl, Okia, Odoo Community Association (OCA)",
"category": "Generic Modules/Accounting",
"website": "https://github.com/OCA/l10n-belgium",
"depends": ["account", "l10n_be"],
Expand All @@ -19,4 +19,5 @@
],
"license": "AGPL-3",
"installable": True,
"post_init_hook": "post_init_hook",
}
8 changes: 4 additions & 4 deletions l10n_be_eco_tax/data/account_account_template_data.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,31 @@
<record id="recupel_income_account" model="account.account.template">
<field name="name">RECUPEL Sale</field>
<field name="code">70092</field>
<field name="user_type_id" ref="account.data_account_type_revenue" />
<field name="account_type">income</field>
<field name="chart_template_id" ref="l10n_be.l10nbe_chart_template" />
<field name="tag_ids" eval="[(6,0,[ref('account.account_tag_operating')])]" />
</record>

<record id="recupel_expense_account" model="account.account.template">
<field name="name">RECUPEL Purchase</field>
<field name="code">60192</field>
<field name="user_type_id" ref="account.data_account_type_expenses" />
<field name="account_type">expense</field>
<field name="chart_template_id" ref="l10n_be.l10nbe_chart_template" />
<field name="tag_ids" eval="[(6,0,[ref('account.account_tag_operating')])]" />
</record>

<record id="bebat_income_account" model="account.account.template">
<field name="name">BEBAT Sale</field>
<field name="code">70093</field>
<field name="user_type_id" ref="account.data_account_type_revenue" />
<field name="account_type">income</field>
<field name="chart_template_id" ref="l10n_be.l10nbe_chart_template" />
<field name="tag_ids" eval="[(6,0,[ref('account.account_tag_operating')])]" />
</record>

<record id="bebat_expense_account" model="account.account.template">
<field name="name">BEBAT Purchase</field>
<field name="code">60193</field>
<field name="user_type_id" ref="account.data_account_type_expenses" />
<field name="account_type">expense</field>
<field name="chart_template_id" ref="l10n_be.l10nbe_chart_template" />
<field name="tag_ids" eval="[(6,0,[ref('account.account_tag_operating')])]" />
</record>
Expand Down
45 changes: 27 additions & 18 deletions l10n_be_eco_tax/data/account_tax_template_bebat_data.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>

<record id="bebat_01_out" model="account.tax.template">
<record id="bebat_01" model="account.tax.template">
<field name="sequence">1</field>
<field name="description">BEBAT-75-OUT</field>
<field name="name">BEBAT 0.075 Out</field>
Expand All @@ -10,24 +10,33 @@
<field name="amount">0.075</field>
<field name="amount_type">fixed</field>
<field name="type_tax_use">sale</field>
<field name="account_id" ref="bebat_income_account" />
<field name="refund_account_id" ref="bebat_income_account" />
<field
name="invoice_repartition_line_ids"
eval="[(5, 0, 0),
(0,0, {
'repartition_type': 'base',
}),
(0,0, {
'repartition_type': 'tax',
'account_id': ref('bebat_income_account'),
'tag_ids': [ref('tax_tag_ecotax')],
}),
]"
/>
<field
name="refund_repartition_line_ids"
eval="[(5, 0, 0),
(0,0, {
'repartition_type': 'base',
}),
(0,0, {
'repartition_type': 'tax',
'account_id': ref('bebat_expense_account'),
'tag_ids': [ref('tax_tag_ecotax')],
}),
]"
/>
<field name="include_base_amount" eval="1" />
<field name="tag_ids" eval="[(6,0,[ref('tax_tag_ecotax')])]" />
</record>
<record id="bebat_01_in" model="account.tax.template">
<field name="sequence">1</field>
<field name="description">BEBAT-75-IN</field>
<field name="name">BEBAT 0.075 in</field>
<field name="chart_template_id" ref="l10n_be.l10nbe_chart_template" />
<field name="price_include" eval="0" />
<field name="amount">0.075</field>
<field name="amount_type">fixed</field>
<field name="type_tax_use">sale</field>
<field name="account_id" ref="bebat_expense_account" />
<field name="refund_account_id" ref="bebat_expense_account" />
<field name="include_base_amount" eval="1" />
<field name="tag_ids" eval="[(6,0,[ref('tax_tag_ecotax')])]" />
</record>

</odoo>
Loading

0 comments on commit 9cbc6fe

Please sign in to comment.