diff --git a/addons/crm/crm_lead.py b/addons/crm/crm_lead.py index 992e4f365ea..d142b4aa403 100644 --- a/addons/crm/crm_lead.py +++ b/addons/crm/crm_lead.py @@ -330,7 +330,7 @@ class crm_lead(format_address, osv.osv): """ When changing the user, also set a section_id or restrict section id to the ones user_id is member of. """ section_id = self._get_default_section_id(cr, uid, user_id=user_id, context=context) or False - if user_id and not section_id: + if user_id and self.pool['res.users'].has_group(cr, uid, 'base.group_multi_salesteams') and not section_id: section_ids = self.pool.get('crm.case.section').search(cr, uid, ['|', ('user_id', '=', user_id), ('member_ids', '=', user_id)], context=context) if section_ids: section_id = section_ids[0]