Commit 33ff0cb9 authored by Mame Coumba Sall's avatar Mame Coumba Sall

Modified default parameter in generateNewLengthId so that baobab reference will

start at 1 instead of 0.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43063 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1465c28b
......@@ -102,7 +102,8 @@ if reference in (None, \'\') or not str(reference).startswith(application_id):\n
# this make reference look strange when using different script to\n
# generate reference based on criteria the user can play with\n
baobab_id_group = (application_id, codification, year)\n
new_id = context.portal_ids.generateNewLengthId(id_group = baobab_id_group)\n
new_id = context.portal_ids.generateNewLengthId(id_group = baobab_id_group,
default=1)\n
\n
# affectation\n
reference = "%s-%s-%s-%s" % (application_id, codification, year, new_id)\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