summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDhaval Panchal <dpa@odoo.com>2017-06-16 18:40:29 +0530
committerSimon Lejeune <sle@openerp.com>2018-01-10 10:44:07 +0100
commitbbc9b329b5962c0e208a7abe33d5d853aaa49fc2 (patch)
treefd3a622cd38bc38851965e598597d9c4d6ac4996
parent5a5a2fa7967bd65778fdc988b87dbd0ae94003d5 (diff)
[REF] stock: inventory adjustment: error message
-rw-r--r--addons/stock/models/stock_inventory.py6
1 files 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')