From e69ecd0e592ac1974de235f03ed4a51ef2f3850d Mon Sep 17 00:00:00 2001 From: Simone Orsi Date: Wed, 26 Aug 2020 15:41:10 +0200 Subject: [PATCH] bknd: fix zone picking types counters --- shopfloor/services/zone_picking.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shopfloor/services/zone_picking.py b/shopfloor/services/zone_picking.py index d9f36bc3da..1150b68599 100644 --- a/shopfloor/services/zone_picking.py +++ b/shopfloor/services/zone_picking.py @@ -205,7 +205,7 @@ def _data_for_select_picking_type(self, zone_location, picking_types): def _picking_type_zone_lines(self, zone_location, picking_type): return self.env["stock.move.line"].search( [ - ("location_id", "=", zone_location.id), + ("location_id", "child_of", zone_location.id), # we have auto_join on picking_id ("picking_id.picking_type_id", "=", picking_type.id), ("qty_done", "=", 0),