Commit 02030ccb authored by Gabriel Monnerat's avatar Gabriel Monnerat Committed by Jérome Perrin

CUSTOM erp5_crm: Left padding of reference to Support Request

With this, sort by reference will work properly
parent 44be4422
......@@ -9,6 +9,6 @@ if not short_portal_type:
id_group = ('reference', short_portal_type)
default = 1
new_id = portal.portal_ids.generateNewId(id_group=id_group, default=default)
reference = '%s-%s' % (short_portal_type, new_id)
reference = '%s-%06d' % (short_portal_type, new_id)
context.setReference(reference)
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