Commit 1a38d719 authored by Jérome Perrin's avatar Jérome Perrin

fix my stupid mistake from 35984


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36005 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent de5cfecb
......@@ -376,7 +376,7 @@ class DeliveryLine(Movement, XMLObject, XMLMatrix, Variated,
def isDivergent(self):
""" Returns true if the delivery line is divergent
"""
return not self.getDivergenceList()
return bool(self.getDivergenceList())
security.declareProtected(Permissions.View, 'getDivergenceList')
def getDivergenceList(self):
......
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