3
0
Fork 0

Don't store channel names since the perf gain is negligible and not worth additional database columns.

9.0
Laurent Mignon (ACSONE) 2016-09-21 15:26:27 +02:00
parent acb8ce6ff4
commit 80674a6241
1 changed files with 2 additions and 2 deletions

View File

@ -18,9 +18,9 @@ class ResUsers(models.Model):
record.notify_warning_channel_name = 'notify_warning_%s' % res_id
notify_info_channel_name = fields.Char(
compute='_compute_channel_names', store=True)
compute='_compute_channel_names')
notify_warning_channel_name = fields.Char(
compute='_compute_channel_names', store=True)
compute='_compute_channel_names')
@api.multi
def notify_info(self, message, title=None, sticky=False):