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