diff options
| author | Christophe Matthieu <chm@openerp.com> | 2012-12-21 15:02:36 +0100 |
|---|---|---|
| committer | Christophe Matthieu <chm@openerp.com> | 2012-12-21 15:02:36 +0100 |
| commit | fdfe8e04f8ec60b8bdf461a9e2c5955452d03a28 (patch) | |
| tree | 9d8bd5f9a9ff81bb10d7027c971cbf919582494b | |
| parent | e9f9e1191ca4e782d8014a4ba13a1feedf3fc4d7 (diff) | |
| parent | b04a134a16e2559b594a536276928ef9cc6f56a4 (diff) | |
[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
| -rw-r--r-- | addons/web/static/src/js/view_form.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/addons/web/static/src/js/view_form.js b/addons/web/static/src/js/view_form.js index 1e8362b6773..e35a01f5ab0 100644 --- a/addons/web/static/src/js/view_form.js +++ b/addons/web/static/src/js/view_form.js @@ -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; |
