Commit a55b0f78 authored by Romain Courteaud's avatar Romain Courteaud

erp5_core: setup a random id generator on portal_callable

If one callable has the default ID '1', it will break nearly all newContent calls on empty object
parent 7404d1df
...@@ -249,14 +249,38 @@ ...@@ -249,14 +249,38 @@
<persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent> <persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
</value> </value>
</item> </item>
<item>
<key> <string>categories</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>portal_callables</string> </value> <value> <string>portal_callables</string> </value>
</item> </item>
<item>
<key> <string>id_generator</string> </key>
<value> <string>_generatePerDayId</string> </value>
</item>
<item>
<key> <string>id_group</string> </key>
<value> <string>None</string> </value>
</item>
<item> <item>
<key> <string>portal_type</string> </key> <key> <string>portal_type</string> </key>
<value> <string>Callable Tool</string> </value> <value> <string>Callable Tool</string> </value>
</item> </item>
<item>
<key> <string>short_title</string> </key>
<value> <string>None</string> </value>
</item>
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
......
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