diff --git a/stock_cycle_count/models/stock_location.py b/stock_cycle_count/models/stock_location.py index b77a8cc1f..ea315507f 100644 --- a/stock_cycle_count/models/stock_location.py +++ b/stock_cycle_count/models/stock_location.py @@ -115,9 +115,6 @@ class StockLocation(models.Model): self.ensure_one() action = self.env.ref("stock_cycle_count.act_accuracy_stats") result = action.read()[0] - result["context"] = {"search_default_location_id": self.id} - new_domain = ( - result["domain"][:-1] + ", ('location_id', 'child_of', active_ids)]" - ) + new_domain = result["domain"][:-1] + ", ('location_ids', 'in', active_ids)]" result["domain"] = new_domain return result