[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.
c07181b20b
opw 3664779
closes odoo/odoo#149176
Related: odoo/enterprise#54195
Signed-off-by: Samuel Degueldre (sad) <sad@odoo.com>
This commit is contained in:
+2
-1
@@ -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,
|
||||
});
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user