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
=== added file 'hr_recruitment/migrations/7.0.1.0/data.xml'
--- hr_recruitment/migrations/7.0.1.0/data.xml 1970-01-01 00:00:00 +0000
+++ hr_recruitment/migrations/7.0.1.0/data.xml 2014-09-11 19:23:23 +0000
@@ -0,0 +1,11 @@
1<?xml version = "1.0" encoding="utf-8"?>
2<openerp>
3 <data>
4
5 <!-- To erase previous context content -->
6 <record id="hr_recruitment.crm_case_categ0_act_job" model="ir.actions.act_window">
7 <field name="context">{}</field>
8 </record>
9
10 </data>
11</openerp>
012
=== added file 'hr_recruitment/migrations/7.0.1.0/openupgrade_analysis_work.txt'
--- hr_recruitment/migrations/7.0.1.0/openupgrade_analysis_work.txt 1970-01-01 00:00:00 +0000
+++ hr_recruitment/migrations/7.0.1.0/openupgrade_analysis_work.txt 2014-09-11 19:23:23 +0000
@@ -0,0 +1,41 @@
1---Fields in module 'hr_recruitment'---
2hr_recruitment / hr.applicant / categ_ids (many2many) : NEW relation: hr.applicant_category
3hr_recruitment / hr.applicant / emp_id (many2one) : NEW relation: hr.employee
4hr_recruitment / hr.applicant / partner_address_id (many2one) : DEL relation: res.partner.address
5hr_recruitment / hr.applicant / state (selection) : now a function
6hr_recruitment / hr.applicant_category / name (char) : NEW required: required
7hr_recruitment / hr.job / _inherits (False) : NEW
8hr_recruitment / hr.job / alias_id (many2one) : NEW relation: mail.alias, required: required
9hr_recruitment / hr.recruitment.report / delay_open (float) : DEL
10hr_recruitment / hr.recruitment.report / partner_address_id (many2one) : DEL relation: res.partner.address
11hr_recruitment / hr.recruitment.report / salary_exp_avg (float) : NEW
12hr_recruitment / hr.recruitment.stage / fold (boolean) : NEW
13hr_recruitment / hr.recruitment.stage / state (selection) : NEW required: required, selection_keys: ['cancel', 'done', 'draft', 'open', 'pending'], req_default: draft
14
15---XML records in module 'hr_recruitment'---
16# Overwrite context of action of hr_recruitment.crm_case_categ0_act_job to be
17# {} as it is in 7.0
18
19
20NEW crm.meeting.type: hr_recruitment.categ_meet_interview
21NEW ir.actions.act_window: hr_recruitment.act_hr_applicant_to_meeting
22DEL ir.actions.act_window: hr_recruitment.action_hr_recruitment_phonecall
23DEL ir.actions.act_window: hr_recruitment.hr_job_categ_action
24NEW ir.actions.todo: base.open_menu
25DEL ir.actions.todo: hr_recruitment.hr_recruitment_stage_form_todo
26NEW ir.model.access: hr_recruitment.access_hr_applicant_category
27NEW ir.model.access: hr_recruitment.access_hr_applicant_category_manager
28DEL ir.model.access: hr_recruitment.access_crm_phonecall_hruser
29DEL ir.model.access: hr_recruitment.access_mail_message_user
30DEL ir.model.access: hr_recruitment.access_res_partner_address_hr_user
31NEW ir.ui.menu: hr.menu_hr_job
32DEL ir.ui.menu: hr.menu_hr_reporting
33DEL ir.ui.menu: hr_recruitment.menu_hr_job
34NEW ir.ui.view: hr_recruitment.view_hr_apll_config_settings
35DEL ir.ui.view: hr_recruitment.view_hr_recruitment_phonecall
36NEW mail.alias: hr_recruitment.mail_alias_jobs
37NEW mail.message: hr_recruitment.module_install_notification
38NEW mail.message.subtype: hr_recruitment.mt_applicant_hired
39NEW mail.message.subtype: hr_recruitment.mt_applicant_refused
40NEW mail.message.subtype: hr_recruitment.mt_job_new_applicant
41NEW mail.message.subtype: hr_recruitment.mt_stage_changed
042
=== added file 'hr_recruitment/migrations/7.0.1.0/post-migration.py'
--- hr_recruitment/migrations/7.0.1.0/post-migration.py 1970-01-01 00:00:00 +0000
+++ hr_recruitment/migrations/7.0.1.0/post-migration.py 2014-09-11 19:23:23 +0000
@@ -0,0 +1,34 @@
1# -*- encoding: utf-8 -*-
2##############################################################################
3#
4# OpenERP, Open Source Management Solution
5# This module copyright (C) 2013 Savoir-faire Linux
6# (<http://www.savoirfairelinux.com>).
7#
8# This program is free software: you can redistribute it and/or modify
9# it under the terms of the GNU Affero General Public License as
10# published by the Free Software Foundation, either version 3 of the
11# License, or (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU Affero General Public License for more details.
17#
18# You should have received a copy of the GNU Affero General Public License
19# along with this program. If not, see <http://www.gnu.org/licenses/>.
20#
21##############################################################################
22
23from openupgrade import openupgrade
24
25
26@openupgrade.migrate()
27def migrate(cr, version):
28 """
29 * Clear context of hr.applicant ir.action.window
30 """
31 openupgrade.load_xml(
32 cr, 'hr_recruitment',
33 'migrations/7.0.1.0/data.xml'
34 )

Subscribers

People subscribed via source and target branches