Merge lp:~savoirfairelinux-openerp/openupgrade-addons/hr_recruitment_context into lp:openupgrade-addons

Status: Merged
Merged at revision: 8173
Proposed branch: lp:~savoirfairelinux-openerp/openupgrade-addons/hr_recruitment_context
Merge into: lp:openupgrade-addons
Diff against target: 100 lines (+86/-0)
3 files modified
hr_recruitment/migrations/7.0.1.0/data.xml (+11/-0)
hr_recruitment/migrations/7.0.1.0/openupgrade_analysis_work.txt (+41/-0)
hr_recruitment/migrations/7.0.1.0/post-migration.py (+34/-0)
To merge this branch: bzr merge lp:~savoirfairelinux-openerp/openupgrade-addons/hr_recruitment_context
Reviewer Review Type Date Requested Status
Holger Brunn (Therp) code review Approve
Pedro Manuel Baeza Needs Information
Review via email: mp+234186@code.launchpad.net

Description of the change

Overwrite context of action to be {} as it is in 7.0

Wasn't sure if data.xml is the best place to put it or if I should edit the data directly in the module

To post a comment you must log in.
Revision history for this message
Pedro Manuel Baeza (pedro.baeza) wrote :

There is any problem with the diff...

Revision history for this message
Sandy Carter (http://www.savoirfairelinux.com) (sandy-carter) wrote :

Re-pushed

Revision history for this message
Pedro Manuel Baeza (pedro.baeza) wrote :

Same question as in sale_crm: is the script completed?

review: Needs Information
Revision history for this message
Holger Brunn (Therp) (hbrunn) :
review: Approve (code review)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'hr_recruitment/migrations/7.0.1.0/data.xml'
2--- hr_recruitment/migrations/7.0.1.0/data.xml 1970-01-01 00:00:00 +0000
3+++ hr_recruitment/migrations/7.0.1.0/data.xml 2014-09-11 19:23:23 +0000
4@@ -0,0 +1,11 @@
5+<?xml version = "1.0" encoding="utf-8"?>
6+<openerp>
7+ <data>
8+
9+ <!-- To erase previous context content -->
10+ <record id="hr_recruitment.crm_case_categ0_act_job" model="ir.actions.act_window">
11+ <field name="context">{}</field>
12+ </record>
13+
14+ </data>
15+</openerp>
16
17=== added file 'hr_recruitment/migrations/7.0.1.0/openupgrade_analysis_work.txt'
18--- hr_recruitment/migrations/7.0.1.0/openupgrade_analysis_work.txt 1970-01-01 00:00:00 +0000
19+++ hr_recruitment/migrations/7.0.1.0/openupgrade_analysis_work.txt 2014-09-11 19:23:23 +0000
20@@ -0,0 +1,41 @@
21+---Fields in module 'hr_recruitment'---
22+hr_recruitment / hr.applicant / categ_ids (many2many) : NEW relation: hr.applicant_category
23+hr_recruitment / hr.applicant / emp_id (many2one) : NEW relation: hr.employee
24+hr_recruitment / hr.applicant / partner_address_id (many2one) : DEL relation: res.partner.address
25+hr_recruitment / hr.applicant / state (selection) : now a function
26+hr_recruitment / hr.applicant_category / name (char) : NEW required: required
27+hr_recruitment / hr.job / _inherits (False) : NEW
28+hr_recruitment / hr.job / alias_id (many2one) : NEW relation: mail.alias, required: required
29+hr_recruitment / hr.recruitment.report / delay_open (float) : DEL
30+hr_recruitment / hr.recruitment.report / partner_address_id (many2one) : DEL relation: res.partner.address
31+hr_recruitment / hr.recruitment.report / salary_exp_avg (float) : NEW
32+hr_recruitment / hr.recruitment.stage / fold (boolean) : NEW
33+hr_recruitment / hr.recruitment.stage / state (selection) : NEW required: required, selection_keys: ['cancel', 'done', 'draft', 'open', 'pending'], req_default: draft
34+
35+---XML records in module 'hr_recruitment'---
36+# Overwrite context of action of hr_recruitment.crm_case_categ0_act_job to be
37+# {} as it is in 7.0
38+
39+
40+NEW crm.meeting.type: hr_recruitment.categ_meet_interview
41+NEW ir.actions.act_window: hr_recruitment.act_hr_applicant_to_meeting
42+DEL ir.actions.act_window: hr_recruitment.action_hr_recruitment_phonecall
43+DEL ir.actions.act_window: hr_recruitment.hr_job_categ_action
44+NEW ir.actions.todo: base.open_menu
45+DEL ir.actions.todo: hr_recruitment.hr_recruitment_stage_form_todo
46+NEW ir.model.access: hr_recruitment.access_hr_applicant_category
47+NEW ir.model.access: hr_recruitment.access_hr_applicant_category_manager
48+DEL ir.model.access: hr_recruitment.access_crm_phonecall_hruser
49+DEL ir.model.access: hr_recruitment.access_mail_message_user
50+DEL ir.model.access: hr_recruitment.access_res_partner_address_hr_user
51+NEW ir.ui.menu: hr.menu_hr_job
52+DEL ir.ui.menu: hr.menu_hr_reporting
53+DEL ir.ui.menu: hr_recruitment.menu_hr_job
54+NEW ir.ui.view: hr_recruitment.view_hr_apll_config_settings
55+DEL ir.ui.view: hr_recruitment.view_hr_recruitment_phonecall
56+NEW mail.alias: hr_recruitment.mail_alias_jobs
57+NEW mail.message: hr_recruitment.module_install_notification
58+NEW mail.message.subtype: hr_recruitment.mt_applicant_hired
59+NEW mail.message.subtype: hr_recruitment.mt_applicant_refused
60+NEW mail.message.subtype: hr_recruitment.mt_job_new_applicant
61+NEW mail.message.subtype: hr_recruitment.mt_stage_changed
62
63=== added file 'hr_recruitment/migrations/7.0.1.0/post-migration.py'
64--- hr_recruitment/migrations/7.0.1.0/post-migration.py 1970-01-01 00:00:00 +0000
65+++ hr_recruitment/migrations/7.0.1.0/post-migration.py 2014-09-11 19:23:23 +0000
66@@ -0,0 +1,34 @@
67+# -*- encoding: utf-8 -*-
68+##############################################################################
69+#
70+# OpenERP, Open Source Management Solution
71+# This module copyright (C) 2013 Savoir-faire Linux
72+# (<http://www.savoirfairelinux.com>).
73+#
74+# This program is free software: you can redistribute it and/or modify
75+# it under the terms of the GNU Affero General Public License as
76+# published by the Free Software Foundation, either version 3 of the
77+# License, or (at your option) any later version.
78+#
79+# This program is distributed in the hope that it will be useful,
80+# but WITHOUT ANY WARRANTY; without even the implied warranty of
81+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
82+# GNU Affero General Public License for more details.
83+#
84+# You should have received a copy of the GNU Affero General Public License
85+# along with this program. If not, see <http://www.gnu.org/licenses/>.
86+#
87+##############################################################################
88+
89+from openupgrade import openupgrade
90+
91+
92+@openupgrade.migrate()
93+def migrate(cr, version):
94+ """
95+ * Clear context of hr.applicant ir.action.window
96+ """
97+ openupgrade.load_xml(
98+ cr, 'hr_recruitment',
99+ 'migrations/7.0.1.0/data.xml'
100+ )

Subscribers

People subscribed via source and target branches