[IMP]hr_recruitment: set relation with meeting

bzr revid: kjo@tinyerp.com-20120517120911-5jcg0bhnz4eo39xs
This commit is contained in:
Kuldeep Joshi (OpenERP) 2012-05-17 17:39:11 +05:30
parent 9c38b33774
commit 5009d29c72
2 changed files with 18 additions and 2 deletions

View File

@ -300,12 +300,13 @@ class hr_applicant(crm.crm_case, osv.osv):
if id3:
id3 = data_obj.browse(cr, uid, id3, context=context).res_id
context = {
context.update({
'default_applicant_id': opp.id,
'default_partner_id': opp.partner_id and opp.partner_id.id or False,
'default_email_from': opp.email_from,
'default_state': 'open',
'default_name': opp.name
}
})
value = {
'name': ('Meetings'),
'domain': "[('user_id','=',%s)]" % (uid),
@ -539,4 +540,10 @@ class hr_job(osv.osv):
}
hr_job()
class crm_meeting(osv.osv):
_inherit = 'crm.meeting'
_columns = {
'applicant_id': fields.many2one('hr.applicant','Previous Meeting'),
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -7,6 +7,15 @@
parent="hr.menu_hr_configuration"
sequence="40" />
<act_window
domain="[('applicant_id', '=', active_id)]"
id="act_hr_applicant_to_meeting"
name="Meetings"
res_model="crm.meeting"
src_model="hr.applicant"
view_mode="tree,form,calendar,graph"
view_type="form"/>
# ------------------------------------------------------
# Job Categories
# ------------------------------------------------------