[FIX] calendar: add index on access_token field

Since the access_token is used in the videocall_location route, it makes sense
to create an index on this column to allow faster lookup. This commit adds the
index to this field since it's creation in 15.3.

closes odoo/odoo#94714

X-original-commit: 3b753dc2f5fcac03f719cd16e9c0216bae83e9b7
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Signed-off-by: Leonardo Pavan Rocha <lpr@odoo.com>
This commit is contained in:
Leonardo Pavan Rocha
2022-06-27 19:48:20 +02:00
parent 4fe7c9ca97
commit e2ed69b798
+1 -1
View File
@@ -95,7 +95,7 @@ class Meeting(models.Model):
'res.partner', string='Scheduled by', related='user_id.partner_id', readonly=True)
location = fields.Char('Location', tracking=True, help="Location of Event")
videocall_location = fields.Char('Meeting URL', compute='_compute_videocall_location', store=True, copy=True)
access_token = fields.Char('Invitation Token', store=True, copy=False)
access_token = fields.Char('Invitation Token', store=True, copy=False, index=True)
videocall_source = fields.Selection([('discuss', 'Discuss'), ('custom', 'Custom')], compute='_compute_videocall_source')
videocall_channel_id = fields.Many2one('mail.channel', 'Discuss Channel')
# visibility