diff --git a/addons/stock/models/stock_picking.py b/addons/stock/models/stock_picking.py index 20b261aa7f2..f71c072de33 100644 --- a/addons/stock/models/stock_picking.py +++ b/addons/stock/models/stock_picking.py @@ -374,7 +374,7 @@ class Picking(models.Model): elif self.partner_id: location_dest_id = self.partner_id.property_stock_customer.id else: - customerloc, location_dest_id = self.env['stock.warehouse']._get_partner_locations() + location_dest_id, supplierloc = self.env['stock.warehouse']._get_partner_locations() self.location_id = location_id self.location_dest_id = location_dest_id