Commit 434b2218 authored by Romain Courteaud's avatar Romain Courteaud

Fix wrong buildSQLQuery parameter.

Remove useless log.
Thanks to Lukasz Nowak.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16802 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b7461956
......@@ -80,7 +80,8 @@
root_movement.getSimulationState() == "confirmed"\n
)\n
search_kw = {\n
\'resource_portal_type\': \'Simulation Movement\',\n
\'explanation_portal_type\': \'Production Order\',\n
\'portal_type\': \'Simulation Movement\',\n
}\n
\n
if explanation_uid is not None:\n
......
......@@ -85,13 +85,13 @@
# portal type causality of root applied rule\n
search_kw = {\n
\'explanation_portal_type\': \'Production Order\',\n
\'resource_portal_type\': \'Simulation Movement\',\n
\'portal_type\': \'Simulation Movement\',\n
}\n
if explanation_uid is not None:\n
search_kw[\'explanation_uid\'] = explanation_uid\n
\n
search_kw.update(context.portal_catalog.buildSQLQuery(**search_kw))\n
context.log(context.ProductionOrder_zSelectMovement(src__=1, **search_kw))\n
\n
if src__==0:\n
movement_list = [x.getObject() for x in context.ProductionOrder_zSelectMovement(**search_kw)]\n
movement_list = [x for x in movement_list if test(x)]\n
......
45
\ No newline at end of file
46
\ 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