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,6 +77,11 @@ class Item(XMLObject, Amount, ImmobilisableItem):
, PropertySheet.Reference
)
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):
"""
......
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