diff --git a/stock_mts_mto_rule/__manifest__.py b/stock_mts_mto_rule/__manifest__.py index fa84bc75f..bd5829c9e 100644 --- a/stock_mts_mto_rule/__manifest__.py +++ b/stock_mts_mto_rule/__manifest__.py @@ -3,7 +3,7 @@ { "name": "Stock MTS+MTO Rule", "summary": "Add a MTS+MTO route", - "version": "13.0.1.2.0", + "version": "13.0.1.3.0", "development_status": "Mature", "category": "Warehouse", "website": "https://github.com/OCA/stock-logistics-warehouse", diff --git a/stock_mts_mto_rule/data/stock_data.xml b/stock_mts_mto_rule/data/stock_data.xml index 3028cfee4..f48e5c8e0 100644 --- a/stock_mts_mto_rule/data/stock_data.xml +++ b/stock_mts_mto_rule/data/stock_data.xml @@ -1,5 +1,5 @@ - + diff --git a/stock_mts_mto_rule/migrations/13.0.1.3.0/pre-migration.py b/stock_mts_mto_rule/migrations/13.0.1.3.0/pre-migration.py new file mode 100644 index 000000000..d54ba9193 --- /dev/null +++ b/stock_mts_mto_rule/migrations/13.0.1.3.0/pre-migration.py @@ -0,0 +1,11 @@ +# Copyright 2021 Tecnativa David Vidal +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). +from openupgradelib import openupgrade + + +@openupgrade.migrate() +def migrate(env, version): + # Now the record is declared as noupdate + openupgrade.set_xml_ids_noupdate_value( + env, "stock_mts_mto_rule", ["route_mto_mts"], True, + )