From 76af1de75826844b34cbe176eeaaa468d3bccaa4 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Mon, 22 Jun 2020 23:05:48 +0200 Subject: [PATCH] Add migration script for ir.rule --- intrastat_product/__manifest__.py | 2 +- .../migrations/13.0.1.0.3/noupdate_changes.xml | 18 ++++++++++++++++++ .../migrations/13.0.1.0.3/post-migration.py | 10 ++++++++++ 3 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 intrastat_product/migrations/13.0.1.0.3/noupdate_changes.xml create mode 100644 intrastat_product/migrations/13.0.1.0.3/post-migration.py diff --git a/intrastat_product/__manifest__.py b/intrastat_product/__manifest__.py index db8b18d..6abbcb4 100644 --- a/intrastat_product/__manifest__.py +++ b/intrastat_product/__manifest__.py @@ -7,7 +7,7 @@ { "name": "Intrastat Product", - "version": "13.0.1.0.2", + "version": "13.0.1.0.3", "category": "Intrastat", "license": "AGPL-3", "summary": "Base module for Intrastat Product", diff --git a/intrastat_product/migrations/13.0.1.0.3/noupdate_changes.xml b/intrastat_product/migrations/13.0.1.0.3/noupdate_changes.xml new file mode 100644 index 0000000..2b3316d --- /dev/null +++ b/intrastat_product/migrations/13.0.1.0.3/noupdate_changes.xml @@ -0,0 +1,18 @@ + + + + ['|', ('company_id', '=', False), ('company_id', 'in', company_ids)] + + + ['|', ('company_id', '=', False), ('company_id', 'in', company_ids)] + + + ['|', ('company_id', '=', False), ('company_id', 'in', company_ids)] + + diff --git a/intrastat_product/migrations/13.0.1.0.3/post-migration.py b/intrastat_product/migrations/13.0.1.0.3/post-migration.py new file mode 100644 index 0000000..9264a91 --- /dev/null +++ b/intrastat_product/migrations/13.0.1.0.3/post-migration.py @@ -0,0 +1,10 @@ +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from openupgradelib import openupgrade # pylint: disable=W7936 + + +@openupgrade.migrate() +def migrate(env, version): + openupgrade.load_data( + env.cr, "intrastat_product", "migrations/13.0.1.0.3/noupdate_changes.xml" + )