diff --git a/docsource/modules140-150.rst b/docsource/modules140-150.rst index 9ef4fddfe0b5..a7a7f962c587 100644 --- a/docsource/modules140-150.rst +++ b/docsource/modules140-150.rst @@ -206,7 +206,7 @@ Module coverage 14.0 -> 15.0 +-------------------------------------------------+----------------------+-------------------------------------------------+ | hr_timesheet_attendance | Nothing to do | | +-------------------------------------------------+----------------------+-------------------------------------------------+ -| hr_work_entry | | | +| hr_work_entry | Nothing to do | | +-------------------------------------------------+----------------------+-------------------------------------------------+ | |new| hr_work_entry_contract | | | +-------------------------------------------------+----------------------+-------------------------------------------------+ @@ -510,7 +510,7 @@ Module coverage 14.0 -> 15.0 +-------------------------------------------------+----------------------+-------------------------------------------------+ | mass_mailing_slides |Nothing to do |No analysis file. No DB layout changes. | +-------------------------------------------------+----------------------+-------------------------------------------------+ -| mass_mailing_sms | | | +| mass_mailing_sms | Nothing to do | | +-------------------------------------------------+----------------------+-------------------------------------------------+ | membership | Nothing to do | | +-------------------------------------------------+----------------------+-------------------------------------------------+ @@ -674,7 +674,7 @@ Module coverage 14.0 -> 15.0 +-------------------------------------------------+----------------------+-------------------------------------------------+ | rating | Done | | +-------------------------------------------------+----------------------+-------------------------------------------------+ -| repair | | | +| repair | Done | | +-------------------------------------------------+----------------------+-------------------------------------------------+ | resource | Nothing to do | | +-------------------------------------------------+----------------------+-------------------------------------------------+ diff --git a/openupgrade_scripts/scripts/hr_work_entry/15.0.1.0/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/hr_work_entry/15.0.1.0/upgrade_analysis_work.txt new file mode 100644 index 000000000000..a8dac23d4023 --- /dev/null +++ b/openupgrade_scripts/scripts/hr_work_entry/15.0.1.0/upgrade_analysis_work.txt @@ -0,0 +1,11 @@ +---Models in module 'hr_work_entry'--- +---Fields in module 'hr_work_entry'--- +hr_work_entry / hr.work.entry / department_id (many2one) : NEW relation: hr.department, isrelated: related, stored +# NOTHING TO DO: handle by ORM + +---XML records in module 'hr_work_entry'--- +NEW ir.model.constraint: hr_work_entry.constraint_hr_work_entry__work_entries_no_validated_conflict +NEW ir.ui.view: hr_work_entry.hr_employee_view_form +NEW ir.ui.view: hr_work_entry.resource_calendar_leaves_view_search_inherit +DEL ir.ui.view: hr_work_entry.resource_calendar_view_form +# NOTHING TO DO diff --git a/openupgrade_scripts/scripts/mass_mailing_sms/15.0.1.0/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/mass_mailing_sms/15.0.1.0/upgrade_analysis_work.txt new file mode 100644 index 000000000000..322617bb3b56 --- /dev/null +++ b/openupgrade_scripts/scripts/mass_mailing_sms/15.0.1.0/upgrade_analysis_work.txt @@ -0,0 +1,12 @@ +---Models in module 'mass_mailing_sms'--- +---Fields in module 'mass_mailing_sms'--- +mass_mailing_sms / mailing.contact / phone_mobile_search (char) : NEW +mass_mailing_sms / mailing.trace / failure_type (False) : selection_keys is now '['mail_bl', 'mail_dup', 'mail_email_invalid', 'mail_email_missing', 'mail_optout', 'mail_smtp', 'sms_acc', 'sms_blacklist', 'sms_credit', 'sms_duplicate', 'sms_number_format', 'sms_number_missing', 'sms_optout', 'sms_server', 'unknown']' ('['BOUNCE', 'RECIPIENT', 'SMTP', 'UNKNOWN', 'sms_acc', 'sms_blacklist', 'sms_credit', 'sms_duplicate', 'sms_number_format', 'sms_number_missing', 'sms_server']') +mass_mailing_sms / utm.campaign / ab_testing_sms_winner_selection (selection): NEW selection_keys: ['clicks_ratio', 'manual'], hasdefault: default +# NOTHING TO DO + +---XML records in module 'mass_mailing_sms'--- +NEW ir.actions.act_window.view: mass_mailing_sms.mailing_trace_report_action_sms_view_tree +NEW ir.ui.view: mass_mailing_sms.mailing_list_view_kanban +NEW ir.ui.view: mass_mailing_sms.mailing_trace_report_sms_view_tree +# NOTHING TO DO diff --git a/openupgrade_scripts/scripts/repair/15.0.1.0/post-migration.py b/openupgrade_scripts/scripts/repair/15.0.1.0/post-migration.py new file mode 100644 index 000000000000..91a2a0018718 --- /dev/null +++ b/openupgrade_scripts/scripts/repair/15.0.1.0/post-migration.py @@ -0,0 +1,6 @@ +from openupgradelib import openupgrade + + +@openupgrade.migrate() +def migrate(env, version): + openupgrade.load_data(env.cr, "repair", "15.0.1.0/noupdate_changes.xml") diff --git a/openupgrade_scripts/scripts/repair/15.0.1.0/pre-migration.py b/openupgrade_scripts/scripts/repair/15.0.1.0/pre-migration.py new file mode 100644 index 000000000000..4af6bb5b2846 --- /dev/null +++ b/openupgrade_scripts/scripts/repair/15.0.1.0/pre-migration.py @@ -0,0 +1,15 @@ +from openupgradelib import openupgrade + + +def _convert_field_to_html(env): + openupgrade.convert_field_to_html( + env.cr, "repair_order ", "internal_notes", "internal_notes" + ) + openupgrade.convert_field_to_html( + env.cr, "repair_order ", "quotation_notes", "quotation_notes" + ) + + +@openupgrade.migrate() +def migrate(env, version): + _convert_field_to_html(env) diff --git a/openupgrade_scripts/scripts/repair/15.0.1.0/upgrade_analysis.txt b/openupgrade_scripts/scripts/repair/15.0.1.0/upgrade_analysis.txt index 84e2b2b9c436..45e9a9869a22 100644 --- a/openupgrade_scripts/scripts/repair/15.0.1.0/upgrade_analysis.txt +++ b/openupgrade_scripts/scripts/repair/15.0.1.0/upgrade_analysis.txt @@ -2,15 +2,28 @@ ---Fields in module 'repair'--- repair / repair.order / _order : _order is now 'priority desc, create_date desc' ('create_date desc') repair / repair.order / description (char) : NEW +# NOTHING TO DO + repair / repair.order / internal_notes (text) : type is now 'html' ('text') +# DONE: pre-migration: converted to html + repair / repair.order / priority (selection) : NEW selection_keys: ['0', '1'], hasdefault: default +# NOTHING TO DO + repair / repair.order / quotation_notes (text) : type is now 'html' ('text') +# DONE: pre-migration: converted to html + repair / repair.order / sale_order_id (many2one) : NEW relation: sale.order repair / repair.order / schedule_date (date) : NEW +# NOTHING TO DO + repair / repair.order / state (selection) : selection_keys is now '['2binvoiced', 'cancel', 'confirmed', 'done', 'draft', 'ready', 'under_repair']' ('['2binvoiced', 'cancel', 'confirmed', 'done', 'draft', 'invoice_except', 'ready', 'under_repair']') +# NOTHING TO DO + ---XML records in module 'repair'--- NEW ir.actions.act_window: repair.action_repair_move_lines DEL ir.model.access: repair.access_stock_production_lot_user DEL ir.model.constraint: repair.constraint_repair_order_name DEL ir.model.constraint: repair.constraint_repair_tags_name_uniq NEW ir.ui.view: repair.stock_production_lot_view_form +# NOTHING TO DO