summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml
diff options
context:
space:
mode:
authorJigar Amin - OpenERP <jam@tinyerp.com>2012-08-21 10:12:08 +0530
committerJigar Amin - OpenERP <jam@tinyerp.com>2012-08-21 10:12:08 +0530
commite221fcb516ff8099a061a648e80aac740ccaaa55 (patch)
treed44e50139a4b984c2909c0679fcde124e63b0e17 /addons/web/static/src/xml
parentc1b7de054cbc59fa93f367d46ab31e31eb794801 (diff)
parent0404db7742182d2dcd46f4d3319b6fb1ddbad1b3 (diff)
[MERGE] lp:openerp-web
bzr revid: jam@tinyerp.com-20120821044208-4n0fk3r8taj3gkfp
Diffstat (limited to 'addons/web/static/src/xml')
-rw-r--r--addons/web/static/src/xml/base.xml23
1 files changed, 9 insertions, 14 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml
index 61a1a834d0d..05d921bc679 100644
--- a/addons/web/static/src/xml/base.xml
+++ b/addons/web/static/src/xml/base.xml
@@ -1021,12 +1021,12 @@
<t t-name="FieldMany2One">
<span class="oe_form_field oe_form_field_many2one oe_form_field_with_button" t-att-style="widget.node.attrs.style">
<t t-if="widget.get('effective_readonly')">
- <a t-if="! widget.get_definition_options().no_open" href="#" class="oe_form_uri"/>
- <span t-if="widget.get_definition_options().no_open" href="#" class="oe_form_uri"/>
+ <a t-if="! widget.options.no_open" href="#" class="oe_form_uri"/>
+ <span t-if="widget.options.no_open" href="#" class="oe_form_uri"/>
<span class="oe_form_m2o_follow"/>
</t>
<t t-if="!widget.get('effective_readonly')">
- <a t-if="! widget.get_definition_options().no_open" href="#" tabindex="-1"
+ <a t-if="! widget.options.no_open" href="#" tabindex="-1"
class="oe_m2o_cm_button oe_e">/</a>
<div>
<input type="text"
@@ -1087,19 +1087,14 @@
</span>
</t>
<t t-name="FieldStatus">
- <ul class="" t-att-style="widget.node.attrs.style"/>
+ <ul t-att-class="widget.options.clickable ? 'oe_form_steps_clickable' : 'oe_form_steps'" t-att-style="widget.node.attrs.style"/>
</t>
<t t-name="FieldStatus.content">
- <t t-set="size" t-value="widget.to_show.length"/>
- <t t-foreach="_.range(size)" t-as="i">
- <li t-att-class="widget.to_show[i][0] === widget.selected_value ? 'oe_form_steps_active' : 'oe_form_steps_inactive'">
- <div class="oe_form_steps_button" t-att-data-id="widget.to_show[i][0]">
- <t t-esc="widget.to_show[i][1]"/>
- <span class="oe_form_steps_arrow">
- <span></span>
- </span>
- <img t-att-src='_s + "/web/static/src/img/form_steps.png"' class="oe_form_steps_arrow" t-if="i &lt; size - 1"/>
- </div>
+ <t t-foreach="widget.selection" t-as="i">
+ <li t-att-class="i[0] === widget.selected_value ? 'oe_active' : ''" t-att-data-id="i[0]">
+ <span class="label"><t t-esc="i[1]"/></span>
+ <!-- are you mit ? -->
+ <span class="arrow"><span></span></span>
</li>
</t>
</t>