Reset text widget of Many2One when search is cancelled
This prevents to have enter event trigger an new search windows.
This commit is contained in:
1 parent
fbcda802f9
commit
c274a39333
1 file changed
+2
@@ -171,6 +171,8 @@ class Many2One(WidgetInterface):
|
||||
if result:
|
||||
self.field.set_client(self.record,
|
||||
self.value_from_id(*result[0]), force_change=True)
|
||||
else:
|
||||
self.wid_text.set_text('')
|
||||
self.focus_out = True
|
||||
self.changed = True
|
||||
|
||||
|
||||
Reference in new issue
Block a user