From bbc9b329b5962c0e208a7abe33d5d853aaa49fc2 Mon Sep 17 00:00:00 2001 From: Dhaval Panchal Date: Fri, 16 Jun 2017 18:40:29 +0530 Subject: [PATCH] [REF] stock: inventory adjustment: error message --- addons/stock/models/stock_inventory.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/stock/models/stock_inventory.py b/addons/stock/models/stock_inventory.py index 9a706eb342a..8ef4ac42fa9 100644 --- a/addons/stock/models/stock_inventory.py +++ b/addons/stock/models/stock_inventory.py @@ -383,9 +383,9 @@ class InventoryLine(models.Model): ('prod_lot_id', '=', values.get('prod_lot_id'))]) res = super(InventoryLine, self).create(values) if existings: - raise UserError(_("You cannot have two inventory adjustements in state 'in Progress' with the same product " - "(%s), same location (%s), same package, same owner and same lot. Please first validate " - "the first inventory adjustement with this product before creating another one.") % (res.product_id.display_name, res.location_id.name)) + raise UserError(_("You cannot have two inventory adjustments in progress for the same product (%s) " + "in the same location, for the same package, the same owner and the same lot number. " + "Please validate or cancel the first inventory adjustment before creating a new one.") % (res.product_id.display_name)) return res @api.constrains('product_id')