[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:
Christophe Matthieu 2012-12-21 15:02:36 +01:00
commit fdfe8e04f8
1 changed files with 8 additions and 0 deletions

View File

@ -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;