[FIX] stock: typo in UserError

Closes #20565
This commit is contained in:
Yenthe V.G
2017-10-30 10:41:03 +01:00
committed by Martin Trigaux
parent e1e3b5a56e
commit a9274dcd24
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -6638,7 +6638,7 @@ msgstr ""
#. module: stock
#: code:addons/stock/models/stock_inventory.py:380
#, python-format
msgid "You cannot have two inventory adjustements in state 'in Progess' with the same product(%s), same location(%s), same package, same owner and same lot. Please first validatethe first inventory adjustement with this product before creating another one."
msgid "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 validatethe first inventory adjustement with this product before creating another one."
msgstr ""
#. module: stock
+1 -1
View File
@@ -383,7 +383,7 @@ 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 Progess' with the same product"
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.name, res.location_id.name))
return res