From 5e577d206f70afc8a115c49387eb5a84fbeb2915 Mon Sep 17 00:00:00 2001 From: lejeune quentin Date: Tue, 24 Jul 2018 16:46:28 +0200 Subject: [PATCH] [IMP] crm : Add link on email for salesman's group --- addons/crm/models/crm_lead.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/addons/crm/models/crm_lead.py b/addons/crm/models/crm_lead.py index 381e931ad86..a71e8b274b7 100644 --- a/addons/crm/models/crm_lead.py +++ b/addons/crm/models/crm_lead.py @@ -1113,6 +1113,9 @@ class Lead(models.Model): {'url': won_action, 'title': _('Won')}, {'url': lost_action, 'title': _('Lost')}] + if self.team_id: + salesman_actions.append({'url': self._notify_get_action_link('view', res_id=self.team_id.id, model=self.team_id._name), 'title': _('Sales Team Settings')}) + new_group = ( 'group_sale_salesman', lambda partner: bool(partner.user_ids) and any(user.has_group('sales_team.group_sale_salesman') for user in partner.user_ids), { 'actions': salesman_actions,