changeset 363647a78b83 in tryton:default
details: https://hg.tryton.org/tryton?cmd=changeset;node=363647a78b83
description:
        Do not search remote value if view has no more the focus

        If the user switch the tab with a value filled in the entry, the search 
window
        is hidden and the all application is made insensitive. So we must 
ensure that
        the search window will be linked to the current view. This is ensured 
by a
        widget with the focus.

        issue8733
        review288291002
diffstat:

 tryton/gui/window/view_form/view/list_gtk/widget.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r edc7bc6ea230 -r 363647a78b83 
tryton/gui/window/view_form/view/list_gtk/widget.py
--- a/tryton/gui/window/view_form/view/list_gtk/widget.py       Thu Oct 24 
19:19:55 2019 +0200
+++ b/tryton/gui/window/view_form/view/list_gtk/widget.py       Wed Oct 30 
13:22:22 2019 +0100
@@ -695,7 +695,7 @@
                 callback()
             return
 
-        if model:
+        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:

Reply via email to