[MIG] web_m2x_options: Migration to 12.0

This commit is contained in:
Gusti Tammam
2018-10-19 08:00:16 +07:00
committed by Germana
parent 91637fe2d5
commit d186fb45b0
3 changed files with 14 additions and 8 deletions

View File

@@ -353,7 +353,7 @@ odoo.define('web_m2x_options.web_m2x_options', function (require) {
}
}
},
})
});
FormFieldMany2ManyTags.include({
events: _.extend({}, FormFieldMany2ManyTags.prototype.events, {
@@ -368,6 +368,9 @@ odoo.define('web_m2x_options.web_m2x_options', function (require) {
this._super.apply(this, arguments);
if (!open && !no_color_picker) {
this._onOpenColorPicker(event);
} else {
event.preventDefault();
event.stopPropagation();
}
},
});