Commit 343b7158 authored by Klaus Wölfel's avatar Klaus Wölfel

[erp5_item_renderjs_ui_test] delete test item only if it exists

parent 3983e352
......@@ -16,6 +16,8 @@ for delivery_portal_type, delivery_id in zip(delivery_portal_type_list,
linking_document.getParentValue().manage_delObjects([linking_document.getId()])
module.manage_delObjects([delivery_id])
portal.item_module.manage_delObjects([item_id])
item = getattr(module, item_id, None)
if item is not None:
portal.item_module.manage_delObjects([item_id])
return "Deleted Successfully."
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment