Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[14.0][OU-ADD] stock_account: Migration scripts #2841

Merged
merged 1 commit into from
Mar 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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