Commit 497d1aa5 authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_travel_expense: record should have unique id

parent 3a09999e
......@@ -10,6 +10,9 @@ is_record_ready_method = record.getTypeBasedMethod(
if is_record_ready_method():
return
if not record.getSourceReference():
return
# Is it the only new record
new_record_list = portal.portal_catalog(
portal_type=record.getPortalType(),
......
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