Commit 57f2cb16 authored by Alexandre Boeglin's avatar Alexandre Boeglin

Redefined isAccountable, so that DeliveryLine.isAccountable is not called

when indexing a SupplyLine.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3086 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a8823f83
......@@ -104,6 +104,7 @@ class SupplyLine(DeliveryLine, Path):
isPortalContent = 1
isRADContent = 1
isPredicate = 1
isAccountable = 0
# Declarative security
security = ClassSecurityInfo()
......@@ -155,6 +156,13 @@ class SupplyLine(DeliveryLine, Path):
def _getDefaultTotalPrice(self, context):
return 0.0
security.declareProtected(Permissions.AccessContentsInformation, 'isAccountable')
def isAccountable(self):
"""
Returns 1 if this needs to be accounted
"""
return 0
# security.declareProtected(Permissions.AccessContentsInformation, 'getPrice')
# def getPrice(self, context=None, REQUEST=None, **kw):
# """
......
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