[FIX] crm: fix undesired meetings via partner's smart button

- Create a Meeting for Contact X
- Go to Contacts and open Contact X
The Meetings smart button shows 1, but when clicking on it,
all user & partner meetings are displayed.

opw-2320299

closes odoo/odoo#56753

X-original-commit: 70f441a7ee3d46f6ba25cf56529a972b9e7ab29e
Signed-off-by: Anh Thao PHAM <kitan191@users.noreply.github.com>
This commit is contained in:
Anh Thao Pham (pta)
2020-08-28 15:56:01 +00:00
parent 590a088750
commit 08bede3d9d
+1
View File
@@ -81,6 +81,7 @@ class Partner(models.Model):
action['context'] = {
'default_partner_ids': partner_ids,
}
action['domain'] = [('id', 'in', self.meeting_ids.ids)]
return action
def action_view_opportunity(self):