ValueError: invalid tree path
Version: 4.0.4
Scenario:
- add an attachment for a random record
- in the attachment window create a new record
- immediately click on OK -> Error message for field name required for this record
- press ESC to quit the window
-> client hangs and must be hard killed
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/tryton/gui/window/win_form.py", line 371, in close
self.response(self.win, gtk.RESPONSE_CANCEL)
File "/usr/lib/python2.7/dist-packages/tryton/gui/window/win_form.py", line 423, in response
self.destroy()
File "/usr/lib/python2.7/dist-packages/tryton/gui/window/attachment.py", line 31, in destroy
super(Attachment, self).destroy()
File "/usr/lib/python2.7/dist-packages/tryton/gui/window/win_form.py", line 439, in destroy
self.screen.switch_view(view_type=self.prev_view.view_type)
File "/usr/lib/python2.7/dist-packages/tryton/gui/window/view_form/screen/screen.py", line 440, in switch_view
self.current_view.set_value()
File "/usr/lib/python2.7/dist-packages/tryton/gui/window/view_form/view/list.py", line 1029, in set_value
self.treeview.set_value()
File "/usr/lib/python2.7/dist-packages/tryton/gui/window/view_form/view/list_gtk/editabletree.py", line 117, in set_value
record = model.get_value(model.get_iter(path), 0)
ValueError: invalid tree path