From 6aa27e644fc0727d9d8eec998fd360d01ae38701 Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Thu, 29 Oct 2015 08:58:11 +0100 Subject: [PATCH] [FIX] im_livechat: match_rule() expects an ID, not a record --- addons/im_livechat/models/im_livechat_channel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/im_livechat/models/im_livechat_channel.py b/addons/im_livechat/models/im_livechat_channel.py index 4ffb7e7246e..128a3de7220 100644 --- a/addons/im_livechat/models/im_livechat_channel.py +++ b/addons/im_livechat/models/im_livechat_channel.py @@ -199,7 +199,7 @@ class ImLivechatChannel(models.Model): if country_code: country_ids = self.env['res.country'].sudo().search([('code', '=', country_code)]) if country_ids: - country_id = country_ids[0] + country_id = country_ids[0].id # extract url url = request.httprequest.headers.get('Referer') or request.httprequest.base_url # find the match rule for the given country and url