[FIX] stock: confusing error message
In case of a picking type where stock move lines are not shown, clicking on 'Put in Pack' without 'Done' quantitites set shows a confusing error message. closes odoo/odoo#40928 X-original-commit: 76b72ab5953c1fc72e3c06464fd1c65e6420a4b3 Related: odoo/enterprise#6906 Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
This commit is contained in:
@@ -4039,6 +4039,12 @@ msgstr ""
|
||||
msgid "Planned Transfer"
|
||||
msgstr ""
|
||||
|
||||
#. module: stock
|
||||
#: code:addons/stock/models/stock_picking.py:0
|
||||
#, python-format
|
||||
msgid "Please add 'Done' qantitites to the picking to create a new pack."
|
||||
msgstr ""
|
||||
|
||||
#. module: stock
|
||||
#: code:addons/stock/models/stock_picking.py:0
|
||||
#, python-format
|
||||
|
||||
@@ -1184,7 +1184,7 @@ class Picking(models.Model):
|
||||
res = self._put_in_pack(move_line_ids)
|
||||
return res
|
||||
else:
|
||||
raise UserError(_('All the products currently reserved in the picking are already in a pack. Please add products to the picking to create a new pack.'))
|
||||
raise UserError(_("Please add 'Done' qantitites to the picking to create a new pack."))
|
||||
|
||||
def button_scrap(self):
|
||||
self.ensure_one()
|
||||
|
||||
Reference in New Issue
Block a user