Commit 25497c5e authored by Romain Courteaud's avatar Romain Courteaud

Update url parameter to make them compatible with latest inventory fixes.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14123 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 40d22f24
......@@ -190,20 +190,34 @@ class InventoryListBrain(ZSQLBrain):
}
# Add parameters to query_kw
query_kw_update = {}
if cname_id in ('getCurrentInventory', ):
query_kw_update = {
'simulation_state': list(self.getPortalCurrentInventoryStateList())
'simulation_state':
list(self.getPortalCurrentInventoryStateList() + \
self.getPortalTransitInventoryStateList()),
'omit_transit': 1,
'transit_simulation_state': list(
self.getPortalTransitInventoryStateList())
}
elif cname_id in ('getAvailableInventory', ):
query_kw_update = {
'simulation_state': \
list(self.getPortalReservedInventoryStateList()) + \
list(self.getPortalCurrentInventoryStateList())
'simulation_state': list(self.getPortalCurrentInventoryStateList() + \
self.getPortalTransitInventoryStateList()),
'omit_transit': 1,
'transit_simulation_state': list(self.getPortalTransitInventoryStateList()),
'reserved_kw': {
'simulation_state': list(self.getPortalReservedInventoryStateList()),
'transit_simulation_state': list(self.getPortalTransitInventoryStateList()),
'omit_input': 1
}
}
elif cname_id in ('getFutureInventory', 'inventory', ):
query_kw_update = {
'simulation_state': \
list(self.getPortalFutureInventoryStateList()) + \
list(self.getPortalTransitInventoryStateList()) + \
list(self.getPortalReservedInventoryStateList()) + \
list(self.getPortalCurrentInventoryStateList())
}
......
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