[FIX] mail: correct search for records without next activity date
`date_deadline` being required, search for records without deadline is actually searching for records without next activities.
This commit is contained in:
@@ -363,6 +363,8 @@ class MailActivityMixin(models.AbstractModel):
|
||||
record.activity_date_deadline = record.activity_ids[:1].date_deadline
|
||||
|
||||
def _search_activity_date_deadline(self, operator, operand):
|
||||
if operator == '=' and not operand:
|
||||
return [('activity_ids', '=', False)]
|
||||
return [('activity_ids.date_deadline', operator, operand)]
|
||||
|
||||
@api.model
|
||||
|
||||
Reference in New Issue
Block a user