Tryton - Issues

 

Issue7885

Title GTK-Client. Invalid tree path '0'
Priority bug Status unread
Superseder Nosy List hbrandes
Type crash Components tryton
Assigned To Keywords
Reviews

Created on 2018-11-25.15:24:28 by hbrandes, last changed by hbrandes.

Messages
msg45008 (view) Author: [hidden] (hbrandes) Date: 2018-11-25.15:24:27
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:28hbrandescreate

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