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

erp5_project: search by reference before title in Delivery_updateTaskFastInputDialog

parent 045edf7d
...@@ -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