diff options
| author | Nicolas Lempereur <nle@odoo.com> | 2020-11-06 12:47:25 +0000 |
|---|---|---|
| committer | Nicolas Lempereur <nle@odoo.com> | 2020-11-12 16:24:54 +0000 |
| commit | eb6e03908bfb6ed8bbe231da2a4422ec2e149834 (patch) | |
| tree | 027bfc9a8878a87cb4a4adb4d761f1d6b26e497f /addons | |
| parent | abbf88770442bded27b5e490ce3d3e1a7025dc04 (diff) | |
[FIX] crm: show newly created meetings in calendar
When clicking on the stat button "Meetings" on a contact:
- before dac91bc18 (November 2019): only meetings with participant
matching contact name are shown
- after dac91bc18 (November 2019): all meetings are shown => this was
because the view was used to create new meeting, so it makes sense to
see other meetings and not have a conflict.
- after 16206d72 (August 2020): only meeting of the contact are shown
- after 7449c8a6 and d11fb611 (November 2020): more complicated logic
that will also show partner events, and child partner events.
Since August 2020, when you create a new event, since we are showing a
list of IDs at the time the button was clicked, the new event will not
appear unless you go back to the contact, then click on "Meetings" anew.
With this changeset, we still show a list of IDs, but add an alternative
to also show the events of the current partner (that should be in the
list of IDs, but will match new events).
opw-2374021
closes #61490
closes odoo/odoo#61497
X-original-commit: 7ff3e9abf08f7f896f31119247157cce5764b431
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/crm/models/res_partner.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/crm/models/res_partner.py b/addons/crm/models/res_partner.py index 03e76b810c7..daa354e03d5 100644 --- a/addons/crm/models/res_partner.py +++ b/addons/crm/models/res_partner.py @@ -100,7 +100,7 @@ class Partner(models.Model): action['context'] = { 'default_partner_ids': partner_ids, } - action['domain'] = [('id', 'in', self._compute_meeting()[self.id])] + action['domain'] = ['|', ('id', 'in', self._compute_meeting()[self.id]), ('partner_ids', 'in', self.ids)] return action def action_view_opportunity(self): |
