Commit 3f5e55ae authored by Fabien Morin's avatar Fabien Morin

check that quantity is not None before return -quantity


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18167 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6c4253e0
...@@ -69,4 +69,7 @@ class LeavePeriod(PresencePeriod): ...@@ -69,4 +69,7 @@ class LeavePeriod(PresencePeriod):
quantity = PresencePeriod.getInventoriatedQuantity( quantity = PresencePeriod.getInventoriatedQuantity(
self, default=default, self, default=default,
*args, **kw) *args, **kw)
return -quantity if quantity is not None:
return -quantity
else:
return None
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