Commit b9400469 authored by Jérome Perrin's avatar Jérome Perrin

reapply 43605 (stop using deprecated method to generate codification) that...

reapply 43605 (stop using deprecated method to generate codification) that have mistakenly been reverted


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43847 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cd01fb37
......@@ -52,7 +52,7 @@
<key> <string>_body</string> </key>
<value> <string>"""Initialize an unique codification on project, because projects are often used as security group.\n
"""\n
codification = context.getPortalObject().portal_ids.generateNewLengthId(id_group=\'project.codification\', default=1)\n
codification = context.getPortalObject().portal_ids.generateNewId(id_group=\'project.codification\', id_generator=\'uid\', default=1)\n
context.setCodification(\'PROJ-%s\' % codification)\n
</string> </value>
</item>
......
798
\ No newline at end of file
799
\ No newline at end of file
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