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 @@ ...@@ -51,19 +51,20 @@
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>from Products.ERP5Type.Document import newTempBase\n <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 if current:\n
method = context.portal_simulation.getCurrentTrackingList\n method = portal.portal_simulation.getCurrentTrackingList\n
else:\n else:\n
method = context.portal_simulation.getTrackingList\n method = portal.portal_simulation.getTrackingList\n
\n \n
uid = context.getUid()\n uid = context.getUid()\n
\n \n
history_list = []\n history_list = []\n
\n \n
simulation_state = context.getPortalCurrentInventoryStateList() \\\n simulation_state = portal.getPortalCurrentInventoryStateList() \\\n
+ context.getPortalTransitInventoryStateList() \\\n + portal.getPortalTransitInventoryStateList() \\\n
+ context.getPortalReservedInventoryStateList()\n + portal.getPortalReservedInventoryStateList()\n
\n \n
kw[\'item.simulation_state\'] = simulation_state\n kw[\'item.simulation_state\'] = simulation_state\n
for res in method(aggregate_uid=uid, **kw):\n for res in method(aggregate_uid=uid, **kw):\n
...@@ -134,6 +135,7 @@ return history_list\n ...@@ -134,6 +135,7 @@ return history_list\n
<string>newTempBase</string> <string>newTempBase</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>portal</string>
<string>catalog</string> <string>catalog</string>
<string>method</string> <string>method</string>
<string>uid</string> <string>uid</string>
...@@ -151,8 +153,7 @@ return history_list\n ...@@ -151,8 +153,7 @@ return history_list\n
<string>section_value</string> <string>section_value</string>
<string>resource_value</string> <string>resource_value</string>
<string>None</string> <string>None</string>
<string>append</string> <string>$list0</string>
<string>$append0</string>
<string>x</string> <string>x</string>
<string>_getitem_</string> <string>_getitem_</string>
</tuple> </tuple>
......
236 237
\ 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