From a58e00bcdbdbea525cd9684740bcb2a3f6b62c89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Maes?= Date: Wed, 9 Sep 2015 10:10:39 +0200 Subject: [PATCH] [FIX] im_livechat : anonymous_name should be the user name in case of portal user --- addons/im_livechat/controllers/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/im_livechat/controllers/main.py b/addons/im_livechat/controllers/main.py index d79f17182ac..1f8ec9ed36c 100644 --- a/addons/im_livechat/controllers/main.py +++ b/addons/im_livechat/controllers/main.py @@ -36,7 +36,7 @@ class LivechatController(http.Controller): anonymous_name = anonymous_name + " ("+request.session.geoip.get('country_name', "")+")" # if the user is identifiy (eg: portal user on the frontend), don't use the anonymous name. The user will be added to session. if request.session.uid: - anonymous_name = False + anonymous_name = request.env.user.name return request.env["im_livechat.channel"].get_mail_channel(channel_id, anonymous_name) @http.route('/im_livechat/feedback', type='json', auth='public')