[FIX] im_livechat: match_rules: backward-compatibility
Add a dummy 'match_rules()' function for backward-compatibility of commit
d8605b79, as 'match_rules()' was called from server-side 'im_livechat.loader'
template.
This commit is contained in:
@@ -200,6 +200,10 @@ class ImLivechatChannel(models.Model):
|
||||
info['options']["default_username"] = username
|
||||
return info
|
||||
|
||||
# FIXME: to remove in master
|
||||
@api.model
|
||||
def match_rules(self, request, channel_id, username='Visitor'):
|
||||
pass
|
||||
|
||||
class ImLivechatChannelRule(models.Model):
|
||||
""" Channel Rules
|
||||
|
||||
Reference in New Issue
Block a user