Commit a897d3fa authored by Jérome Perrin's avatar Jérome Perrin

Add getPortalCurrentInventoryStateList to getListItemUrl for getFutureInventory



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7091 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a0a44a5a
...@@ -192,14 +192,15 @@ class InventoryListBrain(ZSQLBrain): ...@@ -192,14 +192,15 @@ class InventoryListBrain(ZSQLBrain):
elif cname_id in ('getAvailableInventory', ): elif cname_id in ('getAvailableInventory', ):
query_kw_update = { query_kw_update = {
'simulation_state': \ 'simulation_state': \
list(self.getPortalReservedInventoryStateList())+\ list(self.getPortalReservedInventoryStateList()) + \
list(self.getPortalCurrentInventoryStateList()) list(self.getPortalCurrentInventoryStateList())
} }
elif cname_id in ('getFutureInventory', 'inventory', ): elif cname_id in ('getFutureInventory', 'inventory', ):
query_kw_update = { query_kw_update = {
'simulation_state': \ 'simulation_state': \
list(self.getPortalFutureInventoryStateList()) + \ list(self.getPortalFutureInventoryStateList()) + \
list(self.getPortalReservedInventoryStateList()) list(self.getPortalReservedInventoryStateList()) + \
list(self.getPortalCurrentInventoryStateList())
} }
elif cname_id in ('getInventoryAtDate', ): elif cname_id in ('getInventoryAtDate', ):
query_kw_update = { query_kw_update = {
...@@ -286,7 +287,7 @@ class DeliveryListBrain(InventoryListBrain): ...@@ -286,7 +287,7 @@ class DeliveryListBrain(InventoryListBrain):
""" """
Returns current inventory at current date Returns current inventory at current date
""" """
at_date=DateTime() at_date = DateTime()
current = self.getCurrentInventory() current = self.getCurrentInventory()
result = self.Resource_zGetInventory( result = self.Resource_zGetInventory(
resource_uid = [self.resource_uid], resource_uid = [self.resource_uid],
......
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