diff options
| author | Gery Debongnie <ged@openerp.com> | 2014-03-13 13:48:43 +0100 |
|---|---|---|
| committer | Gery Debongnie <ged@openerp.com> | 2014-03-13 13:48:43 +0100 |
| commit | d2637811dec84306ab80cc49f40a8b823d7984a6 (patch) | |
| tree | ac54e472fc7728df05afe1082bbf7f2384872b30 /addons/web/static/src/xml/base.xml | |
| parent | ee478106748e52b314ac80a69d34a9b50cc29e4f (diff) | |
[IMP] adds PercentPie and X2Many widgets to formview. PercentPie takes a field 'float' and displays a read-only pie chart to visualize the corresponding percent. X2Many takes a 1tomany or a manytomany field and display a read only string '<number of records> <label>'
bzr revid: ged@openerp.com-20140313124843-d4tc5zdz3lx2r8kt
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
| -rw-r--r-- | addons/web/static/src/xml/base.xml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index fa96fe1ac8a..5dd94644ff9 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -1188,6 +1188,11 @@ <span></span> </span> </t> +<t t-name="FieldPercentPie"> + <span id="prout" class="oe_form_field oe_form_field_percent_pie" t-att-style="widget.node.attrs.style"> + <svg></svg> + </span> +</t> <t t-name="FieldStatus"> <ul t-att-class="'oe_form_field_status ' + (widget.options.clickable ? 'oe_form_status_clickable' : 'oe_form_status')" t-att-style="widget.node.attrs.style"/> </t> @@ -1940,4 +1945,7 @@ <t t-name="X2ManyCounter"> <a href="javascript:void(0)"><t t-esc="text"/></a> </t> +<t t-name="X2Many"> + <div><t t-esc="text"/></div> +</t> </templates> |
