Commit dcdeeb85 authored by Jérome Perrin's avatar Jérome Perrin

jump from invoice to order was not working when multiple packing lists were related to one order

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25237 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1a7ed7d0
...@@ -80,9 +80,10 @@ if packing_list_list:\n ...@@ -80,9 +80,10 @@ if packing_list_list:\n
keep_items=dict(portal_status_message=message))\n keep_items=dict(portal_status_message=message))\n
else:\n else:\n
for packing_list in packing_list_list:\n for packing_list in packing_list_list:\n
related_order_uid_list.extend(packing_list.getCausalityValueList(\n related_order_uid_list.extend(\n
[x.getUid() for x in packing_list.getCausalityValueList(\n
portal_type=order_type,\n portal_type=order_type,\n
checked_permission=\'View\'))\n checked_permission=\'View\')])\n
\n \n
if related_order_uid_list:\n if related_order_uid_list:\n
order_module = portal.getDefaultModule(order_type)\n order_module = portal.getDefaultModule(order_type)\n
...@@ -151,6 +152,7 @@ return context.Base_redirect(form_id,\n ...@@ -151,6 +152,7 @@ return context.Base_redirect(form_id,\n
<string>message</string> <string>message</string>
<string>dict</string> <string>dict</string>
<string>packing_list</string> <string>packing_list</string>
<string>x</string>
<string>order_module</string> <string>order_module</string>
</tuple> </tuple>
</value> </value>
......
181 183
\ No newline at end of file \ No newline at end of file
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