Commit 4cfeef4a authored by Jérome Perrin's avatar Jérome Perrin

we don't need to redefine isDivergent


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44353 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9cbf598c
......@@ -367,12 +367,6 @@ class DeliveryLine(Movement, XMLObject, XMLMatrix, ImmobilisationMovement):
# divergence support with solving
security.declareProtected(Permissions.AccessContentsInformation, 'isDivergent')
def isDivergent(self):
""" Returns true if the delivery line is divergent
"""
return bool(self.getDivergenceList())
security.declareProtected(Permissions.AccessContentsInformation, 'getDivergenceList')
def getDivergenceList(self):
"""
......
......@@ -69,15 +69,3 @@ class InvoiceCell(DeliveryCell):
# Never accountable
return 0
# security.declareProtected(Permissions.View, 'isDivergent')
# def isDivergent(self):
# """
# Returns 1 if the target is not met according to the current information
# After and edit, the isOutOfTarget will be checked. If it is 1,
# a message is emitted
#
# emit targetUnreachable !
# """
# # Never divergent
# return 0
......@@ -80,16 +80,4 @@ class InvoiceLine(DeliveryLine):
# Never accountable
return 0
# security.declareProtected( Permissions.AccessContentsInformation,
# 'isDivergent' )
# def isDivergent(self):
# """
# Returns 1 if the target is not met according to the current information
# After and edit, the isOutOfTarget will be checked. If it is 1,
# a message is emitted
#
# emit targetUnreachable !
# """
# # Never divergent
# return 0
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