Commit 5faf6e92 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Add a new method getGroupCriterion.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@909 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d1e64f52
......@@ -149,3 +149,9 @@ Une ligne tarifaire."""
# Never divergent
return 0
security.declareProtected(Permissions.AccessContentsInformation, 'getGroupCriterion')
def getGroupCriterion(self):
"""
Return the criterion for grouping. This should be overriden by each class.
"""
return self.getPrice()
......@@ -159,3 +159,9 @@ Une ligne tarifaire."""
# Never divergent
return 0
security.declareProtected(Permissions.AccessContentsInformation, 'getGroupCriterion')
def getGroupCriterion(self):
"""
Return the criterion for grouping. This should be overriden by each class.
"""
return self.getPrice()
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