2
0

Add multi-company ir.rule on account.fiscal.year

This commit is contained in:
Alexis de Lattre 2021-02-03 14:36:02 +01:00 committed by Benoit Aimont
parent 0f90603212
commit ab4288deb6
2 changed files with 20 additions and 0 deletions

View File

@ -19,6 +19,7 @@
], ],
"data": [ "data": [
"security/ir.model.access.csv", "security/ir.model.access.csv",
"security/account_fiscal_year_rule.xml",
"views/account_fiscal_year_views.xml", "views/account_fiscal_year_views.xml",
], ],
} }

View File

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8" ?>
<!--
Copyright 2021 Akretion France (http://www.akretion.com/)
@author: Alexis de Lattre <alexis.delattre@akretion.com>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<odoo noupdate="1">
<record id="account_fiscal_year_rule" model="ir.rule">
<field name="name">Fiscal Year multi-company</field>
<field name="model_id" ref="model_account_fiscal_year" />
<field
name="domain_force"
>['|', ('company_id', '=', False), ('company_id', 'in', company_ids)]</field>
</record>
</odoo>