Merge PR #1231 into 13.0

Signed-off-by pedrobaeza
This commit is contained in:
OCA-git-bot
2021-09-02 14:41:00 +00:00
3 changed files with 13 additions and 2 deletions

View File

@@ -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",

View File

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<odoo noupdate="1">
<!--
Procurement rules
-->

View File

@@ -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,
)