-
-
Notifications
You must be signed in to change notification settings - Fork 700
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[OU-ADD] stock_account: Migration scripts
- Loading branch information
1 parent
d924368
commit 38cfb71
Showing
5 changed files
with
44 additions
and
3 deletions.
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
4 changes: 2 additions & 2 deletions
4
openupgrade_scripts/scripts/stock_account/14.0.1.1/noupdate_changes.xml
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?xml version='1.0' encoding='utf-8'?> | ||
<odoo> | ||
<record id="stock_valuation_layer_company_rule" model="ir.rule"> | ||
<!-- <record id="stock_valuation_layer_company_rule" model="ir.rule"> | ||
<field name="global"/> | ||
</record> | ||
</record> --> | ||
</odoo> |
8 changes: 8 additions & 0 deletions
8
openupgrade_scripts/scripts/stock_account/14.0.1.1/post-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,8 @@ | ||
# 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.load_data(env.cr, "stock_account", "14.0.1.1/noupdate_changes.xml") |
10 changes: 10 additions & 0 deletions
10
openupgrade_scripts/scripts/stock_account/14.0.1.1/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, "stock_account", ["stock_valuation_layer_company_rule"], True | ||
) |
23 changes: 23 additions & 0 deletions
23
openupgrade_scripts/scripts/stock_account/14.0.1.1/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,23 @@ | ||
---Models in module 'stock_account'--- | ||
obsolete model stock.change.standard.price [transient] | ||
new model stock.valuation.layer.revaluation [transient] | ||
---Fields in module 'stock_account'--- | ||
---XML records in module 'stock_account'--- | ||
DEL ir.actions.act_window: stock_account.action_stock_inventory_valuation | ||
DEL ir.actions.act_window: stock_account.action_view_change_standard_price | ||
NEW ir.model.access: stock_account.access_account_journal_stock_manager | ||
NEW ir.model.access: stock_account.access_stock_move_invoicing_payments_readonly | ||
NEW ir.model.access: stock_account.access_stock_picking_invoicing_payments_readonly | ||
NEW ir.model.access: stock_account.access_stock_valuation_layer_revaluation | ||
DEL ir.model.access: stock_account.access_account_tag_stock_user | ||
NEW ir.ui.view: stock_account.stock_account_report_product_product_replenishment | ||
NEW ir.ui.view: stock_account.stock_valuation_layer_revaluation_form_view | ||
DEL ir.ui.view: stock_account.product_product_normal_form_view_inherit | ||
DEL ir.ui.view: stock_account.product_variant_easy_edit_view_inherit | ||
DEL ir.ui.view: stock_account.stock_valuation_layer_search | ||
DEL ir.ui.view: stock_account.view_change_standard_price | ||
DEL ir.ui.view: stock_account.view_template_property_form | ||
# NOTHING TO DO | ||
|
||
ir.rule: stock_account.stock_valuation_layer_company_rule (noupdate) (noupdate switched) | ||
# DONE: pre-migration: switched noupdate |