odoo-addon-openupgrade-scripts 17.0.1.0.1.317__py3-none-any.whl → 17.0.1.0.1.321__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/analytic/17.0.1.2/pre-migration.py +4 -2
- odoo/addons/openupgrade_scripts/scripts/hr_recruitment_survey/17.0.1.0/noupdate_changes.xml +3 -0
- odoo/addons/openupgrade_scripts/scripts/hr_recruitment_survey/17.0.1.0/post-migration.py +25 -0
- odoo/addons/openupgrade_scripts/scripts/hr_recruitment_survey/17.0.1.0/upgrade_analysis_work.txt +11 -0
- {odoo_addon_openupgrade_scripts-17.0.1.0.1.317.dist-info → odoo_addon_openupgrade_scripts-17.0.1.0.1.321.dist-info}/METADATA +1 -1
- {odoo_addon_openupgrade_scripts-17.0.1.0.1.317.dist-info → odoo_addon_openupgrade_scripts-17.0.1.0.1.321.dist-info}/RECORD +8 -6
- {odoo_addon_openupgrade_scripts-17.0.1.0.1.317.dist-info → odoo_addon_openupgrade_scripts-17.0.1.0.1.321.dist-info}/WHEEL +0 -0
- {odoo_addon_openupgrade_scripts-17.0.1.0.1.317.dist-info → odoo_addon_openupgrade_scripts-17.0.1.0.1.321.dist-info}/top_level.txt +0 -0
@@ -12,7 +12,9 @@ def _fill_config_parameter_analytic_project_plan(env):
|
|
12
12
|
If not, we check if there's already an existing ir.model.data entry for projects
|
13
13
|
according standard data (also pre-filled externally).
|
14
14
|
|
15
|
-
Finally, if not found, we
|
15
|
+
Finally, if not found, we will put the next available ID, as regular ORM update
|
16
|
+
process will load the record "analytic.analytic_plan_projects", and creates the
|
17
|
+
record that belongs to the "Projects" plan.
|
16
18
|
"""
|
17
19
|
if env["ir.config_parameter"].get_param("analytic.project_plan", False):
|
18
20
|
return
|
@@ -21,7 +23,7 @@ def _fill_config_parameter_analytic_project_plan(env):
|
|
21
23
|
)
|
22
24
|
plan_id = imd.res_id
|
23
25
|
if not plan_id:
|
24
|
-
env.cr.execute("SELECT
|
26
|
+
env.cr.execute("SELECT last_value + 1 FROM account_analytic_plan_id_seq;")
|
25
27
|
plan_id = env.cr.fetchone()[0]
|
26
28
|
env["ir.config_parameter"].set_param("analytic.project_plan", str(plan_id))
|
27
29
|
|
@@ -4,6 +4,9 @@
|
|
4
4
|
<field name="comment">It will also allow to send surveys and see the resume.</field>
|
5
5
|
<field name="implied_ids" eval="[Command.link(ref('survey.group_survey_user'))]"/>
|
6
6
|
</record>
|
7
|
+
<record id="hr_recruitment.group_hr_recruitment_user" model="res.groups">
|
8
|
+
<field name="implied_ids" eval="[Command.unlink(ref('survey.group_survey_user'))]"/>
|
9
|
+
</record>
|
7
10
|
<record id="survey.survey_user_input_rule_survey_user_read" model="ir.rule">
|
8
11
|
<field name="domain_force">[('applicant_id', '=', False)]</field>
|
9
12
|
<field name="name">Survey user input: officer: read all non private survey answers</field>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# Copyright 2025 Tecnativa - Carlos Lopez
|
2
|
+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
3
|
+
|
4
|
+
from openupgradelib import openupgrade
|
5
|
+
|
6
|
+
|
7
|
+
def _hr_applicant_convert_response_ids_m2o_to_o2m(env):
|
8
|
+
"""
|
9
|
+
Convert m2o to o2m in 'hr.applicant'
|
10
|
+
"""
|
11
|
+
openupgrade.m2o_to_x2m(
|
12
|
+
env.cr, env["hr.applicant"], "hr_applicant", "response_ids", "response_id"
|
13
|
+
)
|
14
|
+
|
15
|
+
|
16
|
+
@openupgrade.migrate()
|
17
|
+
def migrate(env, version):
|
18
|
+
openupgrade.load_data(env, "hr_recruitment_survey", "17.0.1.0/noupdate_changes.xml")
|
19
|
+
openupgrade.delete_record_translations(
|
20
|
+
env.cr,
|
21
|
+
"hr_recruitment_survey",
|
22
|
+
["group_hr_recruitment_interviewer"],
|
23
|
+
["comment"],
|
24
|
+
)
|
25
|
+
_hr_applicant_convert_response_ids_m2o_to_o2m(env)
|
odoo/addons/openupgrade_scripts/scripts/hr_recruitment_survey/17.0.1.0/upgrade_analysis_work.txt
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
---Models in module 'hr_recruitment_survey'---
|
2
|
+
---Fields in module 'hr_recruitment_survey'---
|
3
|
+
hr_recruitment_survey / hr.applicant / response_id (many2one) : DEL relation: survey.user_input
|
4
|
+
hr_recruitment_survey / hr.applicant / response_ids (one2many) : NEW relation: survey.user_input
|
5
|
+
hr_recruitment_survey / survey.user_input / applicant_id (one2many) : type is now 'many2one' ('one2many')
|
6
|
+
# DONE: post-migration: convert data many2one to one2many
|
7
|
+
|
8
|
+
---XML records in module 'hr_recruitment_survey'---
|
9
|
+
NEW ir.rule: hr_recruitment_survey.survey_user_input_rule_recruitment_interviewer (noupdate)
|
10
|
+
NEW mail.template: hr_recruitment_survey.mail_template_applicant_interview_invite (noupdate)
|
11
|
+
# NOTHING TO DO: new features
|
@@ -40,7 +40,7 @@ odoo/addons/openupgrade_scripts/scripts/account_tax_python/17.0.1.0/upgrade_anal
|
|
40
40
|
odoo/addons/openupgrade_scripts/scripts/account_update_tax_tags/17.0.1.0/upgrade_analysis.txt,sha256=JK79MYmDfZhdQU0d4LeMewZo2CpE01ltPRTZdFZHM-k,192
|
41
41
|
odoo/addons/openupgrade_scripts/scripts/analytic/17.0.1.2/noupdate_changes.xml,sha256=-CxzojBA5uxpeYi2roC1KYP_ROFVQjqDix7GdZAgxY8,421
|
42
42
|
odoo/addons/openupgrade_scripts/scripts/analytic/17.0.1.2/post-migration.py,sha256=F3YCQbJkl8DqJ-O4o-4BitsHBu7Po34X6kZPVPLs2gE,2904
|
43
|
-
odoo/addons/openupgrade_scripts/scripts/analytic/17.0.1.2/pre-migration.py,sha256=
|
43
|
+
odoo/addons/openupgrade_scripts/scripts/analytic/17.0.1.2/pre-migration.py,sha256=2ArWVAuFTUZ-tvXAIF4W5Hf1-tnTq1Mha5aR3-QxXOI,2142
|
44
44
|
odoo/addons/openupgrade_scripts/scripts/analytic/17.0.1.2/upgrade_analysis.txt,sha256=QvqEqA2DKpDqb3U2ZI27zTnIBBUGG3TZFqE4jSjYGlQ,1252
|
45
45
|
odoo/addons/openupgrade_scripts/scripts/analytic/17.0.1.2/upgrade_analysis_work.txt,sha256=Lnz-_Rry2F973-auNcXzj2QvXdgpCxG3ndUmeOvZaZ4,1867
|
46
46
|
odoo/addons/openupgrade_scripts/scripts/auth_ldap/17.0.1.0/upgrade_analysis.txt,sha256=QB9DfdWzmE0oR4fsd-qPQ9JF5W_uZFNYpvKmNVs_TZw,150
|
@@ -182,8 +182,10 @@ odoo/addons/openupgrade_scripts/scripts/hr_recruitment/17.0.1.1/pre-migration.py
|
|
182
182
|
odoo/addons/openupgrade_scripts/scripts/hr_recruitment/17.0.1.1/upgrade_analysis.txt,sha256=MYAeSt-rVK7fBsEX1kG188sYXfUJrVnGIuE1tSy4Lzc,2549
|
183
183
|
odoo/addons/openupgrade_scripts/scripts/hr_recruitment/17.0.1.1/upgrade_analysis_work.txt,sha256=vmeg1SMS-WJC0-0JO0XRiMalj74Gi1LqPjvxPudJkDI,3100
|
184
184
|
odoo/addons/openupgrade_scripts/scripts/hr_recruitment_skills/17.0.1.0/upgrade_analysis.txt,sha256=7lV9xkknBnwVY7qGmJzwBnHP4-LI2gMnoEalMTocuWs,362
|
185
|
-
odoo/addons/openupgrade_scripts/scripts/hr_recruitment_survey/17.0.1.0/noupdate_changes.xml,sha256=
|
185
|
+
odoo/addons/openupgrade_scripts/scripts/hr_recruitment_survey/17.0.1.0/noupdate_changes.xml,sha256=9zCjDOEpxqJ7YkwgNZdTsMkbXN6F4b4nvZxyVjJZGeE,758
|
186
|
+
odoo/addons/openupgrade_scripts/scripts/hr_recruitment_survey/17.0.1.0/post-migration.py,sha256=IGBN6U74mu7JguC1UftrGo6H4j6Mr5R_DxfPcNHJYV4,745
|
186
187
|
odoo/addons/openupgrade_scripts/scripts/hr_recruitment_survey/17.0.1.0/upgrade_analysis.txt,sha256=iyLAH-U6La6-yjIbfXEpoQw_xHE9CmH0qyHVC-5YoK4,681
|
188
|
+
odoo/addons/openupgrade_scripts/scripts/hr_recruitment_survey/17.0.1.0/upgrade_analysis_work.txt,sha256=qO6vqj5bx-R9skGP7FgX4BX0lyY0hJjOHgFm4qWKEWE,770
|
187
189
|
odoo/addons/openupgrade_scripts/scripts/hr_skills/17.0.1.0/upgrade_analysis.txt,sha256=06OqKTUamjUL1Ui7l6POXHoQKmy38FEO4mLZsGDbgHw,899
|
188
190
|
odoo/addons/openupgrade_scripts/scripts/hr_skills_slides/17.0.1.0/upgrade_analysis.txt,sha256=oQB8tjhHAghJ25JskMaQEBVgDe2p4uz0qvWqX-QBuwQ,171
|
189
191
|
odoo/addons/openupgrade_scripts/scripts/hr_skills_survey/17.0.1.0/upgrade_analysis.txt,sha256=3tgY89XspEDlIcKoxy6bnt4bJmvJt-UZwzcXVOyDTMM,715
|
@@ -745,7 +747,7 @@ odoo/addons/openupgrade_scripts/scripts/website_twitter/17.0.1.0/upgrade_analysi
|
|
745
747
|
odoo/addons/openupgrade_scripts/static/description/banner.png,sha256=KTIBu4gfxeZVw9zjs_fivTgFEOeaAorlBxajmCA1p6k,26859
|
746
748
|
odoo/addons/openupgrade_scripts/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
|
747
749
|
odoo/addons/openupgrade_scripts/static/description/index.html,sha256=iV41-zYBM4uvZPuunpcr7bQeRgBaojVsKo_gkeyJyA4,12639
|
748
|
-
odoo_addon_openupgrade_scripts-17.0.1.0.1.
|
749
|
-
odoo_addon_openupgrade_scripts-17.0.1.0.1.
|
750
|
-
odoo_addon_openupgrade_scripts-17.0.1.0.1.
|
751
|
-
odoo_addon_openupgrade_scripts-17.0.1.0.1.
|
750
|
+
odoo_addon_openupgrade_scripts-17.0.1.0.1.321.dist-info/METADATA,sha256=BK3qwkl4jC_AzI6vlQjhHBoyvAF8kpNK4WJ9Jt-DR3w,3786
|
751
|
+
odoo_addon_openupgrade_scripts-17.0.1.0.1.321.dist-info/WHEEL,sha256=9fEMia4zL7ZuZbnCOrcYogUhmn4XFIVaJ8G4YGI31xc,81
|
752
|
+
odoo_addon_openupgrade_scripts-17.0.1.0.1.321.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
|
753
|
+
odoo_addon_openupgrade_scripts-17.0.1.0.1.321.dist-info/RECORD,,
|
File without changes
|