diff options
| author | Yogesh (OpenERP) <ysa@tinyerp.com> | 2011-11-09 13:22:06 +0530 |
|---|---|---|
| committer | Yogesh (OpenERP) <ysa@tinyerp.com> | 2011-11-09 13:22:06 +0530 |
| commit | 5e3a533f39f7783c4b3d29c0453601c2f0c48a75 (patch) | |
| tree | 3f8b8ba5be2fb08e362a455caa4e0441e89758c1 /addons/web/static/src/xml/base.xml | |
| parent | beb3aa9fbb43b430c45c066f11f1c406e6c66ecd (diff) | |
[IMP] vieweditor :- improve code in edit widget class.
bzr revid: ysa@tinyerp.com-20111109075206-s2k6s8t9n8ik1qu3
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
| -rw-r--r-- | addons/web/static/src/xml/base.xml | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index a0d8921d1b7..95bd6f663dd 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -1334,7 +1334,14 @@ <input type="text" t-att-id="widget.name" class="field_char" size="50"/> </t> <t t-name="vieweditor_selection"> - <select t-att-id="widget.name"/> + <select t-att-id="widget.name" > + <t t-foreach="widget.value" t-as="option"> + <option + t-att-value="typeof option === 'object' ? option[0] : option"> + <t t-esc="typeof option === 'object' ? option[1] : option"/> + </option> + </t> + </select> </t> <t t-name="vieweditor_boolean"> <input type="checkbox" t-att-id="widget.name"/> |
