Browse Source

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

pull/911/merge
Laurent Mignon (ACSONE) 8 years ago
committed by Jairo Llopis
parent
commit
859f054302
  1. 4
      web_notify/models/res_users.py

4
web_notify/models/res_users.py

@ -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):

Loading…
Cancel
Save