summaryrefslogtreecommitdiff
path: root/addons/im_livechat/controllers
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@odoo.com>2018-04-23 10:08:00 +0200
committerJeremy Kersten <jke@odoo.com>2018-06-15 08:42:15 +0200
commit9cd982bcc811cacb42f5c08db139043d2734b891 (patch)
treeca45b206dfdfa37cf5607175aad8016919581af9 /addons/im_livechat/controllers
parentb05e4d5f958892a9ff644b28a4ee165aeb2ea247 (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.py2
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