odoo-addon-openupgrade-scripts 17.0.1.0.1.156__py3-none-any.whl → 17.0.1.0.1.160__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- odoo/addons/openupgrade_scripts/scripts/hr/17.0.1.1/noupdate_changes.xml +2 -2
- odoo/addons/openupgrade_scripts/scripts/hr/17.0.1.1/post-migration.py +57 -0
- odoo/addons/openupgrade_scripts/scripts/hr/17.0.1.1/pre-migration.py +119 -0
- odoo/addons/openupgrade_scripts/scripts/hr/17.0.1.1/upgrade_analysis_work.txt +154 -0
- odoo/addons/openupgrade_scripts/scripts/hr_contract/17.0.1.0/post-migration.py +9 -0
- odoo/addons/openupgrade_scripts/scripts/hr_contract/17.0.1.0/upgrade_analysis_work.txt +24 -0
- {odoo_addon_openupgrade_scripts-17.0.1.0.1.156.dist-info → odoo_addon_openupgrade_scripts-17.0.1.0.1.160.dist-info}/METADATA +1 -1
- {odoo_addon_openupgrade_scripts-17.0.1.0.1.156.dist-info → odoo_addon_openupgrade_scripts-17.0.1.0.1.160.dist-info}/RECORD +10 -5
- {odoo_addon_openupgrade_scripts-17.0.1.0.1.156.dist-info → odoo_addon_openupgrade_scripts-17.0.1.0.1.160.dist-info}/WHEEL +0 -0
- {odoo_addon_openupgrade_scripts-17.0.1.0.1.156.dist-info → odoo_addon_openupgrade_scripts-17.0.1.0.1.160.dist-info}/top_level.txt +0 -0
@@ -26,7 +26,7 @@
|
|
26
26
|
<field name="responsible_type">manager</field>
|
27
27
|
<field name="sequence">20</field>
|
28
28
|
</record>
|
29
|
-
<record id="onboarding_plan" model="mail.activity.plan">
|
29
|
+
<!-- <record id="onboarding_plan" model="mail.activity.plan">
|
30
30
|
<field name="res_model">hr.employee</field>
|
31
31
|
</record>
|
32
32
|
<record id="onboarding_plan_training" model="mail.activity.plan.template">
|
@@ -40,5 +40,5 @@
|
|
40
40
|
<record id="onboarding_training" model="mail.activity.plan.template">
|
41
41
|
<field name="responsible_type">employee</field>
|
42
42
|
<field name="sequence">30</field>
|
43
|
-
</record>
|
43
|
+
</record> -->
|
44
44
|
</odoo>
|
@@ -0,0 +1,57 @@
|
|
1
|
+
# Copyright 2024 Viindoo Technology Joint Stock Company (Viindoo)
|
2
|
+
# Copyright 2025 Tecnativa - Pedro M. Baeza
|
3
|
+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
4
|
+
|
5
|
+
from openupgradelib import openupgrade
|
6
|
+
|
7
|
+
_deleted_xml_records = [
|
8
|
+
"hr.dep_sales",
|
9
|
+
"hr.hr_plan_activity_type_company_rule",
|
10
|
+
"hr.hr_plan_company_rule",
|
11
|
+
"hr.res_partner_admin_private_address",
|
12
|
+
]
|
13
|
+
|
14
|
+
|
15
|
+
def _transfer_employee_private_data(env):
|
16
|
+
"""On v17, there's no more private res.partner records, so we should transfer the
|
17
|
+
information to the dedicated employee fields, and then anonymize the remaining data
|
18
|
+
in the res.partner record.
|
19
|
+
"""
|
20
|
+
openupgrade.logged_query(
|
21
|
+
env.cr,
|
22
|
+
"""
|
23
|
+
UPDATE hr_employee he
|
24
|
+
SET lang = rp.lang,
|
25
|
+
private_city = rp.city,
|
26
|
+
private_country_id = rp.country_id,
|
27
|
+
private_email = rp.email,
|
28
|
+
private_phone = rp.phone,
|
29
|
+
private_state_id = rp.state_id,
|
30
|
+
private_street = rp.street,
|
31
|
+
private_street2 = rp.street2,
|
32
|
+
private_zip = rp.zip
|
33
|
+
FROM res_partner rp
|
34
|
+
WHERE he.address_home_id = rp.id""",
|
35
|
+
)
|
36
|
+
openupgrade.logged_query(
|
37
|
+
env.cr,
|
38
|
+
"""
|
39
|
+
UPDATE res_partner rp
|
40
|
+
SET city = '***',
|
41
|
+
country_id = NULL,
|
42
|
+
email = '***',
|
43
|
+
phone = '***',
|
44
|
+
state_id = NULL,
|
45
|
+
street = '***',
|
46
|
+
street2 = '***',
|
47
|
+
zip = '***'
|
48
|
+
FROM hr_employee he
|
49
|
+
WHERE he.address_home_id = rp.id""",
|
50
|
+
)
|
51
|
+
|
52
|
+
|
53
|
+
@openupgrade.migrate()
|
54
|
+
def migrate(env, version):
|
55
|
+
_transfer_employee_private_data(env)
|
56
|
+
openupgrade.load_data(env, "hr", "17.0.1.1/noupdate_changes.xml")
|
57
|
+
openupgrade.delete_records_safely_by_xml_id(env, _deleted_xml_records)
|
@@ -0,0 +1,119 @@
|
|
1
|
+
# Copyright 2024 Viindoo Technology Joint Stock Company (Viindoo)
|
2
|
+
# Copyright 2025 Tecnativa - Pedro M. Baeza
|
3
|
+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
4
|
+
from openupgradelib import openupgrade
|
5
|
+
|
6
|
+
|
7
|
+
def _rename_subscription_department_ids_m2m(env):
|
8
|
+
openupgrade.logged_query(
|
9
|
+
env.cr,
|
10
|
+
"""ALTER TABLE hr_department_mail_channel_rel
|
11
|
+
RENAME TO discuss_channel_hr_department_rel""",
|
12
|
+
)
|
13
|
+
openupgrade.logged_query(
|
14
|
+
env.cr,
|
15
|
+
"""ALTER TABLE discuss_channel_hr_department_rel
|
16
|
+
RENAME mail_channel_id TO discuss_channel_id""",
|
17
|
+
)
|
18
|
+
|
19
|
+
|
20
|
+
def _fill_hr_contract_type_code(env):
|
21
|
+
openupgrade.logged_query(
|
22
|
+
env.cr, "ALTER TABLE hr_contract_type ADD COLUMN IF NOT EXISTS code VARCHAR"
|
23
|
+
)
|
24
|
+
openupgrade.logged_query(
|
25
|
+
env.cr, "UPDATE hr_contract_type SET code = name WHERE code IS NULL"
|
26
|
+
)
|
27
|
+
|
28
|
+
|
29
|
+
def _hr_plan_sync_to_mail_activity_plan(env):
|
30
|
+
employee_model = env["ir.model"].search([("model", "=", "hr.employee")])
|
31
|
+
# sync hr.plan to mail.activity.plan
|
32
|
+
openupgrade.logged_query(
|
33
|
+
env.cr,
|
34
|
+
"""
|
35
|
+
ALTER TABLE mail_activity_plan ADD COLUMN IF NOT EXISTS department_id INTEGER,
|
36
|
+
ADD COLUMN IF NOT EXISTS hr_plan_legacy_id INTEGER""",
|
37
|
+
)
|
38
|
+
hr_plan_query = f"""
|
39
|
+
INSERT INTO mail_activity_plan (
|
40
|
+
company_id, res_model_id, create_uid, write_uid, name, res_model,
|
41
|
+
active, create_date, write_date, department_id, hr_plan_legacy_id
|
42
|
+
)
|
43
|
+
SELECT
|
44
|
+
company_id, {employee_model.id}, create_uid, write_uid, name, 'hr.employee',
|
45
|
+
active, create_date, write_date, department_id, id
|
46
|
+
FROM hr_plan
|
47
|
+
"""
|
48
|
+
openupgrade.logged_query(env.cr, hr_plan_query)
|
49
|
+
# sync hr.plan.activitype.type to mail.activity.plan.template
|
50
|
+
openupgrade.logged_query(
|
51
|
+
env.cr,
|
52
|
+
"""
|
53
|
+
ALTER TABLE mail_activity_plan_template
|
54
|
+
ADD COLUMN hr_plan_activity_type_legacy_id INTEGER""",
|
55
|
+
)
|
56
|
+
hr_plan_activity_type_query = """
|
57
|
+
INSERT INTO mail_activity_plan_template (
|
58
|
+
activity_type_id, responsible_id, plan_id, responsible_type,
|
59
|
+
summary, note, create_uid, write_uid, create_date,
|
60
|
+
write_date, hr_plan_activity_type_legacy_id
|
61
|
+
)
|
62
|
+
SELECT
|
63
|
+
hpat.activity_type_id, hpat.responsible_id, map.id, hpat.responsible,
|
64
|
+
hpat.summary, hpat.note, hpat.create_uid, hpat.write_uid, hpat.create_date,
|
65
|
+
hpat.write_date, hpat.id
|
66
|
+
FROM hr_plan_activity_type hpat
|
67
|
+
JOIN mail_activity_plan map ON hpat.plan_id = map.hr_plan_legacy_id
|
68
|
+
"""
|
69
|
+
openupgrade.logged_query(env.cr, hr_plan_activity_type_query)
|
70
|
+
# Reassign standard data XML-IDs for pointing to the new records
|
71
|
+
openupgrade.logged_query(
|
72
|
+
env.cr,
|
73
|
+
"""
|
74
|
+
UPDATE ir_model_data imd
|
75
|
+
SET model = 'mail.activity.plan', res_id = map.id
|
76
|
+
FROM ir_model_data imd2
|
77
|
+
JOIN mail_activity_plan map ON
|
78
|
+
map.hr_plan_legacy_id = imd2.res_id
|
79
|
+
AND imd2.name IN ('onboarding_plan', 'offboarding_plan')
|
80
|
+
AND imd2.module = 'hr'
|
81
|
+
WHERE imd.id = imd2.id""",
|
82
|
+
)
|
83
|
+
openupgrade.logged_query(
|
84
|
+
env.cr,
|
85
|
+
"""
|
86
|
+
UPDATE ir_model_data imd
|
87
|
+
SET model = 'mail.activity.plan.template', res_id = mapt.id
|
88
|
+
FROM ir_model_data imd2
|
89
|
+
JOIN mail_activity_plan_template mapt ON
|
90
|
+
mapt.hr_plan_activity_type_legacy_id = imd2.res_id
|
91
|
+
AND imd2.name IN (
|
92
|
+
'onboarding_setup_it_materials',
|
93
|
+
'onboarding_plan_training',
|
94
|
+
'onboarding_training',
|
95
|
+
'offboarding_setup_compute_out_delais',
|
96
|
+
'offboarding_take_back_hr_materials'
|
97
|
+
)
|
98
|
+
AND imd2.module = 'hr'
|
99
|
+
WHERE imd.id = imd2.id""",
|
100
|
+
)
|
101
|
+
|
102
|
+
|
103
|
+
def _hr_work_location_fill_location_type(env):
|
104
|
+
openupgrade.logged_query(
|
105
|
+
env.cr,
|
106
|
+
"""
|
107
|
+
ALTER TABLE hr_work_location ADD COLUMN IF NOT EXISTS location_type VARCHAR;
|
108
|
+
UPDATE hr_work_location
|
109
|
+
SET location_type = 'office'
|
110
|
+
""",
|
111
|
+
)
|
112
|
+
|
113
|
+
|
114
|
+
@openupgrade.migrate()
|
115
|
+
def migrate(env, version):
|
116
|
+
_rename_subscription_department_ids_m2m(env)
|
117
|
+
_fill_hr_contract_type_code(env)
|
118
|
+
_hr_plan_sync_to_mail_activity_plan(env)
|
119
|
+
_hr_work_location_fill_location_type(env)
|
@@ -0,0 +1,154 @@
|
|
1
|
+
---Models in module 'hr'---
|
2
|
+
obsolete model hr.plan
|
3
|
+
obsolete model hr.plan.activity.type
|
4
|
+
# DONE pre-migration: move data into mail.activity.plan
|
5
|
+
|
6
|
+
obsolete model hr.plan.wizard [transient]
|
7
|
+
# NOTHING TO DO
|
8
|
+
|
9
|
+
---Fields in module 'hr'---
|
10
|
+
hr / mail.channel / subscription_department_ids (many2many): column1 is now 'discuss_channel_id' ('mail_channel_id') [hr_department_mail_channel_rel]
|
11
|
+
hr / mail.channel / subscription_department_ids (many2many): table is now 'discuss_channel_hr_department_rel' ('hr_department_mail_channel_rel')
|
12
|
+
# DONE: pre-migration: Rename table and column
|
13
|
+
|
14
|
+
hr / hr.contract.type / code (char) : NEW hasdefault: compute
|
15
|
+
# DONE: pre-migration: Column created and filled with the name. It wouldn't be too much burden to let the ORM compute, being few records, but let's do it by SQL anyway.
|
16
|
+
|
17
|
+
hr / hr.contract.type / country_id (many2one) : NEW relation: res.country
|
18
|
+
# NOTHING TO DO: new feature
|
19
|
+
|
20
|
+
hr / hr.department / message_main_attachment_id (many2one): DEL relation: ir.attachment
|
21
|
+
# NOTHING TO DO
|
22
|
+
|
23
|
+
hr / hr.department / plan_ids (one2many) : relation is now 'mail.activity.plan' ('hr.plan') [nothing to do]
|
24
|
+
hr / hr.plan / active (boolean) : DEL
|
25
|
+
hr / hr.plan / company_id (many2one) : DEL relation: res.company
|
26
|
+
hr / hr.plan / department_id (many2one) : DEL relation: hr.department
|
27
|
+
hr / hr.plan / name (char) : DEL required
|
28
|
+
hr / hr.plan / plan_activity_type_ids (one2many): DEL relation: hr.plan.activity.type
|
29
|
+
hr / hr.plan.activity.type / activity_type_id (many2one) : DEL relation: mail.activity.type
|
30
|
+
hr / hr.plan.activity.type / company_id (many2one) : DEL relation: res.company
|
31
|
+
hr / hr.plan.activity.type / note (html) : DEL
|
32
|
+
hr / hr.plan.activity.type / plan_id (many2one) : DEL relation: hr.plan
|
33
|
+
hr / hr.plan.activity.type / responsible (selection) : DEL required, selection_keys: ['coach', 'employee', 'manager', 'other']
|
34
|
+
hr / hr.plan.activity.type / responsible_id (many2one) : DEL relation: res.users
|
35
|
+
hr / hr.plan.activity.type / summary (char) : DEL
|
36
|
+
hr / mail.activity.plan / department_id (many2one) : NEW relation: hr.department, hasdefault: compute
|
37
|
+
hr / mail.activity.plan.template / responsible_type (False) : NEW selection_keys: ['coach', 'employee', 'manager', 'on_demand', 'other'], mode: modify
|
38
|
+
# DONE: pre-migration: move data into mail.activity.plan
|
39
|
+
|
40
|
+
hr / hr.department / rating_ids (one2many) : NEW relation: rating.rating
|
41
|
+
# NOTHING TO DO
|
42
|
+
|
43
|
+
hr / hr.departure.reason / reason_code (integer) : NEW
|
44
|
+
# DONE post-migration: load noupdate
|
45
|
+
|
46
|
+
hr / hr.employee / activity_user_id (many2one) : not related anymore
|
47
|
+
hr / hr.employee / activity_user_id (many2one) : now a function
|
48
|
+
# NOTHING TO DO: no store field
|
49
|
+
|
50
|
+
hr / hr.employee / employee_properties (properties): NEW hasdefault: compute
|
51
|
+
hr / res.company / employee_properties_definition (properties_definition): NEW
|
52
|
+
# NOTHING TO DO: new feature for assigning properties
|
53
|
+
|
54
|
+
hr / hr.employee / private_car_plate (char) : NEW
|
55
|
+
# NOTHING TO DO: new feature
|
56
|
+
|
57
|
+
hr / hr.employee / address_home_id (many2one) : DEL relation: res.partner
|
58
|
+
hr / hr.employee / lang (selection) : is now stored
|
59
|
+
hr / hr.employee / lang (selection) : not related anymore
|
60
|
+
hr / hr.employee / private_city (char) : NEW
|
61
|
+
hr / hr.employee / private_country_id (many2one) : NEW relation: res.country
|
62
|
+
hr / hr.employee / private_email (char) : is now stored
|
63
|
+
hr / hr.employee / private_email (char) : not related anymore
|
64
|
+
hr / hr.employee / private_phone (char) : NEW
|
65
|
+
hr / hr.employee / private_state_id (many2one) : NEW relation: res.country.state
|
66
|
+
hr / hr.employee / private_street (char) : NEW
|
67
|
+
hr / hr.employee / private_street2 (char) : NEW
|
68
|
+
hr / hr.employee / private_zip (char) : NEW
|
69
|
+
# DONE: post-migration: fill values from address_home_id to the employee fields, and anonymize the information on the res.partner record
|
70
|
+
|
71
|
+
hr / hr.employee / rating_ids (one2many) : NEW relation: rating.rating
|
72
|
+
hr / hr.job / message_main_attachment_id (many2one): DEL relation: ir.attachment
|
73
|
+
hr / hr.job / rating_ids (one2many) : NEW relation: rating.rating
|
74
|
+
# NOTHING TO DO: New rating inheritance
|
75
|
+
|
76
|
+
hr / hr.work.location / location_type (selection) : NEW required, selection_keys: ['home', 'office', 'other'], hasdefault: default
|
77
|
+
# DONE: pre-migration: Pre-created and filled with the value 'office', which is fine according previous version behavior.
|
78
|
+
|
79
|
+
---XML records in module 'hr'---
|
80
|
+
NEW hr.contract.type: hr.contract_type_full_time (noupdate)
|
81
|
+
NEW hr.contract.type: hr.contract_type_part_time (noupdate)
|
82
|
+
NEW hr.contract.type: hr.contract_type_permanent (noupdate)
|
83
|
+
NEW hr.contract.type: hr.contract_type_seasonal (noupdate)
|
84
|
+
NEW hr.contract.type: hr.contract_type_temporary (noupdate)
|
85
|
+
# NOTHING TO DO
|
86
|
+
|
87
|
+
DEL hr.department: hr.dep_sales (noupdate)
|
88
|
+
DEL ir.rule: hr.hr_plan_activity_type_company_rule (noupdate)
|
89
|
+
DEL ir.rule: hr.hr_plan_company_rule (noupdate)
|
90
|
+
DEL res.partner: hr.res_partner_admin_private_address (noupdate)
|
91
|
+
# DONE: post-migration: removed safely
|
92
|
+
|
93
|
+
DEL hr.plan: hr.offboarding_plan (noupdate)
|
94
|
+
DEL hr.plan: hr.onboarding_plan (noupdate)
|
95
|
+
DEL hr.plan.activity.type: hr.offboarding_setup_compute_out_delais (noupdate)
|
96
|
+
DEL hr.plan.activity.type: hr.offboarding_take_back_hr_materials (noupdate)
|
97
|
+
DEL hr.plan.activity.type: hr.onboarding_plan_training (noupdate)
|
98
|
+
DEL hr.plan.activity.type: hr.onboarding_setup_it_materials (noupdate)
|
99
|
+
DEL hr.plan.activity.type: hr.onboarding_training (noupdate)
|
100
|
+
NEW mail.activity.plan: hr.offboarding_plan (noupdate)
|
101
|
+
NEW mail.activity.plan: hr.onboarding_plan (noupdate)
|
102
|
+
NEW mail.activity.plan.template: hr.offboarding_setup_compute_out_delais (noupdate)
|
103
|
+
NEW mail.activity.plan.template: hr.offboarding_take_back_hr_materials (noupdate)
|
104
|
+
NEW mail.activity.plan.template: hr.onboarding_plan_training (noupdate)
|
105
|
+
NEW mail.activity.plan.template: hr.onboarding_setup_it_materials (noupdate)
|
106
|
+
NEW mail.activity.plan.template: hr.onboarding_training (noupdate)
|
107
|
+
# DONE: pre-migration: Reassign XML-IDs to the new mail.activity.plan* records
|
108
|
+
|
109
|
+
NEW hr.work.location: hr.home_work_location (noupdate)
|
110
|
+
NEW hr.work.location: hr.home_work_office (noupdate)
|
111
|
+
NEW hr.work.location: hr.home_work_other (noupdate)
|
112
|
+
NEW ir.actions.act_window: hr.mail_activity_plan_action
|
113
|
+
DEL ir.actions.act_window: hr.hr_employee_action_from_user
|
114
|
+
DEL ir.actions.act_window: hr.hr_plan_action
|
115
|
+
DEL ir.actions.act_window: hr.hr_plan_activity_type_action
|
116
|
+
NEW ir.actions.act_window.view: hr.mail_activity_plan_action_employee_view_form
|
117
|
+
NEW ir.actions.act_window.view: hr.mail_activity_plan_action_employee_view_tree
|
118
|
+
NEW ir.model.access: hr.access_mail_activity_plan_hr_manager
|
119
|
+
NEW ir.model.access: hr.access_mail_activity_plan_template_hr_manager
|
120
|
+
DEL ir.model.access: hr.access_hr_plan_activity_type_employee
|
121
|
+
DEL ir.model.access: hr.access_hr_plan_activity_type_hr_user
|
122
|
+
DEL ir.model.access: hr.access_hr_plan_employee
|
123
|
+
DEL ir.model.access: hr.access_hr_plan_hr_user
|
124
|
+
DEL ir.model.access: hr.access_hr_plan_wizard
|
125
|
+
DEL ir.model.constraint: hr.constraint_hr_employee_barcode_uniq
|
126
|
+
DEL ir.model.constraint: hr.constraint_hr_employee_category_name_uniq
|
127
|
+
DEL ir.model.constraint: hr.constraint_hr_employee_user_uniq
|
128
|
+
DEL ir.model.constraint: hr.constraint_hr_job_name_company_uniq
|
129
|
+
DEL ir.model.constraint: hr.constraint_hr_job_no_of_recruitment_positive
|
130
|
+
NEW ir.rule: hr.ir_rule_hr_contract_type_multi_company (noupdate)
|
131
|
+
NEW ir.rule: hr.mail_plan_rule_group_hr_manager (noupdate)
|
132
|
+
NEW ir.rule: hr.mail_plan_templates_rule_group_hr_manager (noupdate)
|
133
|
+
# NOTHING TO DO
|
134
|
+
|
135
|
+
NEW ir.ui.menu: hr.menu_resource_calendar_view
|
136
|
+
NEW ir.ui.view: hr.discuss_channel_view_form
|
137
|
+
NEW ir.ui.view: hr.hr_employee_plan_activity_summary
|
138
|
+
NEW ir.ui.view: hr.hr_employee_view_graph
|
139
|
+
NEW ir.ui.view: hr.hr_employee_view_pivot
|
140
|
+
NEW ir.ui.view: hr.mail_activity_plan_template_view_form
|
141
|
+
NEW ir.ui.view: hr.mail_activity_plan_view_form
|
142
|
+
NEW ir.ui.view: hr.mail_activity_plan_view_form_hr_employee
|
143
|
+
NEW ir.ui.view: hr.mail_activity_plan_view_tree
|
144
|
+
NEW ir.ui.view: hr.mail_activity_schedule_view_form
|
145
|
+
DEL ir.ui.view: hr.hr_plan_activity_type_view_form
|
146
|
+
DEL ir.ui.view: hr.hr_plan_activity_type_view_tree
|
147
|
+
DEL ir.ui.view: hr.hr_plan_view_form
|
148
|
+
DEL ir.ui.view: hr.hr_plan_view_search
|
149
|
+
DEL ir.ui.view: hr.hr_plan_view_tree
|
150
|
+
DEL ir.ui.view: hr.mail_channel_view_form_
|
151
|
+
DEL ir.ui.view: hr.plan_wizard
|
152
|
+
DEL ir.ui.view: hr.view_employee_form_smartbutton
|
153
|
+
DEL ir.ui.view: hr.view_partner_tree2
|
154
|
+
# NOTHING TO DO
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# Copyright 2024 Viindoo Technology Joint Stock Company (Viindoo)
|
2
|
+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
3
|
+
|
4
|
+
from openupgradelib import openupgrade
|
5
|
+
|
6
|
+
|
7
|
+
@openupgrade.migrate()
|
8
|
+
def migrate(env, version):
|
9
|
+
openupgrade.load_data(env, "hr_contract", "17.0.1.0/noupdate_changes.xml")
|
@@ -0,0 +1,24 @@
|
|
1
|
+
---Models in module 'hr_contract'---
|
2
|
+
---Fields in module 'hr_contract'---
|
3
|
+
hr_contract / hr.contract / activity_user_id (many2one) : not related anymore
|
4
|
+
hr_contract / hr.contract / activity_user_id (many2one) : now a function
|
5
|
+
hr_contract / hr.contract / message_has_sms_error (boolean): previously in module sms
|
6
|
+
hr_contract / hr.contract / message_main_attachment_id (many2one): DEL relation: ir.attachment
|
7
|
+
hr_contract / hr.contract / rating_ids (one2many) : NEW relation: rating.rating
|
8
|
+
hr_contract / hr.contract / website_message_ids (one2many): previously in module portal
|
9
|
+
# NOTHING TO DO
|
10
|
+
|
11
|
+
hr_contract / res.company / contract_expiration_notice_period (integer): NEW hasdefault: default
|
12
|
+
hr_contract / res.company / work_permit_expiration_notice_period (integer): NEW hasdefault: default
|
13
|
+
# NOTHING TO DO: new feature
|
14
|
+
|
15
|
+
---XML records in module 'hr_contract'---
|
16
|
+
NEW ir.ui.menu: hr_contract.hr_menu_contract
|
17
|
+
DEL ir.ui.menu: hr_contract.hr_menu_contract_history
|
18
|
+
NEW ir.ui.view: hr_contract.hr_employee_view_graph_inherit_hr_contract
|
19
|
+
NEW ir.ui.view: hr_contract.hr_employee_view_pivot_inherit_hr_contract
|
20
|
+
NEW ir.ui.view: hr_contract.hr_hr_employee_view_form3
|
21
|
+
NEW ir.ui.view: hr_contract.res_config_settings_view_form
|
22
|
+
NEW ir.ui.view: hr_contract.view_employee_public_form
|
23
|
+
DEL ir.ui.view: hr_contract.hr_employee_public_view_form
|
24
|
+
# NOTHING TO DO
|
@@ -127,11 +127,16 @@ odoo/addons/openupgrade_scripts/scripts/gamification/17.0.1.0/upgrade_analysis_w
|
|
127
127
|
odoo/addons/openupgrade_scripts/scripts/google_account/17.0.1.0/upgrade_analysis.txt,sha256=hiDG-xTUfbSEAoh1Of3lwHn5UyurLiFn_7cWUcr_MG8,165
|
128
128
|
odoo/addons/openupgrade_scripts/scripts/google_calendar/17.0.1.0/upgrade_analysis.txt,sha256=nQfV_h_moxZ00umo8nRUiUoJaWiASy-cflfLoTDQBIE,377
|
129
129
|
odoo/addons/openupgrade_scripts/scripts/google_gmail/17.0.1.2/upgrade_analysis.txt,sha256=az3DyzT1W7a0qBw78ZDiO5mC3K2ESONVyPJwtakQgIU,296
|
130
|
-
odoo/addons/openupgrade_scripts/scripts/hr/17.0.1.1/noupdate_changes.xml,sha256=
|
130
|
+
odoo/addons/openupgrade_scripts/scripts/hr/17.0.1.1/noupdate_changes.xml,sha256=3rM2MOVM3CYPWAqDknVf_qOwifBhfjjUPFFZWQdmMTI,1792
|
131
|
+
odoo/addons/openupgrade_scripts/scripts/hr/17.0.1.1/post-migration.py,sha256=bi1GN6iyyef5gjibYq094qiUkZX-PHUO241MfVmlKaM,1784
|
132
|
+
odoo/addons/openupgrade_scripts/scripts/hr/17.0.1.1/pre-migration.py,sha256=YdaFkte3iGFhb5sbxw2V6U1R9zscVDD6gOrF0tII8_s,4335
|
131
133
|
odoo/addons/openupgrade_scripts/scripts/hr/17.0.1.1/upgrade_analysis.txt,sha256=-4tW82_F8u5kdrEaP2aWHSY29ar5qI0uKWK5QZI4Zws,8063
|
134
|
+
odoo/addons/openupgrade_scripts/scripts/hr/17.0.1.1/upgrade_analysis_work.txt,sha256=IhX4TMtbhnrPG2FrbO_otRpduBtJViyXMtBLf290aYs,9437
|
132
135
|
odoo/addons/openupgrade_scripts/scripts/hr_attendance/17.0.2.0/upgrade_analysis.txt,sha256=ktiyZgjaASUbYSnMG6OdNse9DchedxPqneC7F5W4Vjw,5377
|
133
136
|
odoo/addons/openupgrade_scripts/scripts/hr_contract/17.0.1.0/noupdate_changes.xml,sha256=1NemwLIilOOpHDoCFdWOx6FPBx4REo_Wvpe5mb1a28A,518
|
137
|
+
odoo/addons/openupgrade_scripts/scripts/hr_contract/17.0.1.0/post-migration.py,sha256=w-j2Hox5aWp8r9Vyo6nufjm1CA496voFhNcpdN0VtyY,306
|
134
138
|
odoo/addons/openupgrade_scripts/scripts/hr_contract/17.0.1.0/upgrade_analysis.txt,sha256=UGFMWkoi2FdlkIYF85f5v3lhF52ahVhnU3WKiW7Figg,1400
|
139
|
+
odoo/addons/openupgrade_scripts/scripts/hr_contract/17.0.1.0/upgrade_analysis_work.txt,sha256=r0MFZKDA20uLRdvD2VNyBA0xW0Gahb_wmdAd3xnVg64,1463
|
135
140
|
odoo/addons/openupgrade_scripts/scripts/hr_expense/17.0.2.0/noupdate_changes.xml,sha256=gs_8j4Yj6l2rzPVrmc70BrWJTYzUH459vd-r9p9DZIY,2858
|
136
141
|
odoo/addons/openupgrade_scripts/scripts/hr_expense/17.0.2.0/upgrade_analysis.txt,sha256=Yx8U6AjBBz4fleqgeEsdmhbeitPvc9YCvQl5vIxHN84,4674
|
137
142
|
odoo/addons/openupgrade_scripts/scripts/hr_fleet/17.0.1.0/upgrade_analysis.txt,sha256=AH2qC-3jaxRo-eCAnuK_WTlhVhQFCRS73OKLyyggR9U,361
|
@@ -627,7 +632,7 @@ odoo/addons/openupgrade_scripts/scripts/website_twitter/17.0.1.0/upgrade_analysi
|
|
627
632
|
odoo/addons/openupgrade_scripts/static/description/banner.png,sha256=KTIBu4gfxeZVw9zjs_fivTgFEOeaAorlBxajmCA1p6k,26859
|
628
633
|
odoo/addons/openupgrade_scripts/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
|
629
634
|
odoo/addons/openupgrade_scripts/static/description/index.html,sha256=iV41-zYBM4uvZPuunpcr7bQeRgBaojVsKo_gkeyJyA4,12639
|
630
|
-
odoo_addon_openupgrade_scripts-17.0.1.0.1.
|
631
|
-
odoo_addon_openupgrade_scripts-17.0.1.0.1.
|
632
|
-
odoo_addon_openupgrade_scripts-17.0.1.0.1.
|
633
|
-
odoo_addon_openupgrade_scripts-17.0.1.0.1.
|
635
|
+
odoo_addon_openupgrade_scripts-17.0.1.0.1.160.dist-info/METADATA,sha256=I4p4a3flKR1vK4MXQuYMRuFZH3cZBWBYKXbDkJFnabI,3786
|
636
|
+
odoo_addon_openupgrade_scripts-17.0.1.0.1.160.dist-info/WHEEL,sha256=9fEMia4zL7ZuZbnCOrcYogUhmn4XFIVaJ8G4YGI31xc,81
|
637
|
+
odoo_addon_openupgrade_scripts-17.0.1.0.1.160.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
|
638
|
+
odoo_addon_openupgrade_scripts-17.0.1.0.1.160.dist-info/RECORD,,
|
File without changes
|