Commit 3b913a62 authored by Kevin Deldycke's avatar Kevin Deldycke

getTotalInventory return default value


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3286 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4fab2d5f
......@@ -94,7 +94,7 @@ class InventoryLine(DeliveryLine):
else:
# Use MySQL
aggregate = self.InventoryLine_zGetTotal()[0]
return aggregate.total_inventory
return aggregate.total_inventory or 0.0
security.declareProtected(Permissions.AccessContentsInformation, 'getQuantity')
def getQuantity(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