diff options
| author | Tejas Tank <tta@openerp.com> | 2012-11-05 15:16:02 +0530 |
|---|---|---|
| committer | Tejas Tank <tta@openerp.com> | 2012-11-05 15:16:02 +0530 |
| commit | dd12cbe1b6b284a00ec78efe54f25bc44cef2345 (patch) | |
| tree | fe120317892227af862c3180049da6db02d8061b /addons/web/static/src/xml/base.xml | |
| parent | df41b0ef2de67eb2934bada604f47d772769ae0b (diff) | |
[IMP] Selection field with placeholder feature.
bzr revid: tta@openerp.com-20121105094602-v2a4z4m4mighxgqw
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
| -rw-r--r-- | addons/web/static/src/xml/base.xml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index 275d31a9fde..d4b8674430e 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -993,6 +993,7 @@ <span class="oe_form_field oe_datepicker_root oe_form_field_datetime" t-att-style="widget.node.attrs.style"/> </t> <t t-name="FieldSelection"> + <t t-set="placeholder" t-value="! widget.get('effective_readonly') ? widget.node.attrs.placeholder : ''"/> <span class="oe_form_field oe_form_field_selection" t-att-style="widget.node.attrs.style"> <select t-if="!widget.get('effective_readonly')" t-att-name="widget.name" @@ -1000,7 +1001,7 @@ t-att-autofocus="widget.node.attrs.autofocus" t-att-id="widget.id_for_label"> <t t-foreach="widget.values" t-as="option"> - <option><t t-esc="option[1]"/></option> + <option><t t-esc="placeholder" t-if="option[0] == false"/><t t-esc="option[1]" t-if="option[0] != false"/></option> </t> </select> </span> |
