[FIX] calendar: allow search on message_ids

When fixing calendar search for recurring events we assumed that
no autojoin field will be used in this search.

The filter unread messages is based on message_ids from mail thread.
The solution here is to redefine this field in calendar to remove the autojoin.
This commit is contained in:
XavierDo
2018-09-03 11:11:39 +02:00
parent 641fe7f34f
commit 0c07ff7f41
+3
View File
@@ -790,6 +790,9 @@ class Meeting(models.Model):
res_model = fields.Char('Document Model Name', related='res_model_id.model', readonly=True, store=True)
activity_ids = fields.One2many('mail.activity', 'calendar_event_id', string='Activities')
#redifine message_ids to remove autojoin to avoid search to crash in get_recurrent_ids
message_ids = fields.One2many(auto_join=False)
# RECURRENCE FIELD
rrule = fields.Char('Recurrent Rule', compute='_compute_rrule', inverse='_inverse_rrule', store=True)
rrule_type = fields.Selection([