From 984addefe666490c8127829b8cd4fb28e662d013 Mon Sep 17 00:00:00 2001 From: Hetashree Chauhan Date: Thu, 31 May 2018 16:48:52 +0530 Subject: [PATCH] [IMP] stock: Error message when trying to create lot TASK-ID: 1838954 --- addons/stock/models/stock_production_lot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock/models/stock_production_lot.py b/addons/stock/models/stock_production_lot.py index 1d618bf5fb1..1a38273ae03 100644 --- a/addons/stock/models/stock_production_lot.py +++ b/addons/stock/models/stock_production_lot.py @@ -34,7 +34,7 @@ class ProductionLot(models.Model): if active_picking_id: picking_id = self.env['stock.picking'].browse(active_picking_id) if picking_id and not picking_id.picking_type_id.use_create_lots: - raise UserError(_("You are not allowed to create a lot for this operation type.")) + raise UserError(_('You are not allowed to create a lot or serial number with this operation type. To change this, go on the operation type and tick the box "Create New Lots/Serial Numbers".')) return super(ProductionLot, self).create(vals_list) @api.multi