diff --git a/product/ERP5/Extensions/InventoryBrain.py b/product/ERP5/Extensions/InventoryBrain.py index d17e4c7327480463405654db3720eb7c88f84932..58f8275f55238908cc48aa9ad58ac7a07fb3c3c2 100644 --- a/product/ERP5/Extensions/InventoryBrain.py +++ b/product/ERP5/Extensions/InventoryBrain.py @@ -137,12 +137,11 @@ class InventoryListBrain(ZSQLBrain): Return the quantity of the current delivery for a resource """ total_kw = { - 'explanation_uid': self.getExplanationUid(), - 'resource_uid': self.resource_uid, - 'variation_text': self.variation_text, + 'movement.explanation_uid': self.getExplanationUid(), + 'movement.resource_uid': self.resource_uid, + 'movement.variation_text': self.variation_text, } - total_kw.update(self.portal_catalog.buildSQLQuery(query_table='movement', - **total_kw)) + total_kw.update(self.portal_catalog.buildSQLQuery(**total_kw)) result = self.Delivery_zGetTotal(**total_kw) inventory = None if len(result) > 0: