[FIX] website_livechat: load im_livechat i18n
As authenticated user, join the website livechat. As a portal user, start a livechat. Close it, it asks you to review the chat but all messages are displayed in english. opw-1958819 closes odoo/odoo#32629 Signed-off-by: Julien Castiaux <Julien00859@users.noreply.github.com>
This commit is contained in:
@@ -2,4 +2,5 @@
|
||||
|
||||
from . import im_livechat
|
||||
from . import website
|
||||
from . import res_config_settings
|
||||
from . import res_config_settings
|
||||
from . import ir_http
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from odoo import api, fields, models
|
||||
from odoo.osv import expression
|
||||
|
||||
|
||||
class IrHttp(models.AbstractModel):
|
||||
_inherit = 'ir.http'
|
||||
|
||||
@classmethod
|
||||
def _get_translation_frontend_modules_domain(cls):
|
||||
domain = super(IrHttp, cls)._get_translation_frontend_modules_domain()
|
||||
return expression.OR([domain, [('name', '=', 'im_livechat')]])
|
||||
|
||||
Reference in New Issue
Block a user