[FIX] crm: display only events linked to the actual opportunity
When an user clicks on the Meeting tab to open the calendar, it should onyl display the events linked to the opportunity. task-2665863 closes odoo/odoo#79860 X-original-commit: 5a6e6e9fdd5bc85e8c79c09ef17b63bf4b95dd39 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
This commit is contained in:
committed by
Jérémy Hennecart (jeh)
parent
c7a9519fe9
commit
ebf8c735cf
@@ -1034,6 +1034,7 @@ class Lead(models.Model):
|
||||
partner_ids.append(self.partner_id.id)
|
||||
current_opportunity_id = self.id if self.type == 'opportunity' else False
|
||||
action['context'] = {
|
||||
'search_default_opportunity_id': current_opportunity_id,
|
||||
'default_opportunity_id': current_opportunity_id,
|
||||
'default_partner_id': self.partner_id.id,
|
||||
'default_partner_ids': partner_ids,
|
||||
|
||||
Reference in New Issue
Block a user