Commit f24199fc authored by Yoshinori Okuji's avatar Yoshinori Okuji

Disable generateNewId and explain why.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6436 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a8092373
......@@ -77,10 +77,15 @@ class Item(XMLObject, Amount, ImmobilisableItem):
, PropertySheet.Reference
)
security.declareProtected(Permissions.ModifyPortalContent,'generateNewId')
def generateNewId(self, id_group='item_id_group', default=None, method=None):
"""
We want a different id for all Item
"""
return XMLObject.generateNewId(self, id_group=id_group, default=default, method=method)
if 0:
# The following code is disabled. The original intention was to generate
# an unique reference for each item. We now use reference instead of id,
# so this is not applicable any longer. We need something different for
# reference.
security.declareProtected(Permissions.ModifyPortalContent,'generateNewId')
def generateNewId(self, id_group='item_id_group', default=None, method=None):
"""
We want a different id for all Item
"""
return XMLObject.generateNewId(self, id_group=id_group, default=default, method=method)
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