[FIX] im_livechat: fix emoji load on embed livechat

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) <did@odoo.com>
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
This commit is contained in:
tsm-odoo
2023-07-25 22:36:34 +02:00
parent ff1b3427fb
commit 4e344d02b0
+1 -1
View File
@@ -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()