-
-
Notifications
You must be signed in to change notification settings - Fork 705
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2862 from ForgeFlow/13.0-mig-sale_stock
[14.0][OU-ADD] sale_stock: Migration scripts
- Loading branch information
Showing
3 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
openupgrade_scripts/scripts/sale_stock/14.0.1.0/pre-migration.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Copyright 2021 ForgeFlow S.L. <https://www.forgeflow.com> | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
from openupgradelib import openupgrade | ||
|
||
|
||
@openupgrade.migrate() | ||
def migrate(env, version): | ||
openupgrade.set_xml_ids_noupdate_value( | ||
env, "sale_stock", ["stock_picking_rule_portal"], True | ||
) |
21 changes: 21 additions & 0 deletions
21
openupgrade_scripts/scripts/sale_stock/14.0.1.0/upgrade_analysis_work.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
---Models in module 'sale_stock'--- | ||
---Fields in module 'sale_stock'--- | ||
sale_stock / res.users / property_warehouse_id (many2one): NEW relation: stock.warehouse, hasdefault | ||
sale_stock / sale.order.line / warehouse_id (many2one) : not a function anymore | ||
sale_stock / sale.order.line / warehouse_id (many2one) : now related | ||
# NOTHING TO DO | ||
|
||
---XML records in module 'sale_stock'--- | ||
NEW ir.model.access: sale_stock.access_stock_picking_portal [renamed from stock module] | ||
# NOTHING TO DO: done in stock | ||
|
||
ir.rule: sale_stock.stock_picking_rule_portal (noupdate) (noupdate switched) | ||
# DONE: pre-migration: switched noupdate xmlid | ||
|
||
DEL ir.model.access: sale_stock.access_product_packaging_manager | ||
NEW ir.ui.view: sale_stock.res_users_view_form | ||
NEW ir.ui.view: sale_stock.res_users_view_form_preferences | ||
NEW ir.ui.view: sale_stock.res_users_view_simple_form | ||
NEW ir.ui.view: sale_stock.sale_order_cancel_view_form_inherit | ||
NEW ir.ui.view: sale_stock.sale_report_product_product_replenishment | ||
# NOTHING TO DO: noupdate=0 ir records |