FIX: correct field name, location_ids instead of location_id

This commit is contained in:
Carlos Lopez
2021-06-24 09:44:28 -05:00
committed by Carlos Lopez
parent 3ac8024212
commit 9b82d30d10

View File

@@ -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