[FIX] web: many2manytags - empty value when selected

The input value was not removed once the user added a tag
This commit is contained in:
qsm-odoo
2015-07-07 10:44:15 +02:00
parent b2176210d9
commit fe1541abeb
@@ -284,8 +284,8 @@ var FieldMany2One = common.AbstractField.extend(common.CompletionFieldMixin, com
item.action();
// Cancel widget blurring, to avoid form blur event
self.trigger('focused');
return false;
}
return false;
},
focus: function(e, ui) {
e.preventDefault();
@@ -1353,10 +1353,7 @@ var FieldMany2ManyTags = AbstractManyField.extend(common.CompletionFieldMixin, c
var newValue = this.many2one.get('value');
if(newValue) {
this.add_id(newValue);
var self = this;
setTimeout(function() {
self.many2one.$input.val('');
}, 0);
this.many2one.set({'value': false});
}
});