diff options
| author | Gery Debongnie <ged@openerp.com> | 2014-03-12 14:22:13 +0100 |
|---|---|---|
| committer | Gery Debongnie <ged@openerp.com> | 2014-03-12 14:22:13 +0100 |
| commit | 0a71d06be3909cfde8e3bd41752af2ba84dae023 (patch) | |
| tree | 1136cbbbc629060ed8bee1331078955d580a9931 /addons/web/static/src/xml | |
| parent | 36f2ff879a8726a86c7bab87ceec4657dbbf93b6 (diff) | |
[IMP] work in progress on stats buttons. The goal is to allow buttons with dynamic/statistical informations in form views (addon web)
bzr revid: ged@openerp.com-20140312132213-hclaw6jc87u220zq
Diffstat (limited to 'addons/web/static/src/xml')
| -rw-r--r-- | addons/web/static/src/xml/base.xml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index 80b82c1f40b..fa96fe1ac8a 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -1360,6 +1360,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 t-name="WidgetButton.tooltip" t-extend="WidgetLabel.tooltip"> <t t-jquery="div.oe_tooltip_string" t-operation="replace"> <div class="oe_tooltip_string" t-if="debug || widget.string"> |
