Skip to content

Commit

Permalink
Merge PR #452 into 12.0
Browse files Browse the repository at this point in the history
Signed-off-by dreispt
  • Loading branch information
OCA-git-bot committed Nov 30, 2024
2 parents 2119a28 + 7ef0eaa commit 8996a2a
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 3 deletions.
1 change: 1 addition & 0 deletions account_fiscal_position_type/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
],
'demo': [
'demo/res_groups.xml',
'demo/account_chart_template.xml',
'demo/account_fiscal_position.xml',
'demo/account_fiscal_position_template.xml',
],
Expand Down
18 changes: 18 additions & 0 deletions account_fiscal_position_type/demo/account_chart_template.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2022-Today GRAP (http://www.grap.coop)
@author Sylvain LE GAL (https://twitter.com/legalsylvain)
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
-->
<!-- oca-hooks: disable=xml-duplicate-record-id -->
<odoo>

<record id="chart_template" model="account.chart.template">
<field name="name">Demo Chart Template (account_fiscal_position_type)</field>
<field name="bank_account_code_prefix">1014</field>
<field name="cash_account_code_prefix">1015</field>
<field name="transfer_account_code_prefix">1017</field>
<field name="currency_id" ref="base.USD"/>
</record>

</odoo>
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
<record id="fiscal_position_template_purchase" model="account.fiscal.position.template">
<field name="name">Fiscal Position Template (Purchase Use)</field>
<field name="type_position_use">purchase</field>
<field name="chart_template_id" ref="l10n_generic_coa.configurable_chart_template" />
<field name="chart_template_id" ref="chart_template" />
</record>

<record id="fiscal_position_template_sale" model="account.fiscal.position.template">
<field name="name">Fiscal Position Template (Sale Use)</field>
<field name="type_position_use">sale</field>
<field name="chart_template_id" ref="l10n_generic_coa.configurable_chart_template" />
<field name="chart_template_id" ref="chart_template" />
</record>

</odoo>
2 changes: 1 addition & 1 deletion account_fiscal_position_type/tests/test_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def setUp(self):
self.AccountFiscalPosition = self.env['account.fiscal.position']
self.company = self.env.ref('base.main_company')
self.chart_template = self.env.ref(
'l10n_generic_coa.configurable_chart_template')
'account_fiscal_position_type.chart_template')
self.fiscal_position_template_purchase = self.env.ref(
'account_fiscal_position_type.fiscal_position_template_purchase')
self.fiscal_position_purchase = self.env.ref(
Expand Down

0 comments on commit 8996a2a

Please sign in to comment.