diff --git a/docsource/modules130-140.rst b/docsource/modules130-140.rst index 8ed106a055ec..b51bd1917e76 100644 --- a/docsource/modules130-140.rst +++ b/docsource/modules130-140.rst @@ -118,7 +118,7 @@ Module coverage 13.0 -> 14.0 +--------------------------------------------+-------------------------------------------------+ |crm_sms | Done | +--------------------------------------------+-------------------------------------------------+ -|delivery | | +|delivery | Done | +--------------------------------------------+-------------------------------------------------+ |digest | Done | +--------------------------------------------+-------------------------------------------------+ diff --git a/openupgrade_scripts/scripts/delivery/14.0.1.0/noupdate_changes.xml b/openupgrade_scripts/scripts/delivery/14.0.1.0/noupdate_changes.xml index eb6034c2929e..1116002a739c 100644 --- a/openupgrade_scripts/scripts/delivery/14.0.1.0/noupdate_changes.xml +++ b/openupgrade_scripts/scripts/delivery/14.0.1.0/noupdate_changes.xml @@ -1,8 +1,8 @@ - - - + order diff --git a/openupgrade_scripts/scripts/delivery/14.0.1.0/openupgrade_analysis_work.txt b/openupgrade_scripts/scripts/delivery/14.0.1.0/openupgrade_analysis_work.txt new file mode 100644 index 000000000000..5474c19341a4 --- /dev/null +++ b/openupgrade_scripts/scripts/delivery/14.0.1.0/openupgrade_analysis_work.txt @@ -0,0 +1,17 @@ +---Models in module 'delivery'--- +---Fields in module 'delivery'--- +delivery / product.packaging / length (integer) : DEL +delivery / product.packaging / packaging_length (integer) : NEW +# DONE: pre-migration: renamed field + +delivery / stock.picking / volume (float) : DEL +# NOTHING TO DO: unused field + +---XML records in module 'delivery'--- +NEW ir.model.access: delivery.access_choose_delivery_carrier +NEW ir.model.access: delivery.access_choose_delivery_package +NEW ir.ui.view: delivery.delivery_stock_report_delivery_no_package_section_line +NEW ir.ui.view: delivery.stock_report_delivery_aggregated_move_lines_inherit_delivery +NEW ir.ui.view: delivery.stock_report_delivery_has_serial_move_line_inherit_delivery +NEW ir.ui.view: delivery.stock_report_delivery_package_section_line_inherit_delivery +# NOTHING TO DO diff --git a/openupgrade_scripts/scripts/delivery/14.0.1.0/post-migration.py b/openupgrade_scripts/scripts/delivery/14.0.1.0/post-migration.py new file mode 100644 index 000000000000..f9134b4d4da9 --- /dev/null +++ b/openupgrade_scripts/scripts/delivery/14.0.1.0/post-migration.py @@ -0,0 +1,9 @@ +# Copyright (C) 2021 Open Source Integrators +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). +from openupgradelib import openupgrade + + +@openupgrade.migrate() +def migrate(env, version): + # Load noupdate changes + openupgrade.load_data(env.cr, "delivery", "14.0.1.0/noupdate_changes.xml") diff --git a/openupgrade_scripts/scripts/delivery/14.0.1.0/pre-migration.py b/openupgrade_scripts/scripts/delivery/14.0.1.0/pre-migration.py new file mode 100644 index 000000000000..254470387be5 --- /dev/null +++ b/openupgrade_scripts/scripts/delivery/14.0.1.0/pre-migration.py @@ -0,0 +1,12 @@ +# Copyright (C) 2021 Open Source Integrators +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). +from openupgradelib import openupgrade + +_field_renames = [ + ("product.packaging", "product_packaging", "length", "packaging_length") +] + + +@openupgrade.migrate() +def migrate(env, version): + openupgrade.rename_fields(env, _field_renames)