diff --git a/addons/stock/models/stock_picking.py b/addons/stock/models/stock_picking.py index 4442632cdd6..6a50e393f2c 100644 --- a/addons/stock/models/stock_picking.py +++ b/addons/stock/models/stock_picking.py @@ -1075,7 +1075,7 @@ class Picking(models.Model): lines = self.move_ids.filtered(lambda m: m.product_id.type == 'product' and m.state != 'cancel' and m.quantity_done and not m.move_dest_ids) if lines: # don't show reception report if all already assigned/nothing to assign - wh_location_ids = self.env['stock.location']._search([('id', 'child_of', self.picking_type_id.warehouse_id.view_location_id.id), ('usage', '!=', 'supplier')]) + wh_location_ids = self.env['stock.location']._search([('id', 'child_of', self.picking_type_id.warehouse_id.view_location_id.ids), ('usage', '!=', 'supplier')]) if self.env['stock.move'].search([ ('state', 'in', ['confirmed', 'partially_available', 'waiting', 'assigned']), ('product_qty', '>', 0),