From 824b6cf02e79e4de12300467473a43a5cf6a177e Mon Sep 17 00:00:00 2001 From: Prakash Prajapati Date: Tue, 3 Dec 2019 06:35:07 +0000 Subject: [PATCH] [FIX] calendar: fix archive ribbon on private event When the event is private and some other user going to see the event at that time it was going to display the archived ribbon because the active field was not in the list of public fields(readable field). so added an active field to the readable list so it will display the propper archive ribbon on a private event. Task-2144553 closes odoo/odoo#41589 Closes: #41157 X-original-commit: c1b89567ca3fdd6f4004389aad345ad3e52248c3 Signed-off-by: Yannick Tivisse (yti) --- addons/calendar/models/calendar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/calendar/models/calendar.py b/addons/calendar/models/calendar.py index a850a0c29f3..3e0f671cfac 100644 --- a/addons/calendar/models/calendar.py +++ b/addons/calendar/models/calendar.py @@ -1690,7 +1690,7 @@ class Meeting(models.Model): if r['privacy'] == 'private': for f in r: recurrent_fields = self._get_recurrent_fields() - public_fields = list(set(recurrent_fields + ['id', 'allday', 'start', 'stop', 'display_start', 'display_stop', 'duration', 'user_id', 'state', 'interval', 'count', 'recurrent_id_date', 'rrule'])) + public_fields = list(set(recurrent_fields + ['id', 'active', 'allday', 'start', 'stop', 'display_start', 'display_stop', 'duration', 'user_id', 'state', 'interval', 'count', 'recurrent_id_date', 'rrule'])) if f not in public_fields: if isinstance(r[f], list): r[f] = []