diff --git a/docsource/modules130-140.rst b/docsource/modules130-140.rst index a83b7803b539..9a709981a578 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..7c63e6344e4e 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,9 +1,11 @@ - + + - order + + 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..398254610ca3 --- /dev/null +++ b/openupgrade_scripts/scripts/delivery/14.0.1.0/pre-migration.py @@ -0,0 +1,14 @@ +# Copyright (C) 2022 - Today: GRAP (http://www.grap.coop) +# @author: Sylvain LE GAL (https://twitter.com/legalsylvain) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +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) diff --git a/openupgrade_scripts/scripts/delivery/14.0.1.0/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/delivery/14.0.1.0/upgrade_analysis_work.txt new file mode 100644 index 000000000000..73d5c1938398 --- /dev/null +++ b/openupgrade_scripts/scripts/delivery/14.0.1.0/upgrade_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. length renamed into packaging_length in pre-migration script + +delivery / stock.picking / volume (float) : DEL + +---XML records in module 'delivery'--- +NEW ir.model.access: delivery.access_choose_delivery_carrier +NEW ir.model.access: delivery.access_choose_delivery_package +ir.model.constraint: delivery.constraint_product_packaging_positive_length (changed definition: is now 'check(packaging_length>=0)' ('check(length>=0)')) +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.