From e36ffa8a55eff6addd26e9e55d1673458599c6af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Maes?= Date: Mon, 23 Mar 2015 11:14:02 +0100 Subject: [PATCH] [FIX] im_livechat : fix rule matching according to the country code found with GeoIP --- addons/im_livechat/controllers/livechat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/im_livechat/controllers/livechat.py b/addons/im_livechat/controllers/livechat.py index c3015d33f87..47129d8116a 100644 --- a/addons/im_livechat/controllers/livechat.py +++ b/addons/im_livechat/controllers/livechat.py @@ -27,7 +27,7 @@ class LivechatController(http.Controller): info["username"] = kwargs.get("username", "Visitor") # find the country from the request country_id = False - country_code = request.session.geoip and request.session.geoip.get('country_name') or False + country_code = request.session.geoip and request.session.geoip.get('country_code') or False if country_code: country_ids = registry.get('res.country').search(cr, uid, [('code', '=', country_code)], context=context) if country_ids: