[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:
Nicolas Martinelli
2019-11-27 07:52:58 +00:00
parent 4dfa4e2c06
commit e3954db697
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -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
+1 -1
View File
@@ -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()