Commit 4c961851 authored by Klaus Wölfel's avatar Klaus Wölfel

erp5_simulation: Only show permitted deliveries in Solver Dialog

Quantity Split Move solver allows user to select to which delivery quantities should be moved when
splitting. If the user did not have access to one of these deliveries the dialog would fail. Therfore we
only search for those deliveries which can be accessed by the user.
parent a1eeb791
......@@ -12,7 +12,8 @@ reserved_inventory_state_list = portal.getPortalReservedInventoryStateList()
for causality_value in current_delivery.getCausalityValueList():
for delivery in causality_value.getCausalityRelatedValueList(
portal_type=current_delivery_portal_type):
portal_type=current_delivery_portal_type,
checked_permission="Access contents information"):
if delivery.getUid() != current_delivery_uid:
if delivery.getSimulationState() in reserved_inventory_state_list:
delivery_list.append(delivery)
......
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