[FIX] web: many2manytags - empty value when selected
The input value was not removed once the user added a tag
This commit is contained in:
@@ -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});
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user