diff --git a/stock_request/migrations/13.0.1.0.0/noupdate_changes.xml b/stock_request/migrations/13.0.1.0.0/noupdate_changes.xml new file mode 100644 index 000000000..4ec751f15 --- /dev/null +++ b/stock_request/migrations/13.0.1.0.0/noupdate_changes.xml @@ -0,0 +1,14 @@ + + + + stock_request multi-company + ['|',('company_id', 'in', company_ids),('company_id','=',False)] + + + ['|',('company_id','=',False), ('company_id', 'in', company_ids)] + + diff --git a/stock_request/migrations/13.0.1.0.0/post-migration.py b/stock_request/migrations/13.0.1.0.0/post-migration.py new file mode 100644 index 000000000..aab947659 --- /dev/null +++ b/stock_request/migrations/13.0.1.0.0/post-migration.py @@ -0,0 +1,10 @@ +# Copyright 2021 Tecnativa - Pedro M. Baeza +# 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, "stock_request", "migrations/13.0.1.0.0/noupdate_changes.xml" + )