From 9b82d30d10c5f97dbd49b8c7b25187f8ea69abac Mon Sep 17 00:00:00 2001 From: Carlos Lopez Date: Thu, 24 Jun 2021 09:44:28 -0500 Subject: [PATCH] FIX: correct field name, location_ids instead of location_id --- stock_cycle_count/models/stock_location.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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