odoo-addon-openupgrade-scripts 17.0.1.0.1.201__py3-none-any.whl → 17.0.1.0.1.203__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/apriori.py +1 -0
- odoo/addons/openupgrade_scripts/scripts/hr_holidays/17.0.1.6/noupdate_changes.xml +2 -0
- odoo/addons/openupgrade_scripts/scripts/hr_holidays/17.0.1.6/post-migration.py +44 -0
- odoo/addons/openupgrade_scripts/scripts/hr_holidays/17.0.1.6/pre-migration.py +154 -0
- odoo/addons/openupgrade_scripts/scripts/hr_holidays/17.0.1.6/upgrade_analysis_work.txt +186 -0
- {odoo_addon_openupgrade_scripts-17.0.1.0.1.201.dist-info → odoo_addon_openupgrade_scripts-17.0.1.0.1.203.dist-info}/METADATA +1 -1
- {odoo_addon_openupgrade_scripts-17.0.1.0.1.201.dist-info → odoo_addon_openupgrade_scripts-17.0.1.0.1.203.dist-info}/RECORD +9 -6
- {odoo_addon_openupgrade_scripts-17.0.1.0.1.201.dist-info → odoo_addon_openupgrade_scripts-17.0.1.0.1.203.dist-info}/WHEEL +0 -0
- {odoo_addon_openupgrade_scripts-17.0.1.0.1.201.dist-info → odoo_addon_openupgrade_scripts-17.0.1.0.1.203.dist-info}/top_level.txt +0 -0
@@ -63,6 +63,7 @@ merged_modules = {
|
|
63
63
|
# only used here for upgrade_analysis
|
64
64
|
renamed_models = {
|
65
65
|
# odoo
|
66
|
+
"hr.leave.stress.day": "hr.leave.mandatory.day",
|
66
67
|
"mail.channel": "discuss.channel",
|
67
68
|
"mail.channel.member": "discuss.channel.member",
|
68
69
|
"mail.channel.rtc.session": "discuss.channel.rtc.session",
|
@@ -1,5 +1,6 @@
|
|
1
1
|
<?xml version='1.0' encoding='utf-8'?>
|
2
2
|
<odoo>
|
3
|
+
<!-- Already covered by transforming m2o responsible_id in m2m responsible_ids
|
3
4
|
<record id="holiday_status_cl" model="hr.leave.type">
|
4
5
|
<field name="responsible_ids" eval="[(4, ref('base.user_admin'))]"/>
|
5
6
|
</record>
|
@@ -12,6 +13,7 @@
|
|
12
13
|
<record id="holiday_status_unpaid" model="hr.leave.type">
|
13
14
|
<field name="responsible_ids" eval="[(4, ref('base.user_admin'))]"/>
|
14
15
|
</record>
|
16
|
+
-->
|
15
17
|
<record id="hr_leave_allocation_rule_multicompany" model="ir.rule">
|
16
18
|
<field name="domain_force">[
|
17
19
|
'|',
|
@@ -0,0 +1,44 @@
|
|
1
|
+
# Copyright 2024- Le Filament (https://le-filament.com)
|
2
|
+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
3
|
+
|
4
|
+
from openupgradelib import openupgrade
|
5
|
+
|
6
|
+
|
7
|
+
def _leave_type_responsible_convert_field_m2o_to_m2m(env):
|
8
|
+
# Convert m2o to m2m in 'onboarding.onboarding.step'
|
9
|
+
openupgrade.m2o_to_x2m(
|
10
|
+
env.cr,
|
11
|
+
env["hr.leave.type"],
|
12
|
+
"hr_leave_type",
|
13
|
+
"responsible_ids",
|
14
|
+
"responsible_id",
|
15
|
+
)
|
16
|
+
|
17
|
+
|
18
|
+
def _compute_already_accrued(env):
|
19
|
+
openupgrade.logged_query(
|
20
|
+
env.cr,
|
21
|
+
"""
|
22
|
+
UPDATE hr_leave_allocation
|
23
|
+
SET already_accrued = True
|
24
|
+
WHERE allocation_type = 'accrual'
|
25
|
+
AND state = 'validate'
|
26
|
+
AND accrual_plan_id IS NOT NULL
|
27
|
+
AND employee_id IS NOT NULL
|
28
|
+
AND number_of_days > 0;
|
29
|
+
""",
|
30
|
+
)
|
31
|
+
|
32
|
+
|
33
|
+
@openupgrade.migrate()
|
34
|
+
def migrate(env, version):
|
35
|
+
openupgrade.load_data(env, "hr_holidays", "17.0.1.6/noupdate_changes.xml")
|
36
|
+
_leave_type_responsible_convert_field_m2o_to_m2m(env)
|
37
|
+
_compute_already_accrued(env)
|
38
|
+
openupgrade.delete_records_safely_by_xml_id(
|
39
|
+
env,
|
40
|
+
[
|
41
|
+
"hr_holidays.mail_act_leave_allocation_second_approval",
|
42
|
+
"hr_holidays.hr_leave_stress_day_rule_multi_company",
|
43
|
+
],
|
44
|
+
)
|
@@ -0,0 +1,154 @@
|
|
1
|
+
# Copyright 2024- Le Filament (https://le-filament.com)
|
2
|
+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
3
|
+
from openupgradelib import openupgrade
|
4
|
+
|
5
|
+
_model_renames = [
|
6
|
+
("hr.leave.stress.day", "hr.leave.mandatory.day"),
|
7
|
+
]
|
8
|
+
|
9
|
+
_table_renames = [
|
10
|
+
("hr_leave_stress_day", "hr_leave_mandatory_day"),
|
11
|
+
]
|
12
|
+
|
13
|
+
|
14
|
+
def _pre_create_accrual_plan_active(cr):
|
15
|
+
"""
|
16
|
+
Precreate column with default value true, then remove default from SQL
|
17
|
+
"""
|
18
|
+
openupgrade.logged_query(
|
19
|
+
cr,
|
20
|
+
"""
|
21
|
+
ALTER TABLE hr_leave_accrual_plan ADD COLUMN active boolean DEFAULT true
|
22
|
+
""",
|
23
|
+
)
|
24
|
+
openupgrade.logged_query(
|
25
|
+
cr,
|
26
|
+
"""
|
27
|
+
ALTER TABLE hr_leave_accrual_plan ALTER COLUMN active DROP DEFAULT
|
28
|
+
""",
|
29
|
+
)
|
30
|
+
|
31
|
+
|
32
|
+
def _hr_leave_company_id(cr):
|
33
|
+
"""Create and set company_id value in the same order than new compute
|
34
|
+
(employee_company_id, mode_company_id, department_id.company_id)
|
35
|
+
"""
|
36
|
+
openupgrade.logged_query(
|
37
|
+
cr,
|
38
|
+
"""
|
39
|
+
ALTER TABLE hr_leave
|
40
|
+
ADD COLUMN IF NOT EXISTS company_id INTEGER;
|
41
|
+
""",
|
42
|
+
)
|
43
|
+
openupgrade.logged_query(
|
44
|
+
cr,
|
45
|
+
"""UPDATE hr_leave AS leave
|
46
|
+
SET company_id = CASE
|
47
|
+
WHEN employee_company_id IS NOT NULL THEN employee_company_id
|
48
|
+
WHEN mode_company_id IS NOT NULL THEN mode_company_id
|
49
|
+
ELSE NULL
|
50
|
+
END
|
51
|
+
WHERE leave.company_id IS NULL""",
|
52
|
+
)
|
53
|
+
openupgrade.logged_query(
|
54
|
+
cr,
|
55
|
+
"""UPDATE hr_leave AS leave
|
56
|
+
SET company_id = d.company_id
|
57
|
+
FROM hr_department AS d
|
58
|
+
WHERE leave.company_id IS NULL AND leave.department_id = d.id""",
|
59
|
+
)
|
60
|
+
|
61
|
+
|
62
|
+
def _map_leave_accrual_level_action(cr):
|
63
|
+
openupgrade.logged_query(
|
64
|
+
cr,
|
65
|
+
"""
|
66
|
+
UPDATE hr_leave_accrual_level
|
67
|
+
SET action_with_unused_accruals = CASE
|
68
|
+
WHEN maximum_leave > 0 AND postpone_max_days > 0 THEN 'maximum'
|
69
|
+
ELSE 'all'
|
70
|
+
END
|
71
|
+
WHERE action_with_unused_accruals = 'postponed';
|
72
|
+
""",
|
73
|
+
)
|
74
|
+
|
75
|
+
|
76
|
+
def _map_leave_accrual_level_added_value_type(cr):
|
77
|
+
openupgrade.logged_query(
|
78
|
+
cr,
|
79
|
+
"""
|
80
|
+
UPDATE hr_leave_accrual_level
|
81
|
+
SET added_value_type = 'day'
|
82
|
+
WHERE added_value_type = 'days';
|
83
|
+
""",
|
84
|
+
)
|
85
|
+
openupgrade.logged_query(
|
86
|
+
cr,
|
87
|
+
"""
|
88
|
+
UPDATE hr_leave_accrual_level
|
89
|
+
SET added_value_type = 'hour'
|
90
|
+
WHERE added_value_type = 'hours';
|
91
|
+
""",
|
92
|
+
)
|
93
|
+
|
94
|
+
|
95
|
+
def _map_leave_allocation_state(cr):
|
96
|
+
openupgrade.logged_query(
|
97
|
+
cr,
|
98
|
+
"""
|
99
|
+
UPDATE hr_leave_allocation
|
100
|
+
SET state = 'confirm'
|
101
|
+
WHERE state = 'draft';
|
102
|
+
""",
|
103
|
+
)
|
104
|
+
openupgrade.logged_query(
|
105
|
+
cr,
|
106
|
+
"""
|
107
|
+
UPDATE hr_leave_allocation
|
108
|
+
SET state = 'refuse'
|
109
|
+
WHERE state = 'cancel';
|
110
|
+
""",
|
111
|
+
)
|
112
|
+
|
113
|
+
|
114
|
+
def _set_is_based_on_worked_time(cr):
|
115
|
+
openupgrade.logged_query(
|
116
|
+
cr,
|
117
|
+
"""
|
118
|
+
ALTER TABLE hr_leave_accrual_plan
|
119
|
+
ADD COLUMN IF NOT EXISTS is_based_on_worked_time BOOLEAN;
|
120
|
+
""",
|
121
|
+
)
|
122
|
+
openupgrade.logged_query(
|
123
|
+
cr,
|
124
|
+
"""
|
125
|
+
UPDATE hr_leave_accrual_plan plan
|
126
|
+
SET is_based_on_worked_time = subquery.max_value::BOOLEAN
|
127
|
+
FROM (
|
128
|
+
SELECT accrual_plan_id, MAX(is_based_on_worked_time::INT) AS max_value
|
129
|
+
FROM hr_leave_accrual_level
|
130
|
+
GROUP BY accrual_plan_id
|
131
|
+
) subquery
|
132
|
+
WHERE subquery.accrual_plan_id = plan.id;
|
133
|
+
""",
|
134
|
+
)
|
135
|
+
|
136
|
+
|
137
|
+
def _delete_sql_constraints(env):
|
138
|
+
# Delete constraints to recreate it
|
139
|
+
openupgrade.delete_sql_constraint_safely(
|
140
|
+
env, "hr_holidays", "hr_leave_accrual_level", "check_dates"
|
141
|
+
)
|
142
|
+
|
143
|
+
|
144
|
+
@openupgrade.migrate()
|
145
|
+
def migrate(env, version):
|
146
|
+
openupgrade.rename_models(env.cr, _model_renames)
|
147
|
+
openupgrade.rename_tables(env.cr, _table_renames)
|
148
|
+
_pre_create_accrual_plan_active(env.cr)
|
149
|
+
_hr_leave_company_id(env.cr)
|
150
|
+
_map_leave_accrual_level_action(env.cr)
|
151
|
+
_map_leave_accrual_level_added_value_type(env.cr)
|
152
|
+
_map_leave_allocation_state(env.cr)
|
153
|
+
_set_is_based_on_worked_time(env.cr)
|
154
|
+
_delete_sql_constraints(env)
|
@@ -0,0 +1,186 @@
|
|
1
|
+
---Models in module 'hr_holidays'---
|
2
|
+
obsolete model hr.leave.stress.day
|
3
|
+
new model hr.leave.mandatory.day
|
4
|
+
# DONE pre-migration: rename model
|
5
|
+
|
6
|
+
---Fields in module 'hr_holidays'---
|
7
|
+
hr_holidays / hr.leave / activity_user_id (many2one) : not related anymore
|
8
|
+
hr_holidays / hr.leave / activity_user_id (many2one) : now a function
|
9
|
+
# NOTHING TO DO: not stored field
|
10
|
+
|
11
|
+
hr_holidays / hr.leave / category_id (many2one) : not a function anymore
|
12
|
+
# NOTHING TO DO: states and validate removed only
|
13
|
+
|
14
|
+
hr_holidays / hr.leave / company_id (many2one) : NEW relation: res.company, isfunction: function, stored
|
15
|
+
# DONE pre-migration: create column and set value
|
16
|
+
|
17
|
+
hr_holidays / hr.leave / date_from (datetime) : now a function
|
18
|
+
hr_holidays / hr.leave / date_to (datetime) : now a function
|
19
|
+
hr_holidays / hr.leave / employee_ids (many2many) : now a function
|
20
|
+
# NOTHING TO DO: computed fields
|
21
|
+
|
22
|
+
hr_holidays / hr.leave / holiday_allocation_id (many2one): DEL relation: hr.leave.allocation
|
23
|
+
# NOTHING TO DO: removed field
|
24
|
+
|
25
|
+
hr_holidays / hr.leave / message_has_sms_error (boolean): previously in module sms
|
26
|
+
# NOTHING TO DO: Handled by Odoo registry
|
27
|
+
|
28
|
+
hr_holidays / hr.leave / mode_company_id (many2one) : not a function anymore
|
29
|
+
# NOTHING TO DO: states removed only
|
30
|
+
|
31
|
+
hr_holidays / hr.leave / number_of_days (float) : now a function
|
32
|
+
hr_holidays / hr.leave / number_of_hours (float) : NEW isfunction: function, stored
|
33
|
+
# NOTHING TO DO: computed fields
|
34
|
+
|
35
|
+
hr_holidays / hr.leave / rating_ids (one2many) : NEW relation: rating.rating
|
36
|
+
hr_holidays / hr.leave / resource_calendar_id (many2one): NEW relation: resource.calendar, hasdefault: compute
|
37
|
+
# NOTHING TO DO: new field
|
38
|
+
|
39
|
+
hr_holidays / hr.leave / website_message_ids (one2many): previously in module portal
|
40
|
+
# NOTHING TO DO: Handled by Odoo registry
|
41
|
+
|
42
|
+
hr_holidays / hr.leave.accrual.level / action_with_unused_accruals (selection): selection_keys is now '['all', 'lost', 'maximum']' ('['lost', 'postponed']')
|
43
|
+
# DONE: pre-migration reallocate postponed --> all or maximum depending on maximum_leave
|
44
|
+
|
45
|
+
hr_holidays / hr.leave.accrual.level / added_value_type (selection) : selection_keys is now '['day', 'hour']' ('['days', 'hours']')
|
46
|
+
# DONE: pre-migration reallocate values
|
47
|
+
|
48
|
+
hr_holidays / hr.leave.accrual.level / cap_accrued_time (boolean) : NEW hasdefault: default
|
49
|
+
# NOTHING TO DO: new functionality
|
50
|
+
|
51
|
+
hr_holidays / hr.leave.accrual.level / frequency (selection) : selection_keys is now '['bimonthly', 'biyearly', 'daily', 'hourly', 'monthly', 'weekly', 'yearly']' ('['bimonthly', 'biyearly', 'daily', 'monthly', 'weekly', 'yearly']')
|
52
|
+
# NOTHING TO DO: new key 'hourly'
|
53
|
+
|
54
|
+
hr_holidays / hr.leave.accrual.level / is_based_on_worked_time (boolean): DEL
|
55
|
+
hr_holidays / hr.leave.accrual.plan / is_based_on_worked_time (boolean): NEW hasdefault: compute
|
56
|
+
# DONE: pre-migration propagate value from hr.leave.accrual.level to hr.leave.accrual.plan
|
57
|
+
|
58
|
+
hr_holidays / hr.leave.accrual.level / parent_id (many2one) : DEL relation: hr.leave.accrual.level
|
59
|
+
# NOTHING TO DO: removed field without replacement
|
60
|
+
|
61
|
+
hr_holidays / hr.leave.accrual.plan / accrued_gain_time (selection) : NEW required, selection_keys: ['end', 'start'], hasdefault: default
|
62
|
+
# NOTHING TO DO: new field with default value = v16 behaviour
|
63
|
+
|
64
|
+
hr_holidays / hr.leave.accrual.plan / active (boolean) : NEW hasdefault: default
|
65
|
+
# DONE pre-migration: create column with default value
|
66
|
+
|
67
|
+
hr_holidays / hr.leave.accrual.plan / added_value_type (selection) : NEW selection_keys: ['day', 'hour'], isfunction: function, stored
|
68
|
+
# NOTHING TO DO: new fields computed based on value in hr.leave.accrual.level
|
69
|
+
|
70
|
+
hr_holidays / hr.leave.accrual.plan / carryover_date (selection) : NEW required, selection_keys: ['allocation', 'other', 'year_start'], hasdefault: default
|
71
|
+
hr_holidays / hr.leave.accrual.plan / carryover_day (integer) : NEW hasdefault: default
|
72
|
+
hr_holidays / hr.leave.accrual.plan / carryover_month (selection) : NEW selection_keys: ['apr', 'aug', 'dec', 'feb', 'jan', 'jul', 'jun', 'mar', 'may', 'nov', 'oct', 'sep'], hasdefault: default
|
73
|
+
# NOTHING TO DO: new fields with default value = v16 behaviour
|
74
|
+
|
75
|
+
hr_holidays / hr.leave.accrual.plan / company_id (many2one) : NEW relation: res.company, hasdefault: compute
|
76
|
+
# NOTHING TO DO: computed fields
|
77
|
+
|
78
|
+
hr_holidays / hr.leave.allocation / activity_user_id (many2one) : not related anymore
|
79
|
+
hr_holidays / hr.leave.allocation / activity_user_id (many2one) : now a function
|
80
|
+
# NOTHING TO DO: not stored field
|
81
|
+
|
82
|
+
hr_holidays / hr.leave.allocation / already_accrued (boolean) : NEW
|
83
|
+
# DONE post-migration: compute field
|
84
|
+
|
85
|
+
hr_holidays / hr.leave.allocation / department_id (many2one) : not a function anymore
|
86
|
+
# NOTHING TO DO: states removed only
|
87
|
+
|
88
|
+
hr_holidays / hr.leave.allocation / message_has_sms_error (boolean): previously in module sms
|
89
|
+
# NOTHING TO DO: Handled by Odoo registry
|
90
|
+
|
91
|
+
hr_holidays / hr.leave.allocation / message_main_attachment_id (many2one): DEL relation: ir.attachment
|
92
|
+
# NOTHING TO DO : mostly unused
|
93
|
+
|
94
|
+
hr_holidays / hr.leave.allocation / rating_ids (one2many) : NEW relation: rating.rating
|
95
|
+
# NOTHING TO DO: new field
|
96
|
+
|
97
|
+
hr_holidays / hr.leave.allocation / state (selection) : selection_keys is now '['confirm', 'refuse', 'validate']' ('['cancel', 'confirm', 'draft', 'refuse', 'validate']')
|
98
|
+
# DONE: pre-migration: reallocate previous state 'draft' to 'confirm' and 'cancel' to 'refuse'
|
99
|
+
|
100
|
+
hr_holidays / hr.leave.allocation / taken_leave_ids (one2many) : DEL relation: hr.leave
|
101
|
+
# NOTHING TO DO: removed link
|
102
|
+
|
103
|
+
hr_holidays / hr.leave.allocation / type_request_unit (selection) : not related anymore
|
104
|
+
hr_holidays / hr.leave.allocation / type_request_unit (selection) : now a function
|
105
|
+
hr_holidays / hr.leave.allocation / type_request_unit (selection) : selection_keys is now '['day', 'half_day', 'hour']' ('function')
|
106
|
+
# NOTHING TO DO: was related to holiday_status_id is now computed
|
107
|
+
|
108
|
+
hr_holidays / hr.leave.allocation / website_message_ids (one2many): previously in module portal
|
109
|
+
# NOTHING TO DO: Handled by Odoo registry
|
110
|
+
|
111
|
+
hr_holidays / hr.leave.mandatory.day / color (integer) : NEW hasdefault: default
|
112
|
+
hr_holidays / hr.leave.mandatory.day / company_id (many2one) : NEW relation: res.company, required, hasdefault: default
|
113
|
+
hr_holidays / hr.leave.mandatory.day / department_ids (many2many) : NEW relation: hr.department
|
114
|
+
hr_holidays / hr.leave.mandatory.day / end_date (date) : NEW required
|
115
|
+
hr_holidays / hr.leave.mandatory.day / name (char) : NEW required
|
116
|
+
hr_holidays / hr.leave.mandatory.day / resource_calendar_id (many2one): NEW relation: resource.calendar
|
117
|
+
hr_holidays / hr.leave.mandatory.day / start_date (date) : NEW required
|
118
|
+
hr_holidays / hr.leave.stress.day / color (integer) : DEL
|
119
|
+
hr_holidays / hr.leave.stress.day / company_id (many2one) : DEL relation: res.company, required
|
120
|
+
hr_holidays / hr.leave.stress.day / department_ids (many2many) : DEL relation: hr.department
|
121
|
+
hr_holidays / hr.leave.stress.day / end_date (date) : DEL required
|
122
|
+
hr_holidays / hr.leave.stress.day / name (char) : DEL required
|
123
|
+
hr_holidays / hr.leave.stress.day / resource_calendar_id (many2one): DEL relation: resource.calendar
|
124
|
+
hr_holidays / hr.leave.stress.day / start_date (date) : DEL required
|
125
|
+
# DONE: pre-migration rename model (no field changes)
|
126
|
+
|
127
|
+
hr_holidays / hr.leave.type / allows_negative (boolean) : NEW
|
128
|
+
hr_holidays / hr.leave.type / max_allowed_negative (integer): NEW
|
129
|
+
# NOTHING TO DO: new feature
|
130
|
+
|
131
|
+
hr_holidays / hr.leave.type / color_name (selection) : DEL required, selection_keys: ['black', 'blue', 'brown', 'ivory', 'lavender', 'lightblue', 'lightcoral', 'lightcyan', 'lightgreen', 'lightpink', 'lightsalmon', 'lightyellow', 'magenta', 'red', 'violet', 'wheat']
|
132
|
+
# NOTHING TO DO: removed field
|
133
|
+
|
134
|
+
hr_holidays / hr.leave.type / responsible_id (many2one) : DEL relation: res.users
|
135
|
+
hr_holidays / hr.leave.type / responsible_ids (many2many) : NEW relation: res.users
|
136
|
+
# DONE: post-migration: convert m2o to m2m
|
137
|
+
|
138
|
+
---XML records in module 'hr_holidays'---
|
139
|
+
NEW ir.actions.act_window: hr_holidays.act_hr_employee_holiday_type
|
140
|
+
ir.actions.act_window: hr_holidays.hr_leave_action_holiday_allocation_id (deleted domain)
|
141
|
+
NEW ir.actions.act_window: hr_holidays.hr_leave_mandatory_day_action
|
142
|
+
DEL ir.actions.act_window: hr_holidays.hr_leave_stress_day_action
|
143
|
+
NEW ir.actions.act_window.view: hr_holidays.action_window_leave_list
|
144
|
+
DEL ir.actions.report: hr_holidays.action_report_holidayssummary2
|
145
|
+
DEL ir.actions.server: hr_holidays.act_hr_employee_holiday_request
|
146
|
+
NEW ir.cron: hr_holidays.hr_leave_cron_cancel_invalid
|
147
|
+
NEW ir.model.access: hr_holidays.access_hr_leave_mandatory_day_manager
|
148
|
+
NEW ir.model.access: hr_holidays.access_hr_leave_mandatory_day_user
|
149
|
+
DEL ir.model.access: hr_holidays.access_hr_leave_stress_day_manager
|
150
|
+
DEL ir.model.access: hr_holidays.access_hr_leave_stress_day_user
|
151
|
+
# NOTHING TO DO: handled by ORM
|
152
|
+
|
153
|
+
ir.model.constraint: hr_holidays.constraint_hr_leave_accrual_level_check_dates (changed definition: is now 'check((frequency in('daily','hourly')) or(week_day is not null and frequency = 'weekly') or(first_day > 0 and second_day > first_day and first_day <= 31 and second_day <= 31 and frequency = 'bimonthly') or(first_day > 0 and first_day <= 31 and frequency = 'monthly')or(first_month_day > 0 and first_month_day <= 31 and second_month_day > 0 and second_month_day <= 31 and frequency = 'biyearly') or(yearly_day > 0 and yearly_day <= 31 and frequency = 'yearly'))' ('check((frequency = 'daily') or(week_day is not null and frequency = 'weekly') or(first_day > 0 and second_day > first_day and first_day <= 31 and second_day <= 31 and frequency = 'bimonthly') or(first_day > 0 and first_day <= 31 and frequency = 'monthly')or(first_month_day > 0 and first_month_day <= 31 and second_month_day > 0 and second_month_day <= 31 and frequency = 'biyearly') or(yearly_day > 0 and yearly_day <= 31 and frequency = 'yearly'))'))
|
154
|
+
# DONE: pre-migration: safely remove constraint so that it can be recreated by ORM
|
155
|
+
|
156
|
+
NEW ir.model.constraint: hr_holidays.constraint_hr_leave_date_check3
|
157
|
+
NEW ir.model.constraint: hr_holidays.constraint_hr_leave_mandatory_day_date_from_after_day_to
|
158
|
+
NEW ir.model.constraint: hr_holidays.constraint_hr_leave_type_check_negative
|
159
|
+
DEL ir.model.constraint: hr_holidays.constraint_hr_leave_stress_day_date_from_after_day_to
|
160
|
+
NEW ir.rule: hr_holidays.hr_leave_accrual_plan_rule_multi_company (noupdate)
|
161
|
+
NEW ir.rule: hr_holidays.hr_leave_mandatory_day_rule_multi_company (noupdate)
|
162
|
+
# NOTHING TO DO: handled by ORM
|
163
|
+
|
164
|
+
DEL ir.rule: hr_holidays.hr_leave_stress_day_rule_multi_company (noupdate)
|
165
|
+
# DONE: post-migration: safe removal of ir.rule
|
166
|
+
|
167
|
+
NEW ir.ui.menu: hr_holidays.hr_holidays_mandatory_day_menu_configuration
|
168
|
+
NEW ir.ui.menu: hr_holidays.menu_hr_holidays_management
|
169
|
+
DEL ir.ui.menu: hr_holidays.hr_holidays_stress_day_menu_configuration
|
170
|
+
DEL ir.ui.menu: hr_holidays.menu_hr_holidays_approvals
|
171
|
+
NEW ir.ui.view: hr_holidays.hr_accrual_plan_view_search
|
172
|
+
NEW ir.ui.view: hr_holidays.hr_leave_mandatory_day_view_form
|
173
|
+
NEW ir.ui.view: hr_holidays.hr_leave_mandatory_day_view_list
|
174
|
+
NEW ir.ui.view: hr_holidays.hr_leave_mandatory_day_view_search
|
175
|
+
NEW ir.ui.view: hr_holidays.hr_leave_report_graph
|
176
|
+
NEW ir.ui.view: hr_holidays.hr_leave_report_search_view
|
177
|
+
NEW ir.ui.view: hr_holidays.hr_leave_view_kanban_my
|
178
|
+
NEW ir.ui.view: hr_holidays.view_holiday_list
|
179
|
+
DEL ir.ui.view: hr_holidays.hr_leave_report_view_form
|
180
|
+
DEL ir.ui.view: hr_holidays.hr_leave_stress_day_view_form
|
181
|
+
DEL ir.ui.view: hr_holidays.hr_leave_stress_day_view_list
|
182
|
+
DEL ir.ui.view: hr_holidays.hr_leave_stress_day_view_search
|
183
|
+
# NOTHING TO DO: handled by ORM
|
184
|
+
|
185
|
+
DEL mail.activity.type: hr_holidays.mail_act_leave_allocation_second_approval (noupdate)
|
186
|
+
# DONE: post-migration: safe removal for activity.type
|
@@ -1,7 +1,7 @@
|
|
1
1
|
odoo/addons/openupgrade_scripts/README.rst,sha256=F-NgZfCSC-In2HctZruRu5RXLtEBFegzZYW5KpobcWU,3182
|
2
2
|
odoo/addons/openupgrade_scripts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
3
3
|
odoo/addons/openupgrade_scripts/__manifest__.py,sha256=7Yx2vwKl2vEHnUbDuuTprHLg2oQrKQMkpWEfyFneA0Q,614
|
4
|
-
odoo/addons/openupgrade_scripts/apriori.py,sha256=
|
4
|
+
odoo/addons/openupgrade_scripts/apriori.py,sha256=5Z-LjgLOWLDc-KVo18gEJMNl6ovSuGmMhW5-TWHeeZY,2731
|
5
5
|
odoo/addons/openupgrade_scripts/readme/CONFIGURE.md,sha256=rnx8ADTYzVUB93PIG3Lib0iWBrphSfVRs6RMikklf3M,238
|
6
6
|
odoo/addons/openupgrade_scripts/readme/DESCRIPTION.md,sha256=HPjPs_KluLFMYXPaJcnoneY8BAh-XPwEAP71I7VTTbo,86
|
7
7
|
odoo/addons/openupgrade_scripts/readme/INSTALL.md,sha256=NDKVZRv0J8BTqcSTD7JwUXL_AY-cDJoegn5IUTbEOFk,113
|
@@ -151,8 +151,11 @@ odoo/addons/openupgrade_scripts/scripts/hr_expense/17.0.2.0/noupdate_changes.xml
|
|
151
151
|
odoo/addons/openupgrade_scripts/scripts/hr_expense/17.0.2.0/upgrade_analysis.txt,sha256=Yx8U6AjBBz4fleqgeEsdmhbeitPvc9YCvQl5vIxHN84,4674
|
152
152
|
odoo/addons/openupgrade_scripts/scripts/hr_fleet/17.0.1.0/upgrade_analysis.txt,sha256=AH2qC-3jaxRo-eCAnuK_WTlhVhQFCRS73OKLyyggR9U,361
|
153
153
|
odoo/addons/openupgrade_scripts/scripts/hr_gamification/17.0.1.0/upgrade_analysis.txt,sha256=cMaEUAXfvHRW3vwIZMIrGROH5eDQjRAbqLkraqvEj-4,168
|
154
|
-
odoo/addons/openupgrade_scripts/scripts/hr_holidays/17.0.1.6/noupdate_changes.xml,sha256=
|
154
|
+
odoo/addons/openupgrade_scripts/scripts/hr_holidays/17.0.1.6/noupdate_changes.xml,sha256=9dOGU4iK5Gl2MEq-x3wshERglih14wZYrbMH-LUYlf0,1916
|
155
|
+
odoo/addons/openupgrade_scripts/scripts/hr_holidays/17.0.1.6/post-migration.py,sha256=FkDpeoZNAImxlH-LvuWu5tYGdCR9qjmOlHbrfSMOiTc,1273
|
156
|
+
odoo/addons/openupgrade_scripts/scripts/hr_holidays/17.0.1.6/pre-migration.py,sha256=IoQrhfXvybPbYcGzn8p617S-8yol2KzLDWSD5xvk1OU,4142
|
155
157
|
odoo/addons/openupgrade_scripts/scripts/hr_holidays/17.0.1.6/upgrade_analysis.txt,sha256=flWyUrKNGlbsBeLBaQvOsTAou1pweol29cRpTdLkp8s,10388
|
158
|
+
odoo/addons/openupgrade_scripts/scripts/hr_holidays/17.0.1.6/upgrade_analysis_work.txt,sha256=hJY_neDbPxBYDS_8lfAquDXqG_rQRiCGOmx8_9J5zfo,12355
|
156
159
|
odoo/addons/openupgrade_scripts/scripts/hr_holidays_attendance/17.0.1.0/upgrade_analysis.txt,sha256=C1HtkWT1AE5_bnw2wey2xca4d1aAHM1zMAL5JwbzCys,439
|
157
160
|
odoo/addons/openupgrade_scripts/scripts/hr_homeworking/17.0.1.0/upgrade_analysis.txt,sha256=rK4daLDP1VqHK9Pkf7_nc3wgs8dncc5msOekWr31Scg,2616
|
158
161
|
odoo/addons/openupgrade_scripts/scripts/hr_hourly_cost/17.0.1.0/upgrade_analysis.txt,sha256=TuvRvqvFxqrIEX9EyxEIJUFPbycloeTMjmSua_BK-Nk,165
|
@@ -660,7 +663,7 @@ odoo/addons/openupgrade_scripts/scripts/website_twitter/17.0.1.0/upgrade_analysi
|
|
660
663
|
odoo/addons/openupgrade_scripts/static/description/banner.png,sha256=KTIBu4gfxeZVw9zjs_fivTgFEOeaAorlBxajmCA1p6k,26859
|
661
664
|
odoo/addons/openupgrade_scripts/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
|
662
665
|
odoo/addons/openupgrade_scripts/static/description/index.html,sha256=iV41-zYBM4uvZPuunpcr7bQeRgBaojVsKo_gkeyJyA4,12639
|
663
|
-
odoo_addon_openupgrade_scripts-17.0.1.0.1.
|
664
|
-
odoo_addon_openupgrade_scripts-17.0.1.0.1.
|
665
|
-
odoo_addon_openupgrade_scripts-17.0.1.0.1.
|
666
|
-
odoo_addon_openupgrade_scripts-17.0.1.0.1.
|
666
|
+
odoo_addon_openupgrade_scripts-17.0.1.0.1.203.dist-info/METADATA,sha256=e2oa1ataKrib65zUJd2w6GUw1iRHW_CPVsKQiCdjJy0,3786
|
667
|
+
odoo_addon_openupgrade_scripts-17.0.1.0.1.203.dist-info/WHEEL,sha256=9fEMia4zL7ZuZbnCOrcYogUhmn4XFIVaJ8G4YGI31xc,81
|
668
|
+
odoo_addon_openupgrade_scripts-17.0.1.0.1.203.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
|
669
|
+
odoo_addon_openupgrade_scripts-17.0.1.0.1.203.dist-info/RECORD,,
|
File without changes
|