summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2012-02-09 17:15:42 +0100
committerXavier Morel <xmo@openerp.com>2012-02-09 17:15:42 +0100
commit77065685caecf1dc00be2526b364d0639eae5aba (patch)
treed9e896e144948e7b398d8fd96e3f262971cfc71b /addons/web/static/src/xml
parent2d08b98ea4735dfaa54eac2ffd6c6b780bb02e66 (diff)
[FIX] don't blow up filters management if a filter uses an invalid syntax (or an unknown variable) and can't be evaluated
bzr revid: xmo@openerp.com-20120209161542-whs5ye637lijas26
Diffstat (limited to 'addons/web/static/src/xml')
-rw-r--r--addons/web/static/src/xml/base.xml5
1 files changed, 4 insertions, 1 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml
index 953593d9b39..8726e60323b 100644
--- a/addons/web/static/src/xml/base.xml
+++ b/addons/web/static/src/xml/base.xml
@@ -1279,7 +1279,10 @@
<option class="oe-filters-title" value="">Filters</option>
<optgroup label="-- Filters --">
<t t-foreach="filters" t-as="filter">
- <option t-attf-value="get:#{filter_index}"><t t-esc="filter.name"/></option>
+ <option t-attf-value="get:#{filter_index}"
+ t-att-disabled="filter.disabled and 'disabled'">
+ <t t-esc="filter.name"/>
+ </option>
</t>
</optgroup>
<optgroup label="-- Actions --">