Commit 6a50e704 authored by Tristan Cavelier's avatar Tristan Cavelier

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

parent b562e505
...@@ -111,7 +111,10 @@ for line in line_list:\n ...@@ -111,7 +111,10 @@ for line in line_list:\n
error_message = None\n error_message = None\n
if result is None:\n if result is None:\n
result = portal.portal_catalog(portal_type=(\'Project\', \'Project Line\'),\n result = portal.portal_catalog(portal_type=(\'Project\', \'Project Line\'),\n
title=line_source_project_title)\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 project_search_dict[line_source_project_title] = result\n
if len(result) == 0:\n if len(result) == 0:\n
error_message = "No such project"\n error_message = "No such project"\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