diff --git a/stock_request/__manifest__.py b/stock_request/__manifest__.py index 7f749c1c4..ac1bd6a40 100644 --- a/stock_request/__manifest__.py +++ b/stock_request/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Stock Request", "summary": "Internal request for stock", - "version": "14.0.1.2.0", + "version": "14.0.1.3.0", "license": "LGPL-3", "website": "https://github.com/OCA/stock-logistics-warehouse", "author": "ForgeFlow, Odoo Community Association (OCA)", diff --git a/stock_request/migrations/14.0.1.3.0/noupdate_changes.xml b/stock_request/migrations/14.0.1.3.0/noupdate_changes.xml new file mode 100644 index 000000000..165527ddb --- /dev/null +++ b/stock_request/migrations/14.0.1.3.0/noupdate_changes.xml @@ -0,0 +1,14 @@ + + + + stock_request multi-company + ['|',('company_id','=',False),('company_id', 'in', company_ids)] + + + ['|',('company_id','=',False),('company_id', 'in', company_ids)] + + diff --git a/stock_request/migrations/14.0.1.3.0/post-migration.py b/stock_request/migrations/14.0.1.3.0/post-migration.py new file mode 100644 index 000000000..936f1582f --- /dev/null +++ b/stock_request/migrations/14.0.1.3.0/post-migration.py @@ -0,0 +1,10 @@ +# Copyright 2023 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/14.0.1.3.0/noupdate_changes.xml" + )