Commit 9ba8263e authored by Nicolas Delaby's avatar Nicolas Delaby

get tools from portal itself

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41281 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b806cf76
......@@ -51,19 +51,20 @@
<item>
<key> <string>_body</string> </key>
<value> <string>from Products.ERP5Type.Document import newTempBase\n
catalog = context.portal_catalog.getResultValue\n
portal = context.getPortalObject()\n
catalog = portal.portal_catalog.getResultValue\n
if current:\n
method = context.portal_simulation.getCurrentTrackingList\n
method = portal.portal_simulation.getCurrentTrackingList\n
else:\n
method = context.portal_simulation.getTrackingList\n
method = portal.portal_simulation.getTrackingList\n
\n
uid = context.getUid()\n
\n
history_list = []\n
\n
simulation_state = context.getPortalCurrentInventoryStateList() \\\n
+ context.getPortalTransitInventoryStateList() \\\n
+ context.getPortalReservedInventoryStateList()\n
simulation_state = portal.getPortalCurrentInventoryStateList() \\\n
+ portal.getPortalTransitInventoryStateList() \\\n
+ portal.getPortalReservedInventoryStateList()\n
\n
kw[\'item.simulation_state\'] = simulation_state\n
for res in method(aggregate_uid=uid, **kw):\n
......@@ -134,6 +135,7 @@ return history_list\n
<string>newTempBase</string>
<string>_getattr_</string>
<string>context</string>
<string>portal</string>
<string>catalog</string>
<string>method</string>
<string>uid</string>
......@@ -151,8 +153,7 @@ return history_list\n
<string>section_value</string>
<string>resource_value</string>
<string>None</string>
<string>append</string>
<string>$append0</string>
<string>$list0</string>
<string>x</string>
<string>_getitem_</string>
</tuple>
......
236
\ No newline at end of file
237
\ 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