summaryrefslogtreecommitdiff
path: root/addons/web/static/lib/qweb
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web/static/lib/qweb')
-rw-r--r--addons/web/static/lib/qweb/qweb-test-call.xml5
-rw-r--r--addons/web/static/lib/qweb/qweb2.js4
2 files changed, 7 insertions, 2 deletions
diff --git a/addons/web/static/lib/qweb/qweb-test-call.xml b/addons/web/static/lib/qweb/qweb-test-call.xml
index 783172c73bd..45a65eabce9 100644
--- a/addons/web/static/lib/qweb/qweb-test-call.xml
+++ b/addons/web/static/lib/qweb/qweb-test-call.xml
@@ -55,4 +55,9 @@
<result id="scoped-parameter">
ok
</result>
+
+ <t t-name="basic-caller">
+ <t t-call="{{True and '_basic-callee' or 'other'}}"/>
+ </t>
+ <result id="basic-caller">ok</result>
</templates>
diff --git a/addons/web/static/lib/qweb/qweb2.js b/addons/web/static/lib/qweb/qweb2.js
index 378c5eb6023..c4bb7128e9b 100644
--- a/addons/web/static/lib/qweb/qweb2.js
+++ b/addons/web/static/lib/qweb/qweb2.js
@@ -785,9 +785,9 @@ QWeb2.Element = (function() {
},
compile_action_call : function(value) {
if (this.children.length === 0) {
- return this.top("r.push(context.engine.tools.call(context, " + (this.engine.tools.js_escape(value)) + ", dict));");
+ return this.top("r.push(context.engine.tools.call(context, " + (this.string_interpolation(value)) + ", dict));");
} else {
- this.top("r.push(context.engine.tools.call(context, " + (this.engine.tools.js_escape(value)) + ", dict, null, function(context, dict) {");
+ this.top("r.push(context.engine.tools.call(context, " + (this.string_interpolation(value)) + ", dict, null, function(context, dict) {");
this.bottom("}));");
this.indent();
this.top("var r = [];");