diff options
| author | Yannick Tivisse <yti@odoo.com> | 2017-01-27 14:49:14 +0100 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2017-01-31 13:16:20 +0100 |
| commit | adb484a1b5004e36d63fca5236de72b5c1cf064b (patch) | |
| tree | d253e20ffa51154b387289d5f8d7849aca2dfed1 /addons/web/static/src | |
| parent | 7b1d3dc030c4453f9dc54bec3fe7a1be20206cc1 (diff) | |
[IMP] web: add a 'close' terminology on FieldBooleanButton widget
This will be used on a sale_coupon_program
Diffstat (limited to 'addons/web/static/src')
| -rw-r--r-- | addons/web/static/src/js/views/form_widgets.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/addons/web/static/src/js/views/form_widgets.js b/addons/web/static/src/js/views/form_widgets.js index c445e3d6d31..e76da1eec30 100644 --- a/addons/web/static/src/js/views/form_widgets.js +++ b/addons/web/static/src/js/views/form_widgets.js @@ -697,6 +697,12 @@ var FieldBooleanButton = common.AbstractField.extend({ this.string_false = _t("Archived"); this.hover_false = _t("Restore"); break; + case "close": + this.string_true = _t("Active"); + this.string_false = _t("Closed"); + this.hover_true = _t("Close"); + this.hover_false = _t("Open"); + break; default: var terms = typeof this.options["terminology"] === 'string' ? {} : this.options["terminology"]; this.string_true = _t(terms.string_true || "On"); |
