mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[FIX] stock_mts_mto_rule: don't update route
Odoo declares routes as noupdate records so the user has the control over them. Another side effect of updatable route records is on initializing the record when OpenUpgrade is used to upgrade, which in a multicompany environment with mixed companies in the products could lead to a false company restriction error (maybe due to a bad declaration of restrictions in the product_ids field). TT31601
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
<odoo noupdate="1">
|
||||
<!--
|
||||
Procurement rules
|
||||
-->
|
||||
|
||||
11
stock_mts_mto_rule/migrations/13.0.1.3.0/pre-migration.py
Normal file
11
stock_mts_mto_rule/migrations/13.0.1.3.0/pre-migration.py
Normal 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,
|
||||
)
|
||||
Reference in New Issue
Block a user