[IMP] web: add a 'close' terminology on FieldBooleanButton widget

This will be used on a sale_coupon_program
This commit is contained in:
Yannick Tivisse
2017-01-31 13:16:20 +01:00
parent 7b1d3dc030
commit adb484a1b5
@@ -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");