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