Commit 1ee1c6e9 authored by Titouan Soulard's avatar Titouan Soulard

slapos_erp5: fix consistency message for module `id_generator`

Previous messages were all showing relative URL of the object on which the script was executed.
This was likely a typo in the script and made messages unreadable. This commit restores proper behaviour.
parent e0ce765d
Pipeline #35279 failed with stage
in 0 seconds
...@@ -7,9 +7,9 @@ for module_id in portal.objectIds(spec=('ERP5 Folder',)) + ["portal_simulation", ...@@ -7,9 +7,9 @@ for module_id in portal.objectIds(spec=('ERP5 Folder',)) + ["portal_simulation",
if module.getIdGenerator() != id_generator: if module.getIdGenerator() != id_generator:
if fixit: if fixit:
error_list.append("%s module has incorrect ID generator (fixed)." % context.getRelativeUrl()) error_list.append("%s module has incorrect ID generator (fixed)." % module.getRelativeUrl())
module.setIdGenerator(id_generator) module.setIdGenerator(id_generator)
else: else:
error_list.append("%s module has incorrect ID generator." % context.getRelativeUrl()) error_list.append("%s module has incorrect ID generator." % module.getRelativeUrl())
return error_list return error_list
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