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 hparfr
parent 0304279424
commit ef2f062cbb

View File

@@ -17,7 +17,7 @@ class StockLocation(models.Model):
help="All the children (multi-level) stock location of this location", 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): def _compute_children_ids(self):
query = """SELECT sub.id, ARRAY_AGG(sl2.id) AS children query = """SELECT sub.id, ARRAY_AGG(sl2.id) AS children
FROM stock_location sl2, FROM stock_location sl2,