summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorXavierDo <xdo@odoo.com>2019-01-08 16:23:43 +0000
committerXavierDo <xdo@odoo.com>2019-01-09 09:30:05 +0000
commit80f3eb27f7a0ad0390eca6ac9b7bd03df71c4ec2 (patch)
tree0981fa8243aa23182b3b106fed20b8d00471f8f1 /addons
parenta57503bfd0de622aec314aa52e60224900bd600e (diff)
[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
Diffstat (limited to 'addons')
-rw-r--r--addons/mail/models/mail_activity.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/mail/models/mail_activity.py b/addons/mail/models/mail_activity.py
index 78cbfc65b20..2661fb819ee 100644
--- a/addons/mail/models/mail_activity.py
+++ b/addons/mail/models/mail_activity.py
@@ -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.')