odoo-addon-openupgrade-scripts 18.0.1.0.0.79__py3-none-any.whl → 18.0.1.0.0.98__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 -1
- odoo/addons/openupgrade_scripts/scripts/account/18.0.1.3/post-migration.py +1 -1
- odoo/addons/openupgrade_scripts/scripts/base_vat/18.0.1.0/upgrade_analysis_work.txt +5 -0
- odoo/addons/openupgrade_scripts/scripts/hr/18.0.1.1/post-migration.py +10 -0
- odoo/addons/openupgrade_scripts/scripts/hr/18.0.1.1/pre-migration.py +52 -0
- odoo/addons/openupgrade_scripts/scripts/hr/18.0.1.1/upgrade_analysis_work.txt +76 -0
- odoo/addons/openupgrade_scripts/scripts/l10n_es/18.0.5.4/upgrade_analysis_work.txt +76 -0
- odoo/addons/openupgrade_scripts/scripts/l10n_fr/18.0.2.1/pre-migration.py +687 -0
- odoo/addons/openupgrade_scripts/scripts/l10n_fr/18.0.2.1/upgrade_analysis_work.txt +384 -0
- odoo/addons/openupgrade_scripts/scripts/l10n_fr_account/18.0.2.2/post-migration.py +26 -0
- odoo/addons/openupgrade_scripts/scripts/l10n_fr_account/18.0.2.2/pre-migration.py +24 -0
- odoo/addons/openupgrade_scripts/scripts/l10n_fr_account/18.0.2.2/upgrade_analysis_work.txt +3185 -0
- odoo/addons/openupgrade_scripts/scripts/purchase/18.0.1.2/post-migration.py +28 -0
- odoo/addons/openupgrade_scripts/scripts/purchase/18.0.1.2/pre-migration.py +24 -0
- odoo/addons/openupgrade_scripts/scripts/purchase/18.0.1.2/upgrade_analysis_work.txt +51 -0
- odoo/addons/openupgrade_scripts/scripts/sale/18.0.1.2/end-migration.py +49 -0
- odoo/addons/openupgrade_scripts/scripts/sale/18.0.1.2/post-migration.py +21 -0
- odoo/addons/openupgrade_scripts/scripts/sale/18.0.1.2/pre-migration.py +34 -0
- odoo/addons/openupgrade_scripts/scripts/sale/18.0.1.2/upgrade_analysis_work.txt +85 -0
- odoo/addons/openupgrade_scripts/scripts/sale_crm/18.0.1.0/upgrade_analysis_work.txt +5 -0
- odoo/addons/openupgrade_scripts/scripts/sale_stock/18.0.1.0/post-migration.py +12 -0
- odoo/addons/openupgrade_scripts/scripts/sale_stock/18.0.1.0/pre-migration.py +62 -0
- odoo/addons/openupgrade_scripts/scripts/sale_stock/18.0.1.0/upgrade_analysis_work.txt +18 -0
- odoo/addons/openupgrade_scripts/scripts/stock/18.0.1.1/post-migration.py +99 -0
- odoo/addons/openupgrade_scripts/scripts/stock/18.0.1.1/pre-migration.py +81 -0
- odoo/addons/openupgrade_scripts/scripts/stock/18.0.1.1/upgrade_analysis_work.txt +139 -0
- odoo/addons/openupgrade_scripts/scripts/stock_account/18.0.1.1/end-migration.py +23 -0
- odoo/addons/openupgrade_scripts/scripts/stock_account/18.0.1.1/post-migration.py +36 -0
- odoo/addons/openupgrade_scripts/scripts/stock_account/18.0.1.1/pre-migration.py +22 -0
- odoo/addons/openupgrade_scripts/scripts/stock_account/18.0.1.1/upgrade_analysis_work.txt +34 -0
- {odoo_addon_openupgrade_scripts-18.0.1.0.0.79.dist-info → odoo_addon_openupgrade_scripts-18.0.1.0.0.98.dist-info}/METADATA +1 -1
- {odoo_addon_openupgrade_scripts-18.0.1.0.0.79.dist-info → odoo_addon_openupgrade_scripts-18.0.1.0.0.98.dist-info}/RECORD +34 -6
- {odoo_addon_openupgrade_scripts-18.0.1.0.0.79.dist-info → odoo_addon_openupgrade_scripts-18.0.1.0.0.98.dist-info}/WHEEL +0 -0
- {odoo_addon_openupgrade_scripts-18.0.1.0.0.79.dist-info → odoo_addon_openupgrade_scripts-18.0.1.0.0.98.dist-info}/top_level.txt +0 -0
@@ -43,7 +43,7 @@ merged_modules = {
|
|
43
43
|
"l10n_es_edi_facturae_adm_centers": "l10n_es_edi_facturae",
|
44
44
|
"l10n_es_edi_facturae_invoice_period": "l10n_es_edi_facturae",
|
45
45
|
"l10n_es_edi_tbai_multi_refund": "l10n_es_edi_tbai",
|
46
|
-
"l10n_fr_fec": "
|
46
|
+
"l10n_fr_fec": "l10n_fr_account",
|
47
47
|
"l10n_fr_invoice_addr": "l10n_fr_account",
|
48
48
|
"l10n_ro_efactura": "l10n_ro_edi",
|
49
49
|
"im_livechat_mail_bot": "mail_bot",
|
@@ -85,7 +85,7 @@ def fill_res_partner_property_x_payment_method_line_id(env):
|
|
85
85
|
FROM (
|
86
86
|
SELECT
|
87
87
|
SPLIT_PART(ip.res_id, ',', 2)::integer res_id,
|
88
|
-
JSON_OBJECT_AGG(ip.company_id, sub.id) value
|
88
|
+
JSON_OBJECT_AGG(ip.company_id, sub.id) AS "value"
|
89
89
|
FROM ir_property ip
|
90
90
|
JOIN LATERAL (
|
91
91
|
SELECT *
|
@@ -0,0 +1,10 @@
|
|
1
|
+
from openupgradelib import openupgrade
|
2
|
+
|
3
|
+
|
4
|
+
@openupgrade.migrate()
|
5
|
+
def migrate(env, version):
|
6
|
+
openupgrade.load_data(env, "hr", "18.0.1.1/noupdate_changes.xml")
|
7
|
+
openupgrade.delete_record_translations(
|
8
|
+
env.cr, "hr", ["contract_type_part_time"], ["name"]
|
9
|
+
)
|
10
|
+
openupgrade.delete_records_safely_by_xml_id(env, ["hr.hr_presence_control_login"])
|
@@ -0,0 +1,52 @@
|
|
1
|
+
from openupgradelib import openupgrade
|
2
|
+
|
3
|
+
_new_columns = [
|
4
|
+
(
|
5
|
+
"hr.employee",
|
6
|
+
"distance_home_work_unit",
|
7
|
+
"selection",
|
8
|
+
"kilometers",
|
9
|
+
"hr_employee",
|
10
|
+
),
|
11
|
+
("hr.employee", "is_flexible", "boolean", None, "hr_employee"),
|
12
|
+
("hr.employee", "is_fully_flexible", "boolean", None, "hr_employee"),
|
13
|
+
("res.company", "hr_presence_control_attendance", "boolean"),
|
14
|
+
("res.company", "hr_presence_control_email", "boolean"),
|
15
|
+
("res.company", "hr_presence_control_ip", "boolean"),
|
16
|
+
("res.company", "hr_presence_control_login", "boolean", True),
|
17
|
+
]
|
18
|
+
|
19
|
+
|
20
|
+
@openupgrade.migrate()
|
21
|
+
def migrate(env, version):
|
22
|
+
openupgrade.rename_columns(
|
23
|
+
env.cr, {"employee_category_rel": [("emp_id", "employee_id")]}
|
24
|
+
)
|
25
|
+
openupgrade.add_columns(env, _new_columns)
|
26
|
+
openupgrade.logged_query(
|
27
|
+
env.cr,
|
28
|
+
"""
|
29
|
+
UPDATE hr_employee
|
30
|
+
SET is_fully_flexible = CASE WHEN resource_calendar_id IS NULL
|
31
|
+
THEN TRUE ELSE FALSE END
|
32
|
+
""",
|
33
|
+
)
|
34
|
+
openupgrade.logged_query(
|
35
|
+
env.cr,
|
36
|
+
"""
|
37
|
+
UPDATE hr_employee he2
|
38
|
+
SET is_flexible = CASE WHEN he.is_fully_flexible OR rc.flexible_hours
|
39
|
+
THEN TRUE ELSE FALSE END
|
40
|
+
FROM hr_employee he
|
41
|
+
LEFT JOIN resource_calendar rc ON he.resource_calendar_id = rc.id
|
42
|
+
WHERE he.id = he2.id
|
43
|
+
""",
|
44
|
+
)
|
45
|
+
openupgrade.logged_query(
|
46
|
+
env.cr,
|
47
|
+
"""
|
48
|
+
UPDATE hr_employee
|
49
|
+
SET marital = 'single'
|
50
|
+
WHERE marital IS NULL
|
51
|
+
""",
|
52
|
+
)
|
@@ -0,0 +1,76 @@
|
|
1
|
+
---Models in module 'hr'---
|
2
|
+
new model hr.manager.department.report [abstract]
|
3
|
+
# NOTHING TO DO
|
4
|
+
|
5
|
+
---Fields in module 'hr'---
|
6
|
+
hr / hr.department / activity_ids (one2many) : NEW relation: mail.activity
|
7
|
+
hr / hr.department / has_read_access (boolean) : NEW stored: False
|
8
|
+
hr / hr.department / message_has_sms_error (boolean): previously in module sms
|
9
|
+
hr / hr.department / website_message_ids (one2many): previously in module portal
|
10
|
+
# NOTHING TO DO
|
11
|
+
|
12
|
+
hr / hr.employee / category_ids (many2many) : column1 is now 'employee_id' ('emp_id') [employee_category_rel]
|
13
|
+
hr / hr.employee.category / employee_ids (many2many) : column2 is now 'employee_id' ('emp_id') [employee_category_rel]
|
14
|
+
# DONE: pre-migration: Rename column
|
15
|
+
|
16
|
+
hr / hr.employee / distance_home_work (integer) : NEW
|
17
|
+
hr / hr.employee / distance_home_work_unit (selection): NEW required, selection_keys: ['kilometers', 'miles'], hasdefault: default
|
18
|
+
# DONE: pre-migration: ADD column
|
19
|
+
|
20
|
+
hr / hr.employee / employee_type (selection) : selection_keys is now '['contractor', 'employee', 'freelance', 'student', 'trainee', 'worker']' ('['contractor', 'employee', 'freelance', 'student', 'trainee']')
|
21
|
+
# NOTHING TO DO: new 'worker' option
|
22
|
+
|
23
|
+
hr / hr.employee / hr_icon_display (selection) : selection_keys is now '['presence_absent', 'presence_archive', 'presence_out_of_working_hour', 'presence_present', 'presence_undetermined']' ('['presence_absent', 'presence_absent_active', 'presence_present', 'presence_to_define', 'presence_undetermined']')
|
24
|
+
hr / hr.employee / hr_presence_state (selection) : selection_keys is now '['absent', 'archive', 'out_of_working_hour', 'present']' ('['absent', 'present', 'to_define']')
|
25
|
+
# NOTHING TO DO: non stored fields
|
26
|
+
|
27
|
+
hr / hr.employee / is_flexible (boolean) : NEW isfunction: function, stored
|
28
|
+
hr / hr.employee / is_fully_flexible (boolean) : NEW isfunction: function, stored
|
29
|
+
# DONE: pre-migration: pre-created and filled
|
30
|
+
|
31
|
+
hr / hr.employee / km_home_work (integer) : now a function
|
32
|
+
hr / hr.employee / marital (selection) : now required
|
33
|
+
hr / hr.employee / marital (selection) : selection_keys is now 'function' ('['cohabitant', 'divorced', 'married', 'single', 'widower']')
|
34
|
+
hr / hr.employee / message_has_sms_error (boolean): previously in module sms
|
35
|
+
hr / hr.employee / website_message_ids (one2many): previously in module portal
|
36
|
+
hr / hr.job / message_has_sms_error (boolean): previously in module sms
|
37
|
+
hr / hr.job / no_of_hired_employee (integer): module is now 'hr_recruitment' ('hr')
|
38
|
+
hr / hr.job / website_message_ids (one2many): previously in module portal
|
39
|
+
hr / res.company / hr_presence_control_attendance (boolean): NEW
|
40
|
+
hr / res.company / hr_presence_control_email (boolean): NEW
|
41
|
+
hr / res.company / hr_presence_control_ip (boolean): NEW
|
42
|
+
hr / res.company / hr_presence_control_login (boolean): NEW hasdefault: default
|
43
|
+
# NOTHING TO DO
|
44
|
+
|
45
|
+
---XML records in module 'hr'---
|
46
|
+
NEW digest.tip: hr.digest_tip_hr_0
|
47
|
+
NEW hr.contract.type: hr.contract_type_apprenticeship (noupdate)
|
48
|
+
NEW hr.contract.type: hr.contract_type_employee (noupdate)
|
49
|
+
NEW hr.contract.type: hr.contract_type_statutaire (noupdate)
|
50
|
+
NEW hr.contract.type: hr.contract_type_student (noupdate)
|
51
|
+
NEW hr.contract.type: hr.contract_type_thesis (noupdate)
|
52
|
+
DEL ir.actions.act_window: hr.act_employee_from_department
|
53
|
+
DEL ir.actions.act_window: hr.open_view_employee_tree
|
54
|
+
NEW ir.actions.act_window.view: hr.act_hr_employee_activity_view
|
55
|
+
NEW ir.actions.act_window.view: hr.act_hr_employee_form_view
|
56
|
+
NEW ir.actions.act_window.view: hr.act_hr_employee_graph_view
|
57
|
+
NEW ir.actions.act_window.view: hr.act_hr_employee_kanban_view
|
58
|
+
NEW ir.actions.act_window.view: hr.act_hr_employee_pivot_view
|
59
|
+
NEW ir.actions.act_window.view: hr.act_hr_employee_public_form_view
|
60
|
+
NEW ir.actions.act_window.view: hr.act_hr_employee_public_kanban_view
|
61
|
+
NEW ir.actions.act_window.view: hr.act_hr_employee_public_tree_view
|
62
|
+
NEW ir.actions.act_window.view: hr.act_hr_employee_tree_view
|
63
|
+
NEW ir.actions.act_window.view: hr.hr_department_form_view_kanban_action
|
64
|
+
NEW ir.actions.act_window.view: hr.hr_department_form_view_tree_action
|
65
|
+
NEW ir.actions.act_window.view: hr.hr_department_kanban_view_kanban_action
|
66
|
+
NEW ir.actions.act_window.view: hr.hr_department_kanban_view_tree_action
|
67
|
+
NEW ir.actions.act_window.view: hr.hr_department_tree_view_kanban_action
|
68
|
+
NEW ir.actions.act_window.view: hr.hr_department_tree_view_tree_action
|
69
|
+
DEL ir.actions.server: hr.action_hr_employee_create_user
|
70
|
+
DEL ir.config_parameter: hr.hr_presence_control_login (noupdate)
|
71
|
+
DEL ir.ui.menu: hr.menu_config_plan
|
72
|
+
DEL ir.ui.menu: hr.menu_hr_department_tree
|
73
|
+
NEW ir.ui.view: hr.res_partner_view_search
|
74
|
+
NEW ir.ui.view: hr.view_employee_form_smartbutton_inherited
|
75
|
+
NEW report.paperformat: hr.paperformat_hr_employee_badge
|
76
|
+
# NOTHING TO DO
|
@@ -0,0 +1,76 @@
|
|
1
|
+
---Models in module 'l10n_es'---
|
2
|
+
---Fields in module 'l10n_es'---
|
3
|
+
l10n_es / res.company / l10n_es_simplified_invoice_limit (float): NEW hasdefault: default
|
4
|
+
# NOTHING TO DO
|
5
|
+
|
6
|
+
---XML records in module 'l10n_es'---
|
7
|
+
NEW account.report: l10n_es.mod_420
|
8
|
+
NEW account.report.column: l10n_es.mod_420_column_base
|
9
|
+
NEW account.report.column: l10n_es.mod_420_column_tax_amount
|
10
|
+
NEW account.report.expression: l10n_es.mod_420_casilla_10
|
11
|
+
NEW account.report.expression: l10n_es.mod_420_casilla_12
|
12
|
+
NEW account.report.expression: l10n_es.mod_420_casilla_13
|
13
|
+
NEW account.report.expression: l10n_es.mod_420_casilla_15
|
14
|
+
NEW account.report.expression: l10n_es.mod_420_casilla_16
|
15
|
+
NEW account.report.expression: l10n_es.mod_420_casilla_18
|
16
|
+
NEW account.report.expression: l10n_es.mod_420_casilla_19
|
17
|
+
NEW account.report.expression: l10n_es.mod_420_casilla_1_base
|
18
|
+
NEW account.report.expression: l10n_es.mod_420_casilla_20
|
19
|
+
NEW account.report.expression: l10n_es.mod_420_casilla_21
|
20
|
+
NEW account.report.expression: l10n_es.mod_420_casilla_22
|
21
|
+
NEW account.report.expression: l10n_es.mod_420_casilla_23
|
22
|
+
NEW account.report.expression: l10n_es.mod_420_casilla_24
|
23
|
+
NEW account.report.expression: l10n_es.mod_420_casilla_25
|
24
|
+
NEW account.report.expression: l10n_es.mod_420_casilla_26
|
25
|
+
NEW account.report.expression: l10n_es.mod_420_casilla_27
|
26
|
+
NEW account.report.expression: l10n_es.mod_420_casilla_28
|
27
|
+
NEW account.report.expression: l10n_es.mod_420_casilla_29
|
28
|
+
NEW account.report.expression: l10n_es.mod_420_casilla_30
|
29
|
+
NEW account.report.expression: l10n_es.mod_420_casilla_31
|
30
|
+
NEW account.report.expression: l10n_es.mod_420_casilla_32
|
31
|
+
NEW account.report.expression: l10n_es.mod_420_casilla_33
|
32
|
+
NEW account.report.expression: l10n_es.mod_420_casilla_34
|
33
|
+
NEW account.report.expression: l10n_es.mod_420_casilla_35
|
34
|
+
NEW account.report.expression: l10n_es.mod_420_casilla_36
|
35
|
+
NEW account.report.expression: l10n_es.mod_420_casilla_37
|
36
|
+
NEW account.report.expression: l10n_es.mod_420_casilla_38
|
37
|
+
NEW account.report.expression: l10n_es.mod_420_casilla_39
|
38
|
+
NEW account.report.expression: l10n_es.mod_420_casilla_4
|
39
|
+
NEW account.report.expression: l10n_es.mod_420_casilla_40
|
40
|
+
NEW account.report.expression: l10n_es.mod_420_casilla_41
|
41
|
+
NEW account.report.expression: l10n_es.mod_420_casilla_42
|
42
|
+
NEW account.report.expression: l10n_es.mod_420_casilla_43
|
43
|
+
NEW account.report.expression: l10n_es.mod_420_casilla_44
|
44
|
+
NEW account.report.expression: l10n_es.mod_420_casilla_45
|
45
|
+
NEW account.report.expression: l10n_es.mod_420_casilla_6
|
46
|
+
NEW account.report.expression: l10n_es.mod_420_casilla_7
|
47
|
+
NEW account.report.expression: l10n_es.mod_420_casilla_9
|
48
|
+
NEW account.report.line: l10n_es.mod_420_casilla_10_12
|
49
|
+
NEW account.report.line: l10n_es.mod_420_casilla_13_15
|
50
|
+
NEW account.report.line: l10n_es.mod_420_casilla_16_18
|
51
|
+
NEW account.report.line: l10n_es.mod_420_casilla_1_3
|
52
|
+
NEW account.report.line: l10n_es.mod_420_casilla_4_6
|
53
|
+
NEW account.report.line: l10n_es.mod_420_casilla_7_9
|
54
|
+
NEW account.report.line: l10n_es.mod_420_casilla_comp_agri
|
55
|
+
NEW account.report.line: l10n_es.mod_420_casilla_comp_reg_def
|
56
|
+
NEW account.report.line: l10n_es.mod_420_casilla_comp_reg_inv
|
57
|
+
NEW account.report.line: l10n_es.mod_420_casilla_comp_reg_start
|
58
|
+
NEW account.report.line: l10n_es.mod_420_casilla_deduc_modif
|
59
|
+
NEW account.report.line: l10n_es.mod_420_casilla_diff
|
60
|
+
NEW account.report.line: l10n_es.mod_420_casilla_igic_comp
|
61
|
+
NEW account.report.line: l10n_es.mod_420_casilla_igic_deductible
|
62
|
+
NEW account.report.line: l10n_es.mod_420_casilla_igic_deductible_imp
|
63
|
+
NEW account.report.line: l10n_es.mod_420_casilla_igic_deductible_imp_inv
|
64
|
+
NEW account.report.line: l10n_es.mod_420_casilla_igic_deductible_inv
|
65
|
+
NEW account.report.line: l10n_es.mod_420_casilla_isp
|
66
|
+
NEW account.report.line: l10n_es.mod_420_casilla_mod_21_22
|
67
|
+
NEW account.report.line: l10n_es.mod_420_casilla_mod_23_24
|
68
|
+
NEW account.report.line: l10n_es.mod_420_casilla_reg_art
|
69
|
+
NEW account.report.line: l10n_es.mod_420_casilla_result
|
70
|
+
NEW account.report.line: l10n_es.mod_420_casilla_to_deduct
|
71
|
+
NEW account.report.line: l10n_es.mod_420_casilla_total
|
72
|
+
NEW account.report.line: l10n_es.mod_420_casilla_total_25
|
73
|
+
NEW account.report.line: l10n_es.mod_420_igic_due
|
74
|
+
NEW account.report.line: l10n_es.mod_420_title_igic_deductible
|
75
|
+
NEW ir.ui.view: l10n_es.res_config_settings_view_form
|
76
|
+
# NOTHING TO DO
|