[MERGE] forward port branch saas-11.2 up to 500e3f4970

This commit is contained in:
Christophe Simonis
2018-03-21 11:04:48 +01:00
154 changed files with 2438 additions and 540 deletions
@@ -2062,8 +2062,9 @@ var FieldToggleBoolean = AbstractField.extend({
* @private
*/
_render: function () {
var className = this.value ? 'o_toggle_button_success' : 'text-muted';
this.$('i').addClass('fa fa-circle ' + className);
this.$('i')
.toggleClass('o_toggle_button_success', !!this.value)
.toggleClass('text-muted', !this.value);
var title = this.value ? this.attrs.options.active : this.attrs.options.inactive;
this.$el.attr('title', title);
},