[FIX] mail: add index on mail.activity create_uid

The activity create_user_id field is now replaced by magic create_uid field.
Since most of the search are done on this field, create_uid should be indexed as
create_user_id was.

closes odoo/odoo#30061
This commit is contained in:
XavierDo
2019-01-09 09:30:05 +00:00
parent a57503bfd0
commit 80f3eb27f7
+1
View File
@@ -36,6 +36,7 @@ class MailActivityType(models.Model):
summary = fields.Char('Summary', translate=True)
sequence = fields.Integer('Sequence', default=10)
active = fields.Boolean(default=True)
create_uid = fields.Many2one('res.users', index=True)
delay_count = fields.Integer(
'After', default=0, oldname='days',
help='Number of days/week/month before executing the action. It allows to plan the action deadline.')