Skip to content
Snippets Groups Projects
Commit 32053a5b authored by Thibault Delavallée's avatar Thibault Delavallée
Browse files

[FIX] res_partner: Meetings button on form view was not correctly

filtering displayed meetings according to the selected partner.
parent f5c60d48
Branches
Tags
No related merge requests found
......@@ -88,16 +88,11 @@ class res_partner(osv.osv):
return opportunity_ids
def schedule_meeting(self, cr, uid, ids, context=None):
if context is None:
context = {}
partner_ids = list(ids)
partner_ids.append(self.pool.get('res.users').browse(cr, uid, uid).partner_id.id)
res = self.pool.get('ir.actions.act_window').for_xml_id(cr, uid, 'calendar', 'action_calendar_event', context)
res['context'] = {
'default_partner_id': ids and ids[0] or False,
'search_default_partner_ids': list(ids),
'default_partner_ids': partner_ids,
}
return res
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment