[IMP] stock: Error message when trying to create lot

TASK-ID: 1838954
This commit is contained in:
Hetashree Chauhan
2018-08-20 11:02:53 +02:00
committed by Pierre Masereel
parent 9b523fc548
commit 984addefe6
+1 -1
View File
@@ -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