diff --git a/product/ERP5/Extensions/InventoryBrain.py b/product/ERP5/Extensions/InventoryBrain.py index 46b625dc111db0cf5f8d4992196dfe29a3deca73..266659e7ce97ec0b6bd47572ac9d6fa658748a3e 100644 --- a/product/ERP5/Extensions/InventoryBrain.py +++ b/product/ERP5/Extensions/InventoryBrain.py @@ -192,14 +192,15 @@ class InventoryListBrain(ZSQLBrain): elif cname_id in ('getAvailableInventory', ): query_kw_update = { 'simulation_state': \ - list(self.getPortalReservedInventoryStateList())+\ + list(self.getPortalReservedInventoryStateList()) + \ list(self.getPortalCurrentInventoryStateList()) } elif cname_id in ('getFutureInventory', 'inventory', ): query_kw_update = { 'simulation_state': \ list(self.getPortalFutureInventoryStateList()) + \ - list(self.getPortalReservedInventoryStateList()) + list(self.getPortalReservedInventoryStateList()) + \ + list(self.getPortalCurrentInventoryStateList()) } elif cname_id in ('getInventoryAtDate', ): query_kw_update = { @@ -286,9 +287,9 @@ class DeliveryListBrain(InventoryListBrain): """ Returns current inventory at current date """ - at_date=DateTime() + at_date = DateTime() current = self.getCurrentInventory() - result = self.Resource_zGetInventory( + result = self.Resource_zGetInventory( resource_uid = [self.resource_uid], omit_simulation = 1, omit_input = 1, section_category = self.getPortalDefaultSectionCategory(),