forked from tvtma/OpenUpgrade
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'OCA/16.0' into 16.0
- Loading branch information
Showing
4 changed files
with
44 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
openupgrade_scripts/scripts/barcodes_gs1_nomenclature/16.0.1.0/post-migration.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
) |
17 changes: 17 additions & 0 deletions
17
openupgrade_scripts/scripts/barcodes_gs1_nomenclature/16.0.1.0/pre-migration.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) |
17 changes: 17 additions & 0 deletions
17
openupgrade_scripts/scripts/barcodes_gs1_nomenclature/16.0.1.0/upgrade_analysis_work.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |