Commit b63d6e75 authored by Mame Coumba Sall's avatar Mame Coumba Sall

File modified to make generateNewId work when a method is defined

generateNewId would not work the first time it is called


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17468 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 71a2c0a5
......@@ -110,7 +110,8 @@ class IdTool(BaseTool):
new_id=0
else:
new_id=default
if method is not None:
new_id=method(new_id)
else:
# Now generate a new id
if method is not None:
......
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