From 3d558c435ab0cd76d4ff7f3a9828d1c997844c86 Mon Sep 17 00:00:00 2001 From: Jeremy Kersten Date: Fri, 28 Jul 2017 10:44:56 +0200 Subject: [PATCH] [FIX] stock: improve warning to help user to find the picking that block. When you valid a picking wave of 100 pickings, and that one is blocked (eg: no serial attributed), you have no way to know wich one fail except opening all one by one. --- addons/stock/models/stock_move.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock/models/stock_move.py b/addons/stock/models/stock_move.py index 70c9fe55d14..359c0b93435 100644 --- a/addons/stock/models/stock_move.py +++ b/addons/stock/models/stock_move.py @@ -555,7 +555,7 @@ class StockMove(models.Model): (move.picking_id.picking_type_id.use_existing_lots or move.picking_id.picking_type_id.use_create_lots) and \ move.product_id.tracking != 'none' and \ not (move.restrict_lot_id or (pack_operation and (pack_operation.product_id and pack_operation.pack_lot_ids)) or (pack_operation and not pack_operation.product_id)): - raise UserError(_('You need to provide a Lot/Serial Number for product %s') % move.product_id.name) + raise UserError(_('You need to provide a Lot/Serial Number for product %s') % ("%s (%s)" % (move.product_id.name, move.picking_id.name))) @api.multi def action_assign(self, no_prepare=False):