Commit e090c8fc authored by Jérome Perrin's avatar Jérome Perrin

simplify


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43898 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1fe4bfab
......@@ -238,10 +238,7 @@ class RuleMixin(Predicate):
delivery = movement.getDeliveryValue()
if delivery is None:
return False
if len(self.getDivergenceList(movement)) == 0:
return False
else:
return True
return len(self.getDivergenceList(movement)) != 0
security.declareProtected(Permissions.View, 'getDivergenceList')
def getDivergenceList(self, movement):
......
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