Commit 2a2adc4e authored by Tristan Cavelier's avatar Tristan Cavelier

XXX erp5_project: increase chance to find related project for update task fast input

parent 66b2dc2a
......@@ -110,6 +110,10 @@ for line in line_list:\n
result = project_search_dict.get(line_source_project_title, None)\n
error_message = None\n
if result is None:\n
# Reference is a better way to search\n
result = portal.portal_catalog(portal_type=(\'Project\', \'Project Line\'),\n
reference=line_source_project_title)\n
if len(result) == 0:\n
result = portal.portal_catalog(portal_type=(\'Project\', \'Project Line\'),\n
title=line_source_project_title)\n
project_search_dict[line_source_project_title] = result\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