diff --git a/tryton/tryton/gui/window/view_form/view/form_gtk/many2many.py b/tryton/tryton/gui/window/view_form/view/form_gtk/many2many.py index 5b6f12e5ce..d51aa5b896 100644 --- a/tryton/tryton/gui/window/view_form/view/form_gtk/many2many.py +++ b/tryton/tryton/gui/window/view_form/view/form_gtk/many2many.py @@ -188,13 +188,7 @@ class Many2Many(Widget): new=self.create_access, title=self.attrs.get('string')) win.screen.search_filter(quote(value)) - if len(win.screen.group) == 1: - callback([ - (r.id, r.value.get('rec_name', '')) - for r in win.screen.group]) - win.destroy() - else: - win.show() + win.show() def _sig_remove(self, *args): self.screen.remove(remove=True) diff --git a/tryton/tryton/gui/window/view_form/view/form_gtk/many2one.py b/tryton/tryton/gui/window/view_form/view/form_gtk/many2one.py index 6a548ccf75..b3ca511291 100644 --- a/tryton/tryton/gui/window/view_form/view/form_gtk/many2one.py +++ b/tryton/tryton/gui/window/view_form/view/form_gtk/many2one.py @@ -137,13 +137,7 @@ class Many2One(Widget): title=self.attrs.get('string'), exclude_field=self.attrs.get('relation_field')) win.screen.search_filter(quote(text)) - if len(win.screen.group) == 1: - callback([ - (r.id, r.value.get('rec_name', '')) - for r in win.screen.group]) - win.destroy() - else: - win.show() + win.show() return self.focus_out = True self.changed = True diff --git a/tryton/tryton/gui/window/view_form/view/list_gtk/widget.py b/tryton/tryton/gui/window/view_form/view/list_gtk/widget.py index 468d940116..ee548965b6 100644 --- a/tryton/tryton/gui/window/view_form/view/list_gtk/widget.py +++ b/tryton/tryton/gui/window/view_form/view/list_gtk/widget.py @@ -829,10 +829,7 @@ class M2O(GenericText): if model and common.get_toplevel_window().get_focus(): field = record[self.attrs['name']] win = self.search_remote(record, field, text, callback=callback) - if len(win.screen.group) == 1: - win.response(None, Gtk.ResponseType.OK) - else: - win.show() + win.show() def editing_started(self, cell, editable, path): super(M2O, self).editing_started(cell, editable, path)