Commit bc14cb42 authored by Sebastien Robin's avatar Sebastien Robin

do not assume that an invoice line is never divergent any more

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6342 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 96817b53
...@@ -93,18 +93,18 @@ class InvoiceLine(DeliveryLine): ...@@ -93,18 +93,18 @@ class InvoiceLine(DeliveryLine):
# Never accountable # Never accountable
return 0 return 0
security.declareProtected( Permissions.AccessContentsInformation, # security.declareProtected( Permissions.AccessContentsInformation,
'isDivergent' ) # 'isDivergent' )
def isDivergent(self): # def isDivergent(self):
""" # """
Returns 1 if the target is not met according to the current information # 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, # After and edit, the isOutOfTarget will be checked. If it is 1,
a message is emitted # a message is emitted
#
emit targetUnreachable ! # emit targetUnreachable !
""" # """
# Never divergent # # Never divergent
return 0 # return 0
security.declareProtected( Permissions.AccessContentsInformation, security.declareProtected( Permissions.AccessContentsInformation,
'getGroupCriterion' ) 'getGroupCriterion' )
......
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