diff --git a/addons/stock/i18n/stock.pot b/addons/stock/i18n/stock.pot index e0391f9f6a4..e223e20044d 100644 --- a/addons/stock/i18n/stock.pot +++ b/addons/stock/i18n/stock.pot @@ -3666,6 +3666,12 @@ msgstr "" msgid "Original Move" msgstr "" +#. module: stock +#: code:addons/stock/stock.py:576 +#, python-format +msgid "Otherwise make sure the right stock/owner is set." +msgstr "" + #. module: stock #: model:ir.model.fields,field_description:stock.field_stock_warehouse_out_type_id msgid "Out Type" diff --git a/addons/stock/stock.py b/addons/stock/stock.py index 2c483c909ce..09ae09f9ebb 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -573,7 +573,7 @@ class stock_quant(osv.osv): ('qty', '>', 0.0), ('location_id.usage', '=', 'internal')], context=context) if other_quants: lot_name = self.pool['stock.production.lot'].browse(cr, uid, lot_id, context=context).name - raise UserError(_('The serial number %s is already in stock') % lot_name) + raise UserError(_('The serial number %s is already in stock.') % lot_name + _("Otherwise make sure the right stock/owner is set.")) #create the quant as superuser, because we want to restrict the creation of quant manually: we should always use this method to create quants quant_id = self.create(cr, SUPERUSER_ID, vals, context=context)