summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml/base.xml
diff options
context:
space:
mode:
authorGery Debongnie <ged@openerp.com>2014-03-14 14:44:56 +0100
committerGery Debongnie <ged@openerp.com>2014-03-14 14:44:56 +0100
commitd849c6521d21d02e630179a4764888cd105cbe62 (patch)
tree0616acafc3f0cf86e457d8a9fa5cc8e0beeff1a9 /addons/web/static/src/xml/base.xml
parent500fc0790c9e4e1853a4457e00a1b87cbcf0011f (diff)
[IMP] removes the 'stat_button' widget and modifies button to fulfill that role. Now, a button with a class 'oe_stat_button' will be displayed differently (look in form views) (addon web). Also removes the useless widget x2many
bzr revid: ged@openerp.com-20140314134456-wy6ya3zz72zx3yo2
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
-rw-r--r--addons/web/static/src/xml/base.xml40
1 files changed, 21 insertions, 19 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml
index 5dd94644ff9..b24bd8642cc 100644
--- a/addons/web/static/src/xml/base.xml
+++ b/addons/web/static/src/xml/base.xml
@@ -1356,24 +1356,26 @@
</div>
</t>
<t t-name="WidgetButton">
- <button type="button" class="oe_button oe_form_button"
- t-att-style="widget.node.attrs.style"
- t-att-tabindex="widget.node.attrs.tabindex"
- t-att-autofocus="widget.node.attrs.autofocus"
- t-att-accesskey="widget.node.attrs.accesskey">
- <img t-if="widget.node.attrs.icon" t-att-src="_s + widget.node.attrs.icon" width="16" height="16"/>
- <span t-if="widget.string"><t t-esc="widget.string"/></span>
- </button>
-</t>
-<t t-name="StatButton">
- <label type="button" class="oe_stat_button btn btn-default"
- t-att-style="widget.node.attrs.style"
- t-att-tabindex="widget.node.attrs.tabindex"
- t-att-autofocus="widget.node.attrs.autofocus"
- t-att-accesskey="widget.node.attrs.accesskey">
- <t t-if="widget.icon"><div class="stat_button_icon"><t t-raw="widget.icon"/></div></t>
- <span t-if="widget.string"><t t-esc="widget.string"/></span>
- </label>
+ <t t-if="!widget.is_stat_button">
+ <button type="button" class="oe_button oe_form_button"
+ t-att-style="widget.node.attrs.style"
+ t-att-tabindex="widget.node.attrs.tabindex"
+ t-att-autofocus="widget.node.attrs.autofocus"
+ t-att-accesskey="widget.node.attrs.accesskey">
+ <img t-if="widget.node.attrs.icon" t-att-src="_s + widget.node.attrs.icon" width="16" height="16"/>
+ <span t-if="widget.string"><t t-esc="widget.string"/></span>
+ </button>
+ </t>
+ <t t-if="widget.is_stat_button">
+ <label type="button" class="oe_stat_button btn btn-default"
+ t-att-style="widget.node.attrs.style"
+ t-att-tabindex="widget.node.attrs.tabindex"
+ t-att-autofocus="widget.node.attrs.autofocus"
+ t-att-accesskey="widget.node.attrs.accesskey">
+ <t t-if="widget.icon"><div class="stat_button_icon"><t t-raw="widget.icon"/></div></t>
+ <span t-if="widget.string"><t t-esc="widget.string"/></span>
+ </label>
+ </t>
</t>
<t t-name="WidgetButton.tooltip" t-extend="WidgetLabel.tooltip">
<t t-jquery="div.oe_tooltip_string" t-operation="replace">
@@ -1945,7 +1947,7 @@
<t t-name="X2ManyCounter">
<a href="javascript:void(0)"><t t-esc="text"/></a>
</t>
-<t t-name="X2Many">
+<t t-name="StatInfo">
<div><t t-esc="text"/></div>
</t>
</templates>