From d8b9f70f2295d4e94a9bc26e976b1840fe5cdd23 Mon Sep 17 00:00:00 2001 From: Aaron Bohy Date: Fri, 12 Jan 2024 11:35:37 +0100 Subject: [PATCH] [FIX] im_livechat: fix env._t leftover Commit [1] replaced all uses of env._t by calling the _t function directly, and removed _t from the env. This commit adapts a forgotten occurrence. c07181b20bf4f06b783136ffdb3b7a304be6b136 opw 3664779 closes odoo/odoo#149176 Related: odoo/enterprise#54195 Signed-off-by: Samuel Degueldre (sad) --- addons/im_livechat/static/src/embed/external/boot.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/im_livechat/static/src/embed/external/boot.js b/addons/im_livechat/static/src/embed/external/boot.js index d347b157689..2653ed39566 100644 --- a/addons/im_livechat/static/src/embed/external/boot.js +++ b/addons/im_livechat/static/src/embed/external/boot.js @@ -7,6 +7,7 @@ import { serverUrl } from "@im_livechat/embed/common/livechat_data"; import { mount, whenReady } from "@odoo/owl"; import { templates } from "@web/core/assets"; +import { _t } from "@web/core/l10n/translation"; import { MainComponentsContainer } from "@web/core/main_components_container"; import { registry } from "@web/core/registry"; import { makeEnv, startServices } from "@web/env"; @@ -24,7 +25,7 @@ import { session } from "@web/session"; await mount(MainComponentsContainer, target, { env, templates, - translateFn: env._t, + translateFn: _t, dev: env.debug, }); })();