[IMP] set atendee of phone call contact into meeting if it creates form the phonecall.

bzr revid: nco@tinyerp.com-20130529130119-nl0kdwo7lqkbo35w
This commit is contained in:
Pooja Zankhariya (OpenERP Trainee) 2013-05-29 18:31:19 +05:30 committed by Nimesh Contractor (OpenERP)
parent 608af8d06c
commit e9fbcae722
1 changed files with 2 additions and 1 deletions

View File

@ -261,11 +261,12 @@ class crm_phonecall(base_state, osv.osv):
res = self.pool.get('ir.actions.act_window').for_xml_id(cr, uid, 'base_calendar', 'action_crm_meeting', context)
res['context'] = {
'default_phonecall_id': phonecall.id,
'default_partner_id': phonecall.partner_id and phonecall.partner_id.id or False,
'default_user_id': uid,
'default_email_from': phonecall.email_from,
'default_name': phonecall.name,
}
if phonecall.partner_id and phonecall.partner_id.email:
res['context']['default_partner_ids']= [phonecall.partner_id] and [phonecall.partner_id.id] or False
return res
def action_button_convert2opportunity(self, cr, uid, ids, context=None):