diff --git a/bt5/erp5_travel_expense/SkinTemplateItem/portal_skins/erp5_hr_record/Record_processDraftRecord.py b/bt5/erp5_travel_expense/SkinTemplateItem/portal_skins/erp5_hr_record/Record_processDraftRecord.py index d2db3c145618992a2f3a0577322481d9b6fc501d..528f4fa6da8376cfb5eb5a14ff2f6441e9729067 100644 --- a/bt5/erp5_travel_expense/SkinTemplateItem/portal_skins/erp5_hr_record/Record_processDraftRecord.py +++ b/bt5/erp5_travel_expense/SkinTemplateItem/portal_skins/erp5_hr_record/Record_processDraftRecord.py @@ -17,6 +17,7 @@ new_record_list = portal.portal_catalog( if len(new_record_list) != 1: if record.getSimulationState() != "started": record.start(comment="Multiple similar records detected, please pick one") + return # It is the only record to be taken into account if record.getSimulationState() != "started":