Commit d4a4c7c7 authored by Gabriel Monnerat's avatar Gabriel Monnerat

erp5_crm: Left padding of reference to Support Request

With this, sort by reference will work properly
parent 200e41ae
...@@ -9,6 +9,6 @@ if not short_portal_type: ...@@ -9,6 +9,6 @@ if not short_portal_type:
id_group = ('reference', short_portal_type) id_group = ('reference', short_portal_type)
default = 1 default = 1
new_id = portal.portal_ids.generateNewId(id_group=id_group, default=default) 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) 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