Merge PR #1185 into 13.0

Signed-off-by LoisRForgeFlow
This commit is contained in:
OCA-git-bot
2021-09-30 16:09:24 +00:00

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