Commit 92caf2a8 authored by Romain Courteaud's avatar Romain Courteaud

Set destination decision on open order

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41309 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 68bfb08e
...@@ -99,7 +99,9 @@ if not len(open_order_list):\n ...@@ -99,7 +99,9 @@ if not len(open_order_list):\n
open_order_url = context.portal_workflow.getInfoFor(ob=person, name=\'open_order_url\', wf_id=\'person_slap_interface_workflow\')\n open_order_url = context.portal_workflow.getInfoFor(ob=person, name=\'open_order_url\', wf_id=\'person_slap_interface_workflow\')\n
open_order = portal.restrictedTraverse(open_order_url)\n open_order = portal.restrictedTraverse(open_order_url)\n
else:\n else:\n
open_order = portal.open_sale_order_module.newContent(destination_section_uid=order.getDestinationSectionUid(),\n open_order = portal.open_sale_order_module.newContent(\n
destination_section_uid=order.getDestinationSectionUid(),\n
destination_decision_uid=order.getDestinationDecisionUid(),\n
title="ViFiB Open Order")\n title="ViFiB Open Order")\n
person.createOpenOrder(open_order_url=open_order.getRelativeUrl())\n person.createOpenOrder(open_order_url=open_order.getRelativeUrl())\n
open_order.order()\n open_order.order()\n
......
58 60
\ 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