diff options
| author | Christophe Matthieu <chm@odoo.com> | 2015-10-05 12:26:51 +0200 |
|---|---|---|
| committer | Christophe Matthieu <chm@odoo.com> | 2015-10-12 12:21:22 +0200 |
| commit | 8e245904f5e92aff64cc8f4b3927b829b50c55e9 (patch) | |
| tree | e9e91977cb79a59372dcb0169eba31b980939e95 /addons/web/static | |
| parent | 77e18a4800400a11f9c550654327a081e6c6d20b (diff) | |
[FIX] web: many2many_tags: blacklist selected ids in the dropdown
Issue: already selected ids are not filtered in the many2one and appear in the dropdown (but can't be select because the item are already selected)
Diffstat (limited to 'addons/web/static')
| -rw-r--r-- | addons/web/static/src/js/views/form_relational_widgets.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/addons/web/static/src/js/views/form_relational_widgets.js b/addons/web/static/src/js/views/form_relational_widgets.js index ba6573ed306..1f1e7351005 100644 --- a/addons/web/static/src/js/views/form_relational_widgets.js +++ b/addons/web/static/src/js/views/form_relational_widgets.js @@ -1409,6 +1409,9 @@ var FieldMany2ManyTags = AbstractManyField.extend(common.CompletionFieldMixin, c } } }); + this.many2one.get_search_blacklist = function () { + return self.get('value'); + }; } }, destroy_content: function() { |
