Skip to content

Commit 2610a48

Browse files
committed
[MIG] hr_work_entry, mass_mailing_sms, repair: migrate for 15.0
1 parent 573c971 commit 2610a48

6 files changed

Lines changed: 60 additions & 3 deletions

File tree

docsource/modules140-150.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ Module coverage 14.0 -> 15.0
206206
+-------------------------------------------------+----------------------+-------------------------------------------------+
207207
| hr_timesheet_attendance | Nothing to do | |
208208
+-------------------------------------------------+----------------------+-------------------------------------------------+
209-
| hr_work_entry | | |
209+
| hr_work_entry | Nothing to do | |
210210
+-------------------------------------------------+----------------------+-------------------------------------------------+
211211
| |new| hr_work_entry_contract | | |
212212
+-------------------------------------------------+----------------------+-------------------------------------------------+
@@ -510,7 +510,7 @@ Module coverage 14.0 -> 15.0
510510
+-------------------------------------------------+----------------------+-------------------------------------------------+
511511
| mass_mailing_slides |Nothing to do |No analysis file. No DB layout changes. |
512512
+-------------------------------------------------+----------------------+-------------------------------------------------+
513-
| mass_mailing_sms | | |
513+
| mass_mailing_sms | Nothing to do | |
514514
+-------------------------------------------------+----------------------+-------------------------------------------------+
515515
| membership | Nothing to do | |
516516
+-------------------------------------------------+----------------------+-------------------------------------------------+
@@ -674,7 +674,7 @@ Module coverage 14.0 -> 15.0
674674
+-------------------------------------------------+----------------------+-------------------------------------------------+
675675
| rating | Done | |
676676
+-------------------------------------------------+----------------------+-------------------------------------------------+
677-
| repair | | |
677+
| repair | Done | |
678678
+-------------------------------------------------+----------------------+-------------------------------------------------+
679679
| resource | Nothing to do | |
680680
+-------------------------------------------------+----------------------+-------------------------------------------------+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---Models in module 'hr_work_entry'---
2+
---Fields in module 'hr_work_entry'---
3+
hr_work_entry / hr.work.entry / department_id (many2one) : NEW relation: hr.department, isrelated: related, stored
4+
# NOTHING TO DO: handle by ORM
5+
6+
---XML records in module 'hr_work_entry'---
7+
NEW ir.model.constraint: hr_work_entry.constraint_hr_work_entry__work_entries_no_validated_conflict
8+
NEW ir.ui.view: hr_work_entry.hr_employee_view_form
9+
NEW ir.ui.view: hr_work_entry.resource_calendar_leaves_view_search_inherit
10+
DEL ir.ui.view: hr_work_entry.resource_calendar_view_form
11+
# NOTHING TO DO
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---Models in module 'mass_mailing_sms'---
2+
---Fields in module 'mass_mailing_sms'---
3+
mass_mailing_sms / mailing.contact / phone_mobile_search (char) : NEW
4+
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']')
5+
mass_mailing_sms / utm.campaign / ab_testing_sms_winner_selection (selection): NEW selection_keys: ['clicks_ratio', 'manual'], hasdefault: default
6+
# NOTHING TO DO
7+
8+
---XML records in module 'mass_mailing_sms'---
9+
NEW ir.actions.act_window.view: mass_mailing_sms.mailing_trace_report_action_sms_view_tree
10+
NEW ir.ui.view: mass_mailing_sms.mailing_list_view_kanban
11+
NEW ir.ui.view: mass_mailing_sms.mailing_trace_report_sms_view_tree
12+
# NOTHING TO DO
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from openupgradelib import openupgrade
2+
3+
4+
@openupgrade.migrate()
5+
def migrate(env, version):
6+
openupgrade.load_data(env.cr, "repair", "15.0.1.0/noupdate_changes.xml")
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
from openupgradelib import openupgrade
2+
3+
4+
def _convert_field_to_html(env):
5+
openupgrade.convert_field_to_html(
6+
env.cr, "repair_order ", "internal_notes", "internal_notes"
7+
)
8+
openupgrade.convert_field_to_html(
9+
env.cr, "repair_order ", "quotation_notes", "quotation_notes"
10+
)
11+
12+
13+
@openupgrade.migrate()
14+
def migrate(env, version):
15+
_convert_field_to_html(env)

openupgrade_scripts/scripts/repair/15.0.1.0/upgrade_analysis.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,28 @@
22
---Fields in module 'repair'---
33
repair / repair.order / _order : _order is now 'priority desc, create_date desc' ('create_date desc')
44
repair / repair.order / description (char) : NEW
5+
# NOTHING TO DO
6+
57
repair / repair.order / internal_notes (text) : type is now 'html' ('text')
8+
# DONE: pre-migration: converted to html
9+
610
repair / repair.order / priority (selection) : NEW selection_keys: ['0', '1'], hasdefault: default
11+
# NOTHING TO DO
12+
713
repair / repair.order / quotation_notes (text) : type is now 'html' ('text')
14+
# DONE: pre-migration: converted to html
15+
816
repair / repair.order / sale_order_id (many2one) : NEW relation: sale.order
917
repair / repair.order / schedule_date (date) : NEW
18+
# NOTHING TO DO
19+
1020
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']')
21+
# NOTHING TO DO
22+
1123
---XML records in module 'repair'---
1224
NEW ir.actions.act_window: repair.action_repair_move_lines
1325
DEL ir.model.access: repair.access_stock_production_lot_user
1426
DEL ir.model.constraint: repair.constraint_repair_order_name
1527
DEL ir.model.constraint: repair.constraint_repair_tags_name_uniq
1628
NEW ir.ui.view: repair.stock_production_lot_view_form
29+
# NOTHING TO DO

0 commit comments

Comments
 (0)