Tryton - Issues

 

Message45008

Author hbrandes
Recipients
Date 2018-11-25.15:24:27
Content
Sometimes, when editing a formular and want to get back to the list, the GTK-client ( 5.0.2 ) creates an error: 'Invalid tree path 0'. The Stracktrace:

  File "/opt/projekte/Tryton/tryton5.0/tryton-5.0.0/tryton/gui/window/form.py", line 198, in sig_switch
    if not self.modified_save():
  File "/opt/projekte/Tryton/tryton5.0/tryton-5.0.0/tryton/gui/window/form.py", line 500, in modified_save
    self.screen.save_tree_state()
  File "/opt/projekte/Tryton/tryton5.0/tryton-5.0.0/tryton/gui/window/view_form/screen/screen.py", line 842, in save_tree_state
    widget.screen.save_tree_state(store)
  File "/opt/projekte/Tryton/tryton5.0/tryton-5.0.0/tryton/gui/window/view_form/screen/screen.py", line 852, in save_tree_state
    selected_paths = view.get_selected_paths()
  File "/opt/projekte/Tryton/tryton5.0/tryton-5.0.0/tryton/gui/window/view_form/view/list.py", line 1171, in get_selected_paths
    iter_ = model.get_iter(path)
  File "/usr/lib64/python3.7/site-packages/gi/overrides/Gtk.py", line 874, in get_iter
    raise ValueError("invalid tree path '%s'" % path)
History
Date User Action Args
2018-11-25 15:24:28hbrandessetmessageid: <1543155868.1.0.756982853863.issue7885@tryton.org>
2018-11-25 15:24:28hbrandeslinkissue7885 messages
2018-11-25 15:24:27hbrandescreate

Showing 10 items. Show all history (warning: this could be VERY long)