From 25634df8f2809313e2fd1620be59908486aa8b3d Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Mon, 5 Oct 2015 12:14:33 +0200 Subject: [PATCH] [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 --- addons/crm/crm_phonecall.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/crm/crm_phonecall.py b/addons/crm/crm_phonecall.py index b983dbfd4b3..62caae9206b 100644 --- a/addons/crm/crm_phonecall.py +++ b/addons/crm/crm_phonecall.py @@ -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)