[FIX] Anonymous functions are not supported in expressions in QWeb2. Use t-js instead.

bzr revid: fme@openerp.com-20110504113024-i6nvw54fy5kkymzg
This commit is contained in:
Fabien Meghazi
2011-05-04 13:30:24 +02:00
parent 9ddb93fdd7
commit 2ec97d011b
+5 -2
View File
@@ -531,8 +531,11 @@
</div>
</t>
<t t-name="ViewManager.sidebar.internal">
<t t-set="the_condition" t-value="sections.length &gt; 0 &amp;&amp; _.detect(sections, function(x)
{return x.elements.length &gt; 0;}) != undefined"/>
<t t-js="d">
d.the_condition = d.sections.length &gt; 0 &amp;&amp; d._.detect(d.sections, function(x) {
return x.elements.length &gt; 0;
}) != undefined
</t>
<t t-if="the_condition">
<a class="toggle-sidebar"></a>
<div t-att-id="element_id" class="sidebar-sub-div">