[FIX] mrp: use correct wording pick => consume

In pickings we "pick", in mrp we "consume", so let's make the warning
message consistent even if it is probably still confusing.

closes odoo/odoo#142933

Related: odoo/enterprise#51171
Signed-off-by: Steve Van Essche <svs@odoo.com>
This commit is contained in:
Tiffany Chang (tic)
2023-11-23 08:52:01 +00:00
parent 55d01456fa
commit d9bdcd281b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -6732,7 +6732,7 @@ msgstr ""
#. odoo-python
#: code:addons/mrp/models/mrp_production.py:0
#, python-format
msgid "You need to supply Lot/Serial Number for products and 'picked' them:"
msgid "You need to supply Lot/Serial Number for products and 'consume' them:"
msgstr ""
#. module: mrp
+1 -1
View File
@@ -2641,7 +2641,7 @@ class MrpProduction(models.Model):
if move.has_tracking in ('serial', 'lot') and (not move.picked or any(not line.lot_id for line in move.move_line_ids if line.quantity and line.picked)):
missing_lot_id_products += "\n - %s" % move.product_id.display_name
if missing_lot_id_products:
error_msg = _("You need to supply Lot/Serial Number for products and 'picked' them:") + missing_lot_id_products
error_msg = _("You need to supply Lot/Serial Number for products and 'consume' them:") + missing_lot_id_products
raise UserError(error_msg)
def _get_autoprint_done_report_actions(self):