odoo-addon-openupgrade-scripts 17.0.1.0.1.175__py3-none-any.whl → 17.0.1.0.1.177__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.
@@ -0,0 +1,19 @@
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
+ @openupgrade.migrate()
8
+ def migrate(env, version):
9
+ openupgrade.load_data(env, "hr_recruitment", "17.0.1.1/noupdate_changes.xml")
10
+ openupgrade.delete_record_translations(
11
+ env.cr, "hr_recruitment", ["applicant_hired_template"]
12
+ )
13
+ openupgrade.delete_records_safely_by_xml_id(
14
+ env,
15
+ [
16
+ "hr_recruitment.mail_message_interviewer_rule",
17
+ "hr_recruitment.mail_alias_jobs",
18
+ ],
19
+ )
@@ -0,0 +1,24 @@
1
+ # Copyright 2025 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
+
6
+ def _fill_sequence_hr_applicant_refuse_reason(cr):
7
+ openupgrade.logged_query(
8
+ cr,
9
+ """
10
+ ALTER TABLE hr_applicant_refuse_reason
11
+ ADD COLUMN IF NOT EXISTS sequence INTEGER DEFAULT 10;
12
+ """,
13
+ )
14
+ openupgrade.logged_query(
15
+ cr,
16
+ """
17
+ ALTER TABLE hr_applicant_refuse_reason ALTER COLUMN sequence DROP DEFAULT;
18
+ """,
19
+ )
20
+
21
+
22
+ @openupgrade.migrate(use_env=False)
23
+ def migrate(cr, version):
24
+ _fill_sequence_hr_applicant_refuse_reason(cr)
@@ -0,0 +1,49 @@
1
+ ---Models in module 'hr_recruitment'---
2
+ ---Fields in module 'hr_recruitment'---
3
+ hr_recruitment / hr.applicant / activity_user_id (many2one) : not related anymore
4
+ hr_recruitment / hr.applicant / activity_user_id (many2one) : now a function
5
+ # NOTHING TO DO: not stored field
6
+
7
+ hr_recruitment / hr.applicant / applicant_properties (properties): NEW hasdefault: compute
8
+ # NOTHING TO DO: new properties field
9
+
10
+ hr_recruitment / hr.applicant / application_status (selection): selection_keys is now '['archived', 'hired', 'ongoing', 'refused']' ('['hired', 'ongoing', 'refused']')
11
+ # NOTHING TO DO: extra key added in selection
12
+
13
+ hr_recruitment / hr.applicant / email_normalized (char) : NEW isfunction: function, stored
14
+ hr_recruitment / hr.applicant / message_bounce (integer) : NEW hasdefault: default
15
+ hr_recruitment / hr.applicant / partner_mobile_sanitized (char): NEW isfunction: function, stored
16
+ hr_recruitment / hr.applicant / partner_phone_sanitized (char): NEW isfunction: function, stored
17
+ hr_recruitment / hr.applicant / phone_mobile_search (char) : NEW
18
+ hr_recruitment / hr.applicant / phone_sanitized (char) : NEW isfunction: function, stored
19
+ hr_recruitment / hr.applicant / rating_ids (one2many) : NEW relation: rating.rating
20
+ # NOTHING TO DO: new fields
21
+
22
+ hr_recruitment / hr.applicant.refuse.reason / _order : _order is now 'sequence' ('id')
23
+ # NOTHING TO DO: new field sequence used to order
24
+
25
+ hr_recruitment / hr.applicant.refuse.reason / sequence (integer) : NEW hasdefault: default
26
+ # DONE: pre-migration: pre-create column with default value
27
+
28
+ hr_recruitment / hr.job / applicant_properties_definition (properties_definition): NEW
29
+ # NOTHING TO DO: new properties field
30
+
31
+ hr_recruitment / hr.job / hr_responsible_id (many2one) : DEL relation: res.users
32
+ # NOTHING TO DO: responsible field removed without a replacement
33
+
34
+ ---XML records in module 'hr_recruitment'---
35
+ NEW hr.recruitment.stage: hr_recruitment.stage_job0 (noupdate)
36
+ NEW ir.actions.act_window: hr_recruitment.action_hr_applicant_mass_sms
37
+ DEL ir.actions.act_window: hr_recruitment.hr_employee_action_from_department
38
+ NEW ir.actions.server: hr_recruitment.ir_actions_server_refuse_applicant
39
+ NEW ir.config_parameter: hr_recruitment.hr_recruitment_blacklisted_emails (noupdate)
40
+ NEW ir.rule: hr_recruitment.hr_applicant_user_rule (noupdate)
41
+ NEW ir.rule: hr_recruitment.hr_job_user_rule (noupdate)
42
+ NEW ir.rule: hr_recruitment.mail_message_user_rule (noupdate)
43
+ NEW ir.ui.view: hr_recruitment.mail_notification_light_without_background (noupdate)
44
+ DEL ir.ui.view: hr_recruitment.hr_employee_view_search
45
+ # NOTHING TO DO: created by ORM (action_hr_applicant_mass_sms needs SMS installed although not a dependency, see https://github.com/odoo/odoo/issues/191635
46
+
47
+ DEL ir.rule: hr_recruitment.mail_message_interviewer_rule (noupdate)
48
+ DEL mail.alias: hr_recruitment.mail_alias_jobs (noupdate)
49
+ # DONE post-migration: safe delete these
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: odoo-addon-openupgrade_scripts
3
- Version: 17.0.1.0.1.175
3
+ Version: 17.0.1.0.1.177
4
4
  Requires-Python: >=3.10
5
5
  Requires-Dist: odoo>=17.0a,<17.1dev
6
6
  Requires-Dist: openupgradelib
@@ -157,7 +157,10 @@ odoo/addons/openupgrade_scripts/scripts/hr_org_chart/17.0.1.0/upgrade_analysis.t
157
157
  odoo/addons/openupgrade_scripts/scripts/hr_org_chart/17.0.1.0/upgrade_analysis_work.txt,sha256=5mGNQm8iwgLeM9fSMriQc29sDORmgdohKwrvu2CMn28,439
158
158
  odoo/addons/openupgrade_scripts/scripts/hr_presence/17.0.1.0/upgrade_analysis.txt,sha256=mBkYdBGJaMjyA8jiDOd8MPqOmFxNOGEx_xYuJM6PiOs,156
159
159
  odoo/addons/openupgrade_scripts/scripts/hr_recruitment/17.0.1.1/noupdate_changes.xml,sha256=U9oPwS9J9j4in9Rql0Xy0QcCCEcXE_zI1hKHZ_tznFo,1399
160
+ odoo/addons/openupgrade_scripts/scripts/hr_recruitment/17.0.1.1/post-migration.py,sha256=z4pVV3U2GL9Sgc-JfKxYO-QFQnaCJo4EwYH66nhX-Lw,603
161
+ odoo/addons/openupgrade_scripts/scripts/hr_recruitment/17.0.1.1/pre-migration.py,sha256=Cv2zRr2DRRhHGvlwS7dOSrNKB11c5DW7kJBTVSvrdq8,668
160
162
  odoo/addons/openupgrade_scripts/scripts/hr_recruitment/17.0.1.1/upgrade_analysis.txt,sha256=MYAeSt-rVK7fBsEX1kG188sYXfUJrVnGIuE1tSy4Lzc,2549
163
+ odoo/addons/openupgrade_scripts/scripts/hr_recruitment/17.0.1.1/upgrade_analysis_work.txt,sha256=6bChZEvcCgROiMoyjzhgJ0M5Fl4WVw-RS4Fobw8MRx0,3114
161
164
  odoo/addons/openupgrade_scripts/scripts/hr_recruitment_skills/17.0.1.0/upgrade_analysis.txt,sha256=7lV9xkknBnwVY7qGmJzwBnHP4-LI2gMnoEalMTocuWs,362
162
165
  odoo/addons/openupgrade_scripts/scripts/hr_recruitment_survey/17.0.1.0/noupdate_changes.xml,sha256=hHeibk-MYVeJ3PkGHZ5axWyrwIi9fp2IOTdhZ4yAm2k,581
163
166
  odoo/addons/openupgrade_scripts/scripts/hr_recruitment_survey/17.0.1.0/upgrade_analysis.txt,sha256=iyLAH-U6La6-yjIbfXEpoQw_xHE9CmH0qyHVC-5YoK4,681
@@ -640,7 +643,7 @@ odoo/addons/openupgrade_scripts/scripts/website_twitter/17.0.1.0/upgrade_analysi
640
643
  odoo/addons/openupgrade_scripts/static/description/banner.png,sha256=KTIBu4gfxeZVw9zjs_fivTgFEOeaAorlBxajmCA1p6k,26859
641
644
  odoo/addons/openupgrade_scripts/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
642
645
  odoo/addons/openupgrade_scripts/static/description/index.html,sha256=iV41-zYBM4uvZPuunpcr7bQeRgBaojVsKo_gkeyJyA4,12639
643
- odoo_addon_openupgrade_scripts-17.0.1.0.1.175.dist-info/METADATA,sha256=5nCJlhS5jTHJpmhxFnT5eEuQPTumfGj4qsNEd7zsCaw,3786
644
- odoo_addon_openupgrade_scripts-17.0.1.0.1.175.dist-info/WHEEL,sha256=9fEMia4zL7ZuZbnCOrcYogUhmn4XFIVaJ8G4YGI31xc,81
645
- odoo_addon_openupgrade_scripts-17.0.1.0.1.175.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
646
- odoo_addon_openupgrade_scripts-17.0.1.0.1.175.dist-info/RECORD,,
646
+ odoo_addon_openupgrade_scripts-17.0.1.0.1.177.dist-info/METADATA,sha256=ohJV_9LMBGys-L1CL9iR_f9YllvALx-WD7_nhffFNiQ,3786
647
+ odoo_addon_openupgrade_scripts-17.0.1.0.1.177.dist-info/WHEEL,sha256=9fEMia4zL7ZuZbnCOrcYogUhmn4XFIVaJ8G4YGI31xc,81
648
+ odoo_addon_openupgrade_scripts-17.0.1.0.1.177.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
649
+ odoo_addon_openupgrade_scripts-17.0.1.0.1.177.dist-info/RECORD,,