diff options
| author | Christophe Matthieu <chm@odoo.com> | 2018-04-23 10:08:00 +0200 |
|---|---|---|
| committer | Jeremy Kersten <jke@odoo.com> | 2018-06-15 08:42:15 +0200 |
| commit | 9cd982bcc811cacb42f5c08db139043d2734b891 (patch) | |
| tree | ca45b206dfdfa37cf5607175aad8016919581af9 /addons/im_livechat/controllers | |
| parent | b05e4d5f958892a9ff644b28a4ee165aeb2ea247 (diff) | |
[FIX] qweb: use cdn for asset files
Refactoring of qweb to call _post_processing_att for each nodes. This
change remove the crappy ovewrite in website module. The website overwrite
only the _post_processing_att to add the cdn parameters.
The static node (without t- attributes) can stay static (remove overwrite
of _is_static_node), the cdn is applied at the compile time for this
nodes instead of at the running time like the dynamic node.
Diffstat (limited to 'addons/im_livechat/controllers')
| -rw-r--r-- | addons/im_livechat/controllers/main.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/im_livechat/controllers/main.py b/addons/im_livechat/controllers/main.py index 805b6ba797a..14df16fb6c3 100644 --- a/addons/im_livechat/controllers/main.py +++ b/addons/im_livechat/controllers/main.py @@ -16,7 +16,7 @@ class LivechatController(http.Controller): # _get_asset return the bundle html code (script and link list) but we want to use the attachment content xmlid = 'im_livechat.external_lib' files, remains = request.env["ir.qweb"]._get_asset_content(xmlid, options=request.context) - asset = AssetsBundle(xmlid, files, remains) + asset = AssetsBundle(xmlid, files) mock_attachment = getattr(asset, ext)() if isinstance(mock_attachment, list): # suppose that CSS asset will not required to be split in pages |
