mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
FIX: correct field name, location_ids instead of location_id
This commit is contained in:
committed by
Carlos Lopez
parent
3ac8024212
commit
9b82d30d10
@@ -115,9 +115,6 @@ class StockLocation(models.Model):
|
|||||||
self.ensure_one()
|
self.ensure_one()
|
||||||
action = self.env.ref("stock_cycle_count.act_accuracy_stats")
|
action = self.env.ref("stock_cycle_count.act_accuracy_stats")
|
||||||
result = action.read()[0]
|
result = action.read()[0]
|
||||||
result["context"] = {"search_default_location_id": self.id}
|
new_domain = result["domain"][:-1] + ", ('location_ids', 'in', active_ids)]"
|
||||||
new_domain = (
|
|
||||||
result["domain"][:-1] + ", ('location_id', 'child_of', active_ids)]"
|
|
||||||
)
|
|
||||||
result["domain"] = new_domain
|
result["domain"] = new_domain
|
||||||
return result
|
return result
|
||||||
|
|||||||
Reference in New Issue
Block a user