diff --git a/docsource/modules150-160.rst b/docsource/modules150-160.rst index 011604d37159..0fa24a68176a 100644 --- a/docsource/modules150-160.rst +++ b/docsource/modules150-160.rst @@ -64,7 +64,7 @@ Module coverage 15.0 -> 16.0 +-------------------------------------------------+----------------------+-------------------------------------------------+ | barcodes |Nothing to do |No DB layout changes. | +-------------------------------------------------+----------------------+-------------------------------------------------+ -| barcodes_gs1_nomenclature | | | +| barcodes_gs1_nomenclature | Done | | +-------------------------------------------------+----------------------+-------------------------------------------------+ | base |Partial | | +-------------------------------------------------+----------------------+-------------------------------------------------+ @@ -584,7 +584,7 @@ Module coverage 15.0 -> 16.0 +-------------------------------------------------+----------------------+-------------------------------------------------+ | portal |Done | | +-------------------------------------------------+----------------------+-------------------------------------------------+ -| portal_rating | |No DB layout changes. | +| portal_rating | Nothing to do |No DB layout changes. | +-------------------------------------------------+----------------------+-------------------------------------------------+ | pos_adyen | | | +-------------------------------------------------+----------------------+-------------------------------------------------+ diff --git a/openupgrade_scripts/scripts/barcodes_gs1_nomenclature/16.0.1.0/post-migration.py b/openupgrade_scripts/scripts/barcodes_gs1_nomenclature/16.0.1.0/post-migration.py new file mode 100644 index 000000000000..7594d755f8e2 --- /dev/null +++ b/openupgrade_scripts/scripts/barcodes_gs1_nomenclature/16.0.1.0/post-migration.py @@ -0,0 +1,8 @@ +from openupgradelib import openupgrade + + +@openupgrade.migrate() +def migrate(env, version): + openupgrade.load_data( + env.cr, "barcodes_gs1_nomenclature", "16.0.1.0/noupdate_changes.xml" + ) diff --git a/openupgrade_scripts/scripts/barcodes_gs1_nomenclature/16.0.1.0/pre-migration.py b/openupgrade_scripts/scripts/barcodes_gs1_nomenclature/16.0.1.0/pre-migration.py new file mode 100644 index 000000000000..9d059dfdc23a --- /dev/null +++ b/openupgrade_scripts/scripts/barcodes_gs1_nomenclature/16.0.1.0/pre-migration.py @@ -0,0 +1,17 @@ +from openupgradelib import openupgrade + + +def set_type(env): + openupgrade.logged_query( + env.cr, + """ + UPDATE barcode_rule + SET type = 'pack_date' + WHERE type = 'packaging_date' + """, + ) + + +@openupgrade.migrate() +def migrate(env, version): + set_type(env) diff --git a/openupgrade_scripts/scripts/barcodes_gs1_nomenclature/16.0.1.0/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/barcodes_gs1_nomenclature/16.0.1.0/upgrade_analysis_work.txt new file mode 100644 index 000000000000..01a0e90afe91 --- /dev/null +++ b/openupgrade_scripts/scripts/barcodes_gs1_nomenclature/16.0.1.0/upgrade_analysis_work.txt @@ -0,0 +1,17 @@ +---Models in module 'barcodes_gs1_nomenclature'--- +---Fields in module 'barcodes_gs1_nomenclature'--- +barcodes_gs1_nomenclature / barcode.rule / type (False) : selection_keys is now '['alias', 'expiration_date', 'location', 'location_dest', 'lot', 'pack_date', 'package', 'package_type', 'product', 'quantity', 'use_date']' ('['alias', 'expiration_date', 'location', 'location_dest', 'lot', 'package', 'package_type', 'packaging_date', 'product', 'quantity', 'use_date']') + +# DONE: update type value = packaging_date to pack_date + +---XML records in module 'barcodes_gs1_nomenclature'--- +NEW barcode.rule: barcodes_gs1_nomenclature.barcode_rule_gs1_314y (noupdate) +NEW barcode.rule: barcodes_gs1_nomenclature.barcode_rule_gs1_320y (noupdate) +NEW barcode.rule: barcodes_gs1_nomenclature.barcode_rule_gs1_322y (noupdate) +NEW barcode.rule: barcodes_gs1_nomenclature.barcode_rule_gs1_323y (noupdate) +NEW barcode.rule: barcodes_gs1_nomenclature.barcode_rule_gs1_351y (noupdate) +NEW barcode.rule: barcodes_gs1_nomenclature.barcode_rule_gs1_360y (noupdate) +NEW barcode.rule: barcodes_gs1_nomenclature.barcode_rule_gs1_361y (noupdate) +NEW barcode.rule: barcodes_gs1_nomenclature.barcode_rule_gs1_364y (noupdate) + +# NOTHING TO DO