diff options
| author | Raphael Collet <rco@openerp.com> | 2015-08-28 11:37:30 +0200 |
|---|---|---|
| committer | Raphael Collet <rco@openerp.com> | 2015-08-28 13:54:57 +0200 |
| commit | d2b9015255942902c495e6bac27e38692be7140c (patch) | |
| tree | b741fbf4e25ab95672bb79a53758b16148066608 /addons/web/static/src/xml/base.xml | |
| parent | f6a4f5c05f465bd01c99fc5885848f5484987652 (diff) | |
[IMP] web: in `boolean_button`, move options to inner elements to handle translations
In practice, we replace:
<field name="active" widget="boolean_button"
options='{"true": "Active", "false": "Inactive"}'/>
by:
<field name="active" widget="boolean_button">
<span class="o_stat_text o_true text-success">Active</span>
<span class="o_stat_text o_false text-danger">Inactive</span>
</field>
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
| -rw-r--r-- | addons/web/static/src/xml/base.xml | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index bbed4b59880..cb698908cd8 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -1436,9 +1436,6 @@ <img t-attf-src="#{_s}/web/static/src/img/icons/#{widget.icon}" t-att-alt="widget.string"/> </button> -<div t-name="BooleanButton" class="o_stat_info is_true"> - <span class="o_stat_text oe_true text-success"><t t-esc="widget.true_string"/></span> - <span class="o_stat_text oe_false text-danger"><t t-esc="widget.false_string"/></span> -</div> +<div t-name="BooleanButton" class="o_stat_info is_true"/> </templates> |
