Skip to content

Commit

Permalink
Merge pull request #176 from Tecnativa/13.0-fix-product_harmonized_sy…
Browse files Browse the repository at this point in the history
…stem-mult-company-rules

[13.0][OU-ADD] product_harmonized_system: Multi-company rules migration script.
  • Loading branch information
pedrobaeza committed Jun 8, 2022
2 parents 30bfd8f + d8bc26a commit c1bc3c4
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version='1.0' encoding='utf-8' ?>
<odoo>
<record id="hs_code_company_rule" model="ir.rule">
<field
name="domain_force"
>['|',('company_id','=',False),('company_id','in',company_ids)]</field>
</record>
</odoo>
13 changes: 13 additions & 0 deletions product_harmonized_system/migrations/13.0.1.0.0/post-migration.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright 2022 Tecnativa - Víctor Martínez
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from openupgradelib import openupgrade


@openupgrade.migrate()
def migrate(env, version):
openupgrade.load_data(
env.cr,
"product_harmonized_system",
"migrations/13.0.1.0.0/noupdate_changes.xml",
)

0 comments on commit c1bc3c4

Please sign in to comment.