Commit c1f2e4ee authored by Sebastien Robin's avatar Sebastien Robin

make sure also inventory is not None

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11609 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c1aa8963
...@@ -113,7 +113,7 @@ class InventoryLine(DeliveryLine): ...@@ -113,7 +113,7 @@ class InventoryLine(DeliveryLine):
# Make sure inventory is defined somewhere (here or parent) # Make sure inventory is defined somewhere (here or parent)
_marker = [] _marker = []
inventory = getattr(aq_base(self), 'inventory', _marker) inventory = getattr(aq_base(self), 'inventory', _marker)
if inventory is not _marker: if inventory is not _marker and inventory is not None:
return inventory return inventory
return quantity return quantity
else: else:
......
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