Commit 0a51e67b authored by Łukasz Nowak's avatar Łukasz Nowak

Create temp documents on portal.

There is no control where context would be used.
parent ba2de5f2
......@@ -53,8 +53,9 @@
<value> <string>from Products.ERP5Type.Document import newTempDocument\n
return_list = []\n
i = 1\n
portal = context.getPortalObject()\n
for worklist in context.portal_workflow.listActionInfos():\n
o = newTempDocument(context, str(i))\n
o = newTempDocument(portal, str(i))\n
o.edit(\n
count=worklist[\'count\'],\n
title=worklist[\'title\'],\n
......
743
\ No newline at end of file
744
\ 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