Commit c173fd6e authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_simulation: display merge error if has any

parent 63183b06
......@@ -10,7 +10,10 @@ if len(delivery_list) < 2:
qs = '?portal_status_message=Please+select+more+than+one+items.'
else:
ret_url = context.absolute_url() + '/' + form_id
error_list = context.portal_simulation.mergeDeliveryList(delivery_list)
if not error_list:
qs = '?portal_status_message=Merged.'
context.portal_simulation.mergeDeliveryList(delivery_list)
else:
qs = '?portal_status_message=%s' % (' '.join(error_list))
return REQUEST.RESPONSE.redirect( ret_url + qs )
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