Skip to content

Commit

Permalink
Force form set_value when switching tree selection in mixed widget [C…
Browse files Browse the repository at this point in the history
…USTOM] (#244)

Fix #24611
  • Loading branch information
nicoe committed Jun 15, 2023
1 parent a54e594 commit 473747f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tryton/gui/window/view_form/view/list.py
Original file line number Diff line number Diff line change
Expand Up @@ -1164,9 +1164,12 @@ def pre_validate():
GLib.idle_add(pre_validate)
self.update_sum()

# Delay the switch to the record so that focus-out event of the mixed
# widget can be triggered
GLib.idle_add(do_selection_changed)
if self.screen._multiview_form:
tree, *forms = self.screen._multiview_form.widget_groups[\
self.screen._multiview_group]
for form in forms:
form.set_value()
do_selection_changed()

def set_value(self):
if self.editable:
Expand Down

0 comments on commit 473747f

Please sign in to comment.