mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
Don't store channel names since the perf gain is negligible and not worth additional database columns.
This commit is contained in:
committed by
Jairo Llopis
parent
08ae304da9
commit
859f054302
@@ -18,9 +18,9 @@ class ResUsers(models.Model):
|
|||||||
record.notify_warning_channel_name = 'notify_warning_%s' % res_id
|
record.notify_warning_channel_name = 'notify_warning_%s' % res_id
|
||||||
|
|
||||||
notify_info_channel_name = fields.Char(
|
notify_info_channel_name = fields.Char(
|
||||||
compute='_compute_channel_names', store=True)
|
compute='_compute_channel_names')
|
||||||
notify_warning_channel_name = fields.Char(
|
notify_warning_channel_name = fields.Char(
|
||||||
compute='_compute_channel_names', store=True)
|
compute='_compute_channel_names')
|
||||||
|
|
||||||
@api.multi
|
@api.multi
|
||||||
def notify_info(self, message, title=None, sticky=False):
|
def notify_info(self, message, title=None, sticky=False):
|
||||||
|
|||||||
Reference in New Issue
Block a user