Skip to content

Commit

Permalink
Add multi-company ir.rule on account.fiscal.year
Browse files Browse the repository at this point in the history
  • Loading branch information
alexis-via authored and baimont committed Oct 4, 2022
1 parent 0f90603 commit ab4288d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions account_fiscal_year/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
],
"data": [
"security/ir.model.access.csv",
"security/account_fiscal_year_rule.xml",
"views/account_fiscal_year_views.xml",
],
}
19 changes: 19 additions & 0 deletions account_fiscal_year/security/account_fiscal_year_rule.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8" ?>
<!--
Copyright 2021 Akretion France (http://www.akretion.com/)
@author: Alexis de Lattre <[email protected]>
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>

0 comments on commit ab4288d

Please sign in to comment.