From 6539104a4fc5f34b5f236877e6a7e3ee80af3db6 Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Fri, 20 Feb 2015 16:10:23 +0100 Subject: [PATCH] [FIX] calendar: add followers to recurrent events default_get method of mail.wizard.invite model uses the key 'default_res_id' to retrieve the res_id of the record to add the followers. In the case of recurrent events, virtual ids are used, and the conversion from virtual ids to real ids is needed. --- addons/calendar/calendar.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/calendar/calendar.py b/addons/calendar/calendar.py index c394fd5807a..a6ce57dfd27 100644 --- a/addons/calendar/calendar.py +++ b/addons/calendar/calendar.py @@ -1825,6 +1825,8 @@ class invite_wizard(osv.osv_memory): ''' in case someone clicked on 'invite others' wizard in the followers widget, transform virtual ids in real ids ''' + if 'default_res_id' in context: + context['default_res_id'] = get_real_ids(context['default_res_id']) result = super(invite_wizard, self).default_get(cr, uid, fields, context=context) if 'res_id' in result: result['res_id'] = get_real_ids(result['res_id'])