[MERGE] stock: fix 'split into production lots', raise error when quantity exceeds...
[odoo/odoo.git] / addons / stock / wizard / stock_move.py
index 7d1f837..a22ea72 100644 (file)
@@ -210,8 +210,8 @@ class split_in_production_lot(osv.osv_memory):
                     quantity = line.quantity
                     total_move_qty += quantity
                     if total_move_qty > move_qty:
-                        raise osv.except_osv(_('Processing Error'), _('Processing quantity %d for %s is larger than the available quantity %d!')\
-                                     %(total_move_qty, move.product_id.name, move_qty))
+                        raise osv.except_osv(_('Processing Error'), _('Production lot quantity %d of %s is larger than available quantity (%d) !') \
+                                % (total_move_qty, move.product_id.name, move_qty))
                     if quantity <= 0 or move_qty == 0:
                         continue
                     quantity_rest -= quantity