account-closing/account_fiscal_year_closing/security/account_fiscalyear_closing_security.xml

25 lines
1.1 KiB
XML
Raw Normal View History

2023-05-19 08:19:13 +00:00
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2016 Antonio Espinosa <antonio.espinosa@tecnativa.com>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<flectra noupdate="1">
<record id="fiscalyear_closing_multi_company_rule" model="ir.rule">
<field name="name">Fiscal year closing multi-company</field>
<field name="model_id" ref="model_account_fiscalyear_closing" />
<field name="global" eval="True" />
<field
name="domain_force"
>['|', ('company_id', '=', False), ('company_id', 'child_of', [user.company_id.id])]</field>
</record>
<record id="fiscalyear_closing_template_multi_company_rule" model="ir.rule">
<field name="name">Fiscal year closing template multi-company</field>
<field name="model_id" ref="model_account_fiscalyear_closing_template" />
<field name="global" eval="True" />
<field
name="domain_force"
>['|', ('company_id', '=', False), ('company_id', 'child_of', [user.company_id.id])]</field>
</record>
</flectra>