diff options
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/im_livechat/models/im_livechat_channel.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/addons/im_livechat/models/im_livechat_channel.py b/addons/im_livechat/models/im_livechat_channel.py index a79734a92ef..0938b6bff6f 100644 --- a/addons/im_livechat/models/im_livechat_channel.py +++ b/addons/im_livechat/models/im_livechat_channel.py @@ -4,7 +4,7 @@ import base64 import random import re -from odoo import api, fields, models, modules +from odoo import api, fields, models, modules, _ class ImLivechatChannel(models.Model): @@ -225,6 +225,8 @@ class ImLivechatChannel(models.Model): def get_livechat_info(self, username='Visitor'): self.ensure_one() + if username == 'Visitor': + username = _('Visitor') info = {} info['available'] = len(self._get_available_users()) > 0 info['server_url'] = self.env['ir.config_parameter'].sudo().get_param('web.base.url') |
