[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:
parent
bb252f201e
commit
94fc45b7e7
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue