Skip to content

Commit

Permalink
[OU-ADD] stock_account: Migration scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
MiquelRForgeFlow authored and pedrobaeza committed Mar 27, 2022
1 parent d924368 commit 38cfb71
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docsource/modules130-140.rst
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ Module coverage 13.0 -> 14.0
+--------------------------------------------+-------------------------------------------------+
|stock | Done |
+--------------------------------------------+-------------------------------------------------+
|stock_account | |
|stock_account | Done |
+--------------------------------------------+-------------------------------------------------+
|stock_dropshipping | Nothing to do |
+--------------------------------------------+-------------------------------------------------+
Expand Down
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>
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")
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
)
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

0 comments on commit 38cfb71

Please sign in to comment.