Issue 11223

Title
Crash when cancelling adding a children package on gtk client
Priority
bug
Status
unread
Nosy list
mrichez, tbruyere
Assigned to
Keywords

Created on 2022-02-07.13:55:51 by mrichez, last changed 3 months ago by mrichez.

Messages

Author: [hidden] (mrichez)
Date: 2022-02-07.13:55:51

Got a problem with gtk client 6.3 in Customer Shipment. (not tested with other clients) * I've defined 2 types of packages : Pallet, Box * My customer shipment is in state "Picked", so i can define packages used for the shipment * I click on the "+" to add a new package. I select "Pallet". * Then i select the children tab and click on "+" to add a children package. * I click on "Delete" button.

Got those errors:

  File "/home/mrichez/Workspace/tryton/issues/issue_11214_volume_dimensions_package/tryton/tryton/gui/window/view_form/view/list_gtk/widget.py", line 59, in wrapper
    return func(self, *args, **kwargs)
  File "/home/mrichez/Workspace/tryton/issues/issue_11214_volume_dimensions_package/tryton/tryton/gui/window/view_form/view/list_gtk/widget.py", line 100, in wrapper
    record = store.get_value(iter_, 0)

TypeError: unknown type (null)
 File "/usr/lib/python3.10/site-packages/pygtkcompat/generictreemodel.py", line 65, in wrapped_func
    return func(*args, **kargs)
  File "/usr/lib/python3.10/site-packages/pygtkcompat/generictreemodel.py", line 253, in do_get_path
    path = self.on_get_path(self.get_user_data(iter))
  File "/usr/lib/python3.10/site-packages/pygtkcompat/generictreemodel.py", line 161, in get_user_data
    return _get_user_data_as_pyobject(iter)
  File "/usr/lib/python3.10/site-packages/pygtkcompat/generictreemodel.py", line 51, in _get_user_data_as_pyobject
    return ctypes.cast(citer.contents.user_data, ctypes.py_object).value

ValueError: PyObject is NULL
History
Date User Action Args
2022-02-07 13:55:51mrichezcreate

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