[MIG] agreement: Migration to 13.0

This commit is contained in:
sergio-teruel
2021-02-14 09:20:21 +01:00
committed by newtratip
parent dadee755d2
commit 26a26d19d3
14 changed files with 207 additions and 195 deletions

View 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>

View 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"
)