[FIX] mass_mailing: create an index on mail_mail_statisctics.mail_mail_id

As deletion of mail.mail records is frequent, we need to have an index
on this column to speed up deletion
This commit is contained in:
Christophe Simonis 2015-05-05 14:40:07 +02:00
parent bb252f201e
commit 94fc45b7e7
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ class MailMailStats(osv.Model):
_order = 'message_id'
_columns = {
'mail_mail_id': fields.many2one('mail.mail', 'Mail', ondelete='set null'),
'mail_mail_id': fields.many2one('mail.mail', 'Mail', ondelete='set null', select=True),
'mail_mail_id_int': fields.integer(
'Mail ID (tech)',
help='ID of the related mail_mail. This field is an integer field because'