From a9274dcd24c9d6d74c0ba88175be2193f68a2525 Mon Sep 17 00:00:00 2001 From: "Yenthe V.G" Date: Mon, 30 Oct 2017 09:32:00 +0100 Subject: [PATCH] [FIX] stock: typo in UserError Closes #20565 --- addons/stock/i18n/stock.pot | 2 +- addons/stock/models/stock_inventory.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/stock/i18n/stock.pot b/addons/stock/i18n/stock.pot index ca86061f3a6..59fab8ed4f8 100644 --- a/addons/stock/i18n/stock.pot +++ b/addons/stock/i18n/stock.pot @@ -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 diff --git a/addons/stock/models/stock_inventory.py b/addons/stock/models/stock_inventory.py index f9571724d2a..8e3452f73c2 100644 --- a/addons/stock/models/stock_inventory.py +++ b/addons/stock/models/stock_inventory.py @@ -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