From d2574b7018c2ff9ae140ce2a9728479a8b5ed7df Mon Sep 17 00:00:00 2001 From: Aaron Bohy Date: Tue, 9 Feb 2016 14:52:25 +0100 Subject: [PATCH] [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. --- addons/im_livechat/models/im_livechat_channel.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/addons/im_livechat/models/im_livechat_channel.py b/addons/im_livechat/models/im_livechat_channel.py index c4f66518c50..061b94fcc69 100644 --- a/addons/im_livechat/models/im_livechat_channel.py +++ b/addons/im_livechat/models/im_livechat_channel.py @@ -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