[FIX] crm: meeting from a logged phone call

The user creating the event should be by default in the attendees (to see the event
he just created in his calendar) and the contact on the logged call
should also be in the attendees by default.

opw:650556
This commit is contained in:
Goffin Simon 2015-10-05 12:14:33 +02:00
parent 91d54a0d7d
commit 25634df8f2
1 changed files with 1 additions and 1 deletions

View File

@ -266,7 +266,7 @@ class crm_phonecall(osv.osv):
Open meeting's calendar view to schedule a meeting on current phonecall.
:return dict: dictionary value for created meeting view
"""
partner_ids = []
partner_ids = [self.pool['res.users'].browse(cr, uid, uid, context=context).partner_id.id]
phonecall = self.browse(cr, uid, ids[0], context)
if phonecall.partner_id and phonecall.partner_id.email:
partner_ids.append(phonecall.partner_id.id)