summaryrefslogtreecommitdiff
path: root/addons/calendar
diff options
context:
space:
mode:
authorUrvi Soni <uso@odoo.com>2020-11-26 12:58:42 +0000
committerBarad Mahendra <mba@openerp.com>2020-12-02 09:35:06 +0000
commit03fc6e0276d93267efe0a23cf6209816188ce730 (patch)
tree40552a223824200381bd53ebfd11d19bb163c714 /addons/calendar
parent484bcef82cec785b9917634680dea90cb56247e4 (diff)
[FIX] calendar: Fix the 'my meetings' filter
When we try 'My Meetings' filter in the Calendar module, it can't filter out the meetings that the user is attending. Steps to reproduce: go to calendar > list view > filters > my meetings Previously the filter was worked based on context `mymeetings` on search_read but during the refactoring of the calendar that is removed. So in this commit, add domain based on user_ids to filter the my meetings. closes odoo/odoo#62524 Taskid: 2389382 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Diffstat (limited to 'addons/calendar')
-rw-r--r--addons/calendar/views/calendar_views.xml3
1 files changed, 1 insertions, 2 deletions
diff --git a/addons/calendar/views/calendar_views.xml b/addons/calendar/views/calendar_views.xml
index 2bef5742a86..7745e3d9203 100644
--- a/addons/calendar/views/calendar_views.xml
+++ b/addons/calendar/views/calendar_views.xml
@@ -278,8 +278,7 @@
<field name="categ_ids"/>
<field name="user_id"/>
<field name="show_as"/>
- <!-- TODO clean this filter and context key -->
- <filter string="My Meetings" help="My Meetings" name="mymeetings" context='{"mymeetings": 1}'/>
+ <filter string="My Meetings" help="My Meetings" name="mymeetings" domain="[('partner_ids.user_ids', 'in', [uid])]"/>
<separator/>
<filter string="Date" name="filter_start_date" date="start_date"/>
<separator/>