[FIX] don't display non-searchable (non-stored without a fnct_search) function fields

lp bug: https://launchpad.net/bugs/823049 fixed

bzr revid: xmo@openerp.com-20110908101406-f6r8bgt155nq65in
This commit is contained in:
Xavier Morel 2011-09-08 12:14:06 +02:00
parent 5b223f5961
commit bba27daf04
1 changed files with 2 additions and 1 deletions

View File

@ -1111,7 +1111,8 @@
<div t-att-id="element_id">
<select class="searchview_extended_prop_field">
<t t-foreach="attrs.fields" t-as="field">
<option t-att="{'selected': field === attrs.selected ? 'selected' : null}"
<option t-if="typeof field.store === 'undefined' || field.store || field.fnct_search"
t-att="{'selected': field === attrs.selected ? 'selected' : null}"
t-att-value="field.name">
<t t-esc="field.string"/>
</option>