diff options
| author | Juhil Somaiya <jso@odoo.com> | 2019-01-04 13:20:20 +0000 |
|---|---|---|
| committer | Martin Geubelle <mge@odoo.com> | 2019-04-24 09:57:56 +0000 |
| commit | 5dc971b1ae15a9f9e6e92914a3b0d98159c9a38f (patch) | |
| tree | 7d8f03f138ef3e50426db8dd01a4439bb68a5d27 /addons/web/static/src/xml/base.xml | |
| parent | 0aa4906843ff0565e4d9f9c212c4ff03bdfb7ff5 (diff) | |
[IMP] web, *: add a description to generic widgets
A `description` key has been added on AbstractField and all generic
field widgets ; it is used to display a more user friendly name (both in
the webclient and in Studio).
Non-generic field widgets have an empty string as description.
Related task 1918327
closes odoo/odoo#30131
Signed-off-by: Martin Geubelle (mge) <mge@openerp.com>
Co-authored-by: Mohammed Shekha <msh@openerp.com>
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
| -rw-r--r-- | addons/web/static/src/xml/base.xml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index 6d00f21ab6f..4ee2205b3a6 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -27,7 +27,13 @@ </li> <li t-if="widget.attrs.widget" data-item="widget"> <span class="oe_tooltip_technical_title">Widget:</span> - <t t-esc="widget.attrs.widget"/> + <t t-set="description" t-value="widget.attrs.Widget.prototype.description"/> + <t t-if="description"> + <t t-esc="description"/> (<t t-esc="widget.attrs.widget"/>) + </t> + <t t-else="1"> + <t t-esc="widget.attrs.widget"/> + </t> </li> <li t-if="widget.attrs.size || widget.field.size" data-item="size"> <span class="oe_tooltip_technical_title">Size:</span> |
