Commit e49a271f authored by Jean-Paul Smets's avatar Jean-Paul Smets

use of where_expression

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1355 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f8117415
No related merge requests found
......@@ -320,16 +320,16 @@ class DeliveryListBrain(InventoryListBrain):
def getInventory(self, at_date = None, ignore_variation=0, simulation_state=None, **kw):
if type(simulation_state) is type('a'):
simulation_state = [simulation_state]
if hasattr(self, 'query'):
query = self.query
if hasattr(self, 'where_expression'):
where_expression = self.where_expression
else:
query = None
where_expression = None
result = self.Resource_zGetInventory( resource_uid = [self.resource_uid],
to_date=at_date,
section_category = default_section_category,
variation_text = self.variation_text,
simulation_state = simulation_state,
query = query)
where_expression = where_expression)
inventory = None
if len(result) > 0:
inventory = result[0].inventory
......
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