[FIX] website: make the 'include assets bundle' option of ace editor work

Commit which added summernote broke the ace editor with a strange
change: https://github.com/odoo/odoo/commit/9069d0127c176317436b67b23ae5677dd9d53de7#diff-e9d66a1b466f404be082fa00519eafa5L140.

With this change instead of not including the assets bundles in the ace
editor and allowing to see them by checking the option, the assets
bundles were included when NOT in debug mode and not included when in
debug mode.
This commit is contained in:
qsm-odoo
2016-10-24 17:22:05 +02:00
parent 1d00e3221d
commit 389574e550
+1 -1
View File
@@ -137,7 +137,7 @@
var args = {
key: $(document.documentElement).data('view-xmlid'),
full: true,
bundles: !!$('script[src*=".assets_common"]').length
bundles: this.$('.js_include_bundles')[0].checked
};
return openerp
.jsonRpc('/website/customize_template_get', 'call', args)