diff options
| author | niv-openerp <nicolas.vanhoren@openerp.com> | 2013-10-22 15:15:25 +0200 |
|---|---|---|
| committer | niv-openerp <nicolas.vanhoren@openerp.com> | 2013-10-22 15:15:25 +0200 |
| commit | 439cc0b94b5ea98a93d74fee552c5e5a9ca83bb7 (patch) | |
| tree | 57332dff0f79c28a8e4c09638294ae94bfb91811 /addons/web/static/src/xml | |
| parent | 969b45a1791cec4497ba85667532cf686a8fc55f (diff) | |
| parent | 02177329c92c159b75d9ce155af5be45ae1b9834 (diff) | |
[IMP] Altered behavior of form selection fields when used on many 2 one. Now it will query directly
the possible selections from the server instead of using the data sent by the fields_view_get. This
allows to dynamically change the possible values during edition with a domain on the selection field.
bzr revid: nicolas.vanhoren@openerp.com-20131022131525-d0i61sbm0w6katfs
Diffstat (limited to 'addons/web/static/src/xml')
| -rw-r--r-- | addons/web/static/src/xml/base.xml | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index 46241435fcf..f7cde7ce54d 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -1099,20 +1099,22 @@ </t> <t t-name="FieldSelection"> <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" - t-att-tabindex="widget.node.attrs.tabindex" - 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="widget.node.attrs.placeholder" t-if="option[0] === false and widget.node.attrs.placeholder"/> - <t t-esc="option[1]" t-if="option[0] !== false"/> - </option> - </t> - </select> </span> </t> +<t t-name="FieldSelectionSelect"> + <select t-if="!widget.get('effective_readonly')" + t-att-name="widget.name" + t-att-tabindex="widget.node.attrs.tabindex" + t-att-autofocus="widget.node.attrs.autofocus" + t-att-id="widget.id_for_label"> + <t t-foreach="widget.get('values')" t-as="option"> + <option> + <t t-esc="widget.node.attrs.placeholder" t-if="option[0] === false and widget.node.attrs.placeholder"/> + <t t-esc="option[1]" t-if="option[0] !== false"/> + </option> + </t> + </select> +</t> <t t-name="FieldRadio"> <span t-attf-class="oe_form_field oe_form_field_radio #{widget.options.horizontal ? 'oe_horizontal' : 'oe_vertical'}" t-att-style="widget.node.attrs.style"> <span t-if="!widget.get('effective_readonly')"> |
