Commit ce89656e authored by Romain Courteaud's avatar Romain Courteaud

slapos_erp5: change module id generator

Base the id prefix on node id, to prevent conflict when generating many activities
parent 23cb09e4
portal = context.getPortalObject()
id_generator = '_generatePerDayId'
id_generator = '_generatePerDayNodeNumberId'
error_list = []
for module_id in portal.objectIds(spec=('ERP5 Folder',)) + ["portal_simulation", "portal_activities"]:
......
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