[MERGE] forward port branch 11.0 up to 2835d29979

This commit is contained in:
Christophe Simonis
2018-03-20 11:45:11 +01:00
142 changed files with 1862 additions and 424 deletions
@@ -2007,8 +2007,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);
},