mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[MIG] agreement: Migration to 13.0
This commit is contained in:
8
agreement/migrations/13.0.1.0.0/noupdate_changes.xml
Normal file
8
agreement/migrations/13.0.1.0.0/noupdate_changes.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version='1.0' encoding='utf-8' ?>
|
||||
<odoo>
|
||||
<record id="agreement_rule" model="ir.rule">
|
||||
<field
|
||||
name="domain_force"
|
||||
>['|', ('company_id', '=', False), ('company_id', 'in', company_ids)]</field>
|
||||
</record>
|
||||
</odoo>
|
||||
11
agreement/migrations/13.0.1.0.0/post-migration.py
Normal file
11
agreement/migrations/13.0.1.0.0/post-migration.py
Normal file
@@ -0,0 +1,11 @@
|
||||
# Copyright 2021 Tecnativa - Sergio Teruel
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from openupgradelib import openupgrade # pylint: disable=W7936
|
||||
|
||||
|
||||
@openupgrade.migrate()
|
||||
def migrate(env, version):
|
||||
openupgrade.load_data(
|
||||
env.cr, "agreement", "migrations/13.0.1.0.0/noupdate_changes.xml"
|
||||
)
|
||||
Reference in New Issue
Block a user