diff options
| author | Christophe Matthieu <chm@openerp.com> | 2013-03-29 12:38:27 +0100 |
|---|---|---|
| committer | Christophe Matthieu <chm@openerp.com> | 2013-03-29 12:38:27 +0100 |
| commit | e3d1e4fb44a1958b8d135dd892b950a306c9e77a (patch) | |
| tree | de3714d2e05d72bbed5d83843be79302f084a14b /addons/web/static/src/xml | |
| parent | 2653bcf329ebe2d5eb9e94247440d6c3d17a8f2a (diff) | |
[IMP] view_form: radio button for many2one
bzr revid: chm@openerp.com-20130329113827-me6d3ho6jrp525f0
Diffstat (limited to 'addons/web/static/src/xml')
| -rw-r--r-- | addons/web/static/src/xml/base.xml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index 41067240b52..e74ff0bb796 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -1114,20 +1114,20 @@ <t t-name="FieldRadio"> <span t-attf-class="oe_form_field oe_form_field_radio #{widget.horizontal ? 'oe_horizontal' : 'oe_vertical'}" t-att-style="widget.node.attrs.style"> <t t-if="widget.horizontal"> - <t t-set="width" t-value="Math.floor(100 / widget.field.selection.length)"/> + <t t-set="width" t-value="Math.floor(100 / widget.selection.length)"/> <t t-if="!widget.no_radiolabel"> - <t t-foreach="widget.field.selection" t-as="selection"> + <t t-foreach="widget.selection" t-as="selection"> <div class="oe_radio_header" t-att-style="'width: ' + width + '%;'"><t t-esc="selection[1]"/></div> </t> <br/> </t> - <t t-foreach="widget.field.selection" t-as="selection"> + <t t-foreach="widget.selection" t-as="selection"> <div class="oe_radio_input" t-att-style="'width: ' + width + '%;'" t-att-data-id="selection[0]">&nbsp;</div> </t> </t> <t t-if="!widget.horizontal"> - <t t-foreach="widget.field.selection" t-as="selection"> - <div class="oe_radio_header" t-att-style="'width: ' + width + '%;'" t-att-data-id="selection[0]"> + <t t-foreach="widget.selection" t-as="selection"> + <div class="oe_radio_header" t-att-data-id="selection[0]"> <div class="oe_radio_input">&nbsp;</div><t t-if="!widget.no_radiolabel" t-esc="selection[1]"/> </div> </t> |
