Update stock_location_children/models/stock_location.py

This commit is contained in:
Akim Juillerat
2020-05-15 10:30:22 +02:00
committed by GitHub
parent 37bb4d1eef
commit 19adebd80c

View File

@@ -17,7 +17,7 @@ class StockLocation(models.Model):
help="All the children (multi-level) stock location of this location",
)
@api.depends("child_ids", "child_ids.children_ids")
@api.depends("child_ids", "child_ids.child_ids")
def _compute_children_ids(self):
query = """SELECT sub.id, ARRAY_AGG(sl2.id) AS children
FROM stock_location sl2,