Commit 55b5540a authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_project: only get task report

parent 0618b63e
...@@ -24,12 +24,15 @@ else: ...@@ -24,12 +24,15 @@ else:
task_simulation_state = context.getPortalDraftOrderStateList() + \ task_simulation_state = context.getPortalDraftOrderStateList() + \
context.getPortalPlannedOrderStateList() context.getPortalPlannedOrderStateList()
task_report_simulation_state = "" task_report_simulation_state = ""
"""
task_list = [x.getObject() for x in \ task_list = [x.getObject() for x in \
context.portal_catalog(selection_report=selection_report, context.portal_catalog(selection_report=selection_report,
portal_type='Task', portal_type='Task',
source_project_uid = source_project_uid_list, source_project_uid = source_project_uid_list,
simulation_state = task_simulation_state, simulation_state = task_simulation_state,
**sql_kw)] **sql_kw)]
"""
task_list = []
task_list.extend([x.getObject() for x in \ task_list.extend([x.getObject() for x in \
context.portal_catalog(selection_report=selection_report, context.portal_catalog(selection_report=selection_report,
portal_type='Task Report', portal_type='Task Report',
......
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