Commit 11b40399 authored by Aurel's avatar Aurel

replace getInventory by getQuantity


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8272 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c30c3623
...@@ -80,7 +80,7 @@ class Inventory(Delivery): ...@@ -80,7 +80,7 @@ class Inventory(Delivery):
node = self.getDestination() node = self.getDestination()
for movement in self.getMovementList(): for movement in self.getMovementList():
resource = movement.getResourceValue() resource = movement.getResourceValue()
if resource is not None and movement.getInventory() not in (None,''): if resource is not None and movement.getQuantity() not in (None,''):
variation_text = movement.getVariationText() variation_text = movement.getVariationText()
if (resource,variation_text) not in resource_and_variation_list: if (resource,variation_text) not in resource_and_variation_list:
resource_and_variation_list.append((resource,variation_text)) resource_and_variation_list.append((resource,variation_text))
...@@ -117,7 +117,6 @@ class Inventory(Delivery): ...@@ -117,7 +117,6 @@ class Inventory(Delivery):
from Products.ERP5Type.Document import newTempBase from Products.ERP5Type.Document import newTempBase
stock_object_list.append(newTempDeliveryLine(self,self.getId(), stock_object_list.append(newTempDeliveryLine(self,self.getId(),
uid=self.getUid())) uid=self.getUid()))
#LOG('stock_object_list',0,[x.__dict__ for x in stock_object_list])
self.portal_catalog.catalogObjectList(stock_object_list, self.portal_catalog.catalogObjectList(stock_object_list,
method_id_list=('z_catalog_stock_list',), method_id_list=('z_catalog_stock_list',),
disable_cache=1,check_uid=0) disable_cache=1,check_uid=0)
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