[FIX] im_livechat: match_rule() expects an ID, not a record
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user