From d9bdcd281bed526eea525287a837eea27ac4396b Mon Sep 17 00:00:00 2001 From: "Tiffany Chang (tic)" Date: Wed, 22 Nov 2023 17:04:36 +0100 Subject: [PATCH] [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 --- addons/mrp/i18n/mrp.pot | 2 +- addons/mrp/models/mrp_production.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/mrp/i18n/mrp.pot b/addons/mrp/i18n/mrp.pot index 2a49830b260..cd465adaa8d 100644 --- a/addons/mrp/i18n/mrp.pot +++ b/addons/mrp/i18n/mrp.pot @@ -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 diff --git a/addons/mrp/models/mrp_production.py b/addons/mrp/models/mrp_production.py index 2387bd0cf4d..b56df4d4899 100644 --- a/addons/mrp/models/mrp_production.py +++ b/addons/mrp/models/mrp_production.py @@ -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):