-
-
Notifications
You must be signed in to change notification settings - Fork 706
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
[17.0][OU-ADD] stock: migrate to 17.0 #4681
base: 17.0
Are you sure you want to change the base?
Conversation
/ocabot migration stock |
|
||
@openupgrade.migrate() | ||
def migrate(env, version): | ||
openupgrade.load_data(env, "stock", "17.0.1.1/noupdate_changes.xml") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
call delete_record_translations() on mail_template_data_delivery_confirmation
|
||
stock / product.product / sale_delay (float) : type is now 'integer' ('float') | ||
stock / product.template / sale_delay (float) : type is now 'integer' ('float') | ||
# NOTHING TO DO |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
openupgrade.float_to_integer()
# DONE: pre-migration | ||
|
||
stock / stock.move.line / picked (boolean) : NEW hasdefault: compute | ||
stock / stock.move.line / quant_id (many2one) : NEW relation: stock.quant |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we try to fill this?
stock / stock.picking.type / picking_properties_definition (properties_definition): NEW | ||
stock / stock.picking.type / product_label_format (selection): NEW selection_keys: ['2x7xprice', '4x12', '4x12xprice', '4x7xprice', 'dymo', 'zpl', 'zplxprice'], hasdefault: default | ||
stock / stock.picking.type / show_reserved (boolean) : now a function | ||
# NOTHING TO DO: fields in new model |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what do you mean by new
model?
ir.model.constraint: stock.constraint_stock_package_type_positive_height (changed definition: is now 'check(height>=0.0)' ('check(height>=0)')) | ||
ir.model.constraint: stock.constraint_stock_package_type_positive_length (changed definition: is now 'check(packaging_length>=0.0)' ('check(packaging_length>=0)')) | ||
ir.model.constraint: stock.constraint_stock_package_type_positive_width (changed definition: is now 'check(width>=0.0)' ('check(width>=0)')) | ||
# NOTHING TO DO |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
detele them in pre-migration with delete_sql_constraint_safely() in order to let odoo add it again directly with the new definition
continuation of #4557