Issue 11223

Crash when cancelling adding a children package on gtk client
GTK client : Pyobject is NULL on event Locations - Add Children - Delete (issue 11809)
Nosy list
ced, mrichez, tbruyere
Assigned to

Created on 2022-02-07.13:55:51 by mrichez, last changed 1 month ago by ced.


Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2022-10-23.18:04:58

Duplicate issue11809.

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/", 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/", line 100, in wrapper
    record = store.get_value(iter_, 0)

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

ValueError: PyObject is NULL
Date User Action Args
2022-10-23 18:04:58cedsetmessages: + msg79273
nosy: + ced
status: unread -> closed
superseder: + GTK client : Pyobject is NULL on event Locations - Add Children - Delete
2022-02-07 13:55:51mrichezcreate