Skip to content

Commit

Permalink
[FIX] mrp: use correct wording pick => consume
Browse files Browse the repository at this point in the history
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#142933

Related: odoo/enterprise#51171
Signed-off-by: Steve Van Essche <[email protected]>
  • Loading branch information
ticodoo committed Nov 23, 2023
1 parent 55d0145 commit d9bdcd2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion addons/mrp/i18n/mrp.pot
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion addons/mrp/models/mrp_production.py
Original file line number Diff line number Diff line change
Expand Up @@ -2641,7 +2641,7 @@ def _set_quantities(self):
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):
Expand Down

0 comments on commit d9bdcd2

Please sign in to comment.