Skip to content

Commit

Permalink
[FIX] fiscal_year_multi_company: add migration scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
GSLabIt committed Oct 27, 2023
1 parent ddec0df commit 2203e8b
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 1 deletion.
2 changes: 1 addition & 1 deletion account_fiscal_year_closing/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{
"name": "Fiscal year closing",
"summary": "Generic fiscal year closing wizard",
"version": "14.0.1.0.2",
"version": "14.0.1.0.3",
"category": "Accounting & Finance",
"website": "https://github.com/OCA/account-closing",
"author": "Tecnativa, Odoo Community Association (OCA)",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="fiscalyear_closing_multi_company_rule" model="ir.rule">
<field
name="domain_force"
>['|', ('company_id', '=', False), ('company_id', 'in', company_ids)]</field>
</record>

<record id="fiscalyear_closing_template_multi_company_rule" model="ir.rule">
<field
name="domain_force"
>['|', ('company_id', '=', False), ('company_id', 'in', company_ids)]</field>
</record>
</odoo>
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from openupgradelib import openupgrade


@openupgrade.migrate()
def migrate(env, version):

openupgrade.load_data(
env.cr,
"account_fiscal_year_closing",
"migrations/14.0.1.0.3/noupdate_changes.xml",
)
4 changes: 4 additions & 0 deletions account_fiscal_year_closing/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@
* `CorporateHub <https://corporatehub.eu/>`__

* Alexey Pelykh <[email protected]>

* `Ooops <https://ooops404.com>`__

* Giovanni Serra <[email protected]>

0 comments on commit 2203e8b

Please sign in to comment.