From 4e344d02b047dafe352a3efd62f186207d088d4b Mon Sep 17 00:00:00 2001 From: tsm-odoo Date: Tue, 25 Jul 2023 11:24:35 +0000 Subject: [PATCH] [FIX] im_livechat: fix emoji load on embed livechat MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since [1], the `mail.assets_emoji` bundle is located in the web module and is named `web.assets_emoji`. This rename was done without taking into account the `get_emoji_bundle` route used by the livechat module. This PR fixes this issue. [1]: https://github.com/odoo/odoo/pull/125137 closes odoo/odoo#129661 X-original-commit: 75b18d35a84ad770c559ff0585cc4b9485399134 Signed-off-by: Didier Debondt (did) Signed-off-by: Alexandre Kühn (aku) --- 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 cc70438ebb3..efc047b838f 100644 --- a/addons/im_livechat/controllers/main.py +++ b/addons/im_livechat/controllers/main.py @@ -42,7 +42,7 @@ class LivechatController(http.Controller): @http.route('/im_livechat/emoji_bundle', type='http', auth='public', cors='*') def get_emoji_bundle(self): - bundle = 'mail.assets_emoji' + bundle = 'web.assets_emoji' asset = request.env["ir.qweb"]._get_asset_bundle(bundle) stream = request.env['ir.binary']._get_stream_from(asset.js()) return stream.get_response()