Commit 5250346d authored by Vincent Pelletier's avatar Vincent Pelletier

erp5_project: ZSQLCatalog does not expect a "selection" parameter.

parent 1b307307
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
<value> <string>project_uid_list = [x.uid for x in context.portal_catalog(\n <value> <string>project_uid_list = [x.uid for x in context.portal_catalog(\n
relative_url=\'%s/%%\' % context.getRelativeUrl())] + [context.getUid()]\n relative_url=\'%s/%%\' % context.getRelativeUrl())] + [context.getUid()]\n
\n \n
return context.portal_catalog(selection=selection, \n return context.portal_catalog(\n
selection_report=selection_report,\n selection_report=selection_report,\n
portal_type=portal_type,\n portal_type=portal_type,\n
related_source_project_or_destination_project = project_uid_list )\n related_source_project_or_destination_project = project_uid_list )\n
......
...@@ -70,7 +70,7 @@ if kw.has_key(\'simulation_state\') and len(kw[\'simulation_state\']) > 0 :\n ...@@ -70,7 +70,7 @@ if kw.has_key(\'simulation_state\') and len(kw[\'simulation_state\']) > 0 :\n
sql_kw[\'simulation_state\'] = kw[\'simulation_state\']\n sql_kw[\'simulation_state\'] = kw[\'simulation_state\']\n
\n \n
task_list = [x.getObject() for x in \\\n task_list = [x.getObject() for x in \\\n
context.portal_catalog(selection=selection, selection_report=selection_report, \n context.portal_catalog(selection_report=selection_report, \n
portal_type=\'Task\',\n portal_type=\'Task\',\n
source_project_uid = source_project_uid_list,\n source_project_uid = source_project_uid_list,\n
**sql_kw)]\n **sql_kw)]\n
......
...@@ -78,13 +78,13 @@ else:\n ...@@ -78,13 +78,13 @@ else:\n
task_report_simulation_state = ""\n task_report_simulation_state = ""\n
\n \n
task_list = [x.getObject() for x in \\\n task_list = [x.getObject() for x in \\\n
context.portal_catalog(selection=selection, selection_report=selection_report, \n context.portal_catalog(selection_report=selection_report, \n
portal_type=\'Task\',\n portal_type=\'Task\',\n
source_project_uid = source_project_uid_list,\n source_project_uid = source_project_uid_list,\n
simulation_state = task_simulation_state,\n simulation_state = task_simulation_state,\n
**sql_kw)]\n **sql_kw)]\n
task_list.extend([x.getObject() for x in \\\n task_list.extend([x.getObject() for x in \\\n
context.portal_catalog(selection=selection, selection_report=selection_report, \n context.portal_catalog(selection_report=selection_report, \n
portal_type=\'Task Report\',\n portal_type=\'Task Report\',\n
source_project_uid = source_project_uid_list,\n source_project_uid = source_project_uid_list,\n
simulation_state = task_report_simulation_state,\n simulation_state = task_report_simulation_state,\n
......
...@@ -51,12 +51,12 @@ ...@@ -51,12 +51,12 @@
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>task_list = [x.getObject() for x in \\\n <value> <string>task_list = [x.getObject() for x in \\\n
context.portal_catalog(selection=selection, selection_report=selection_report, \n context.portal_catalog(selection_report=selection_report, \n
portal_type=\'Task\',\n portal_type=\'Task\',\n
simulation_state=context.getPortalDraftOrderStateList()+\n simulation_state=context.getPortalDraftOrderStateList()+\n
context.getPortalPlannedOrderStateList())]\n context.getPortalPlannedOrderStateList())]\n
task_list.extend([x.getObject() for x in \\\n task_list.extend([x.getObject() for x in \\\n
context.portal_catalog(selection=selection, selection_report=selection_report, \n context.portal_catalog(selection_report=selection_report, \n
portal_type=\'Task Report\',\n portal_type=\'Task Report\',\n
simulation_state=context.getPortalReservedInventoryStateList()+\n simulation_state=context.getPortalReservedInventoryStateList()+\n
context.getPortalCurrentInventoryStateList())])\n context.getPortalCurrentInventoryStateList())])\n
......
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