[MERGE] fix view_form: m2m_tags: Overwrite onSetInputData to reset suggestions if input is empty for the last selection don't stay persistent.
bzr revid: chm@openerp.com-20121221140236-sbnsh0m6laqnxegd
This commit is contained in:
commit
fdfe8e04f8
|
@ -4015,6 +4015,14 @@ instance.web.form.FieldMany2ManyTags = instance.web.form.AbstractField.extend(in
|
|||
return item.name;
|
||||
},
|
||||
},
|
||||
core: {
|
||||
onSetInputData: function(e, data) {
|
||||
if (data == '') {
|
||||
this._plugins.autocomplete._suggestions = null;
|
||||
}
|
||||
this.input().val(data);
|
||||
},
|
||||
},
|
||||
},
|
||||
}).bind('getSuggestions', function(e, data) {
|
||||
var _this = this;
|
||||
|
|
Loading…
Reference in New Issue