Commit 269dbea1 authored by Tristan Cavelier's avatar Tristan Cavelier

erp5_project: search by reference before title in Delivery_updateTaskFastInputDialog

parent 045edf7d
...@@ -110,6 +110,9 @@ for line in line_list:\n ...@@ -110,6 +110,9 @@ for line in line_list:\n
result = project_search_dict.get(line_source_project_title, None)\n result = project_search_dict.get(line_source_project_title, None)\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
reference=line_source_project_title)\n
if len(result) == 0:\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 title=line_source_project_title)\n
project_search_dict[line_source_project_title] = result\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