Commit 30026f86 authored by Jérome Perrin's avatar Jérome Perrin

same as in r27330


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27331 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 529995c2
......@@ -68,18 +68,6 @@ class InventoryCell(DeliveryCell):
, PropertySheet.ItemAggregation
)
def _edit(self, REQUEST=None, force_update = 0, **kw):
DeliveryCell._edit(self, REQUEST=REQUEST, force_update = force_update, **kw)
# Calculate inventory
item_list = self.getAggregateValueList()
if item_list not in [None,[]]:
inventory = 0
for item in item_list:
if item.getQuantity() not in [None, '']:
inventory += item.getQuantity()
self.setInventory(inventory)
security.declareProtected(Permissions.AccessContentsInformation, 'getTotalInventory')
def getTotalInventory(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