Skip to content
Snippets Groups Projects
Commit c594c9a6 authored by Florent de Labarre's avatar Florent de Labarre
Browse files

[FIX] mrp_subcontracting: clarify which product to specify SN


In case you use products with variants or internal references, display_name is more specific than name.

closes odoo/odoo#79130

Signed-off-by: default avatarTiffany Chang <tic@odoo.com>
parent 5ffc7c63
No related branches found
No related tags found
No related merge requests found
......@@ -43,7 +43,7 @@ class MrpProduction(models.Model):
raise UserError(_('You must enter a serial number for %s') % self.product_id.name)
for sml in self.move_raw_ids.move_line_ids:
if sml.tracking != 'none' and not sml.lot_id:
raise UserError(_('You must enter a serial number for each line of %s') % sml.product_id.name)
raise UserError(_('You must enter a serial number for each line of %s') % sml.product_id.display_name)
self._update_finished_move()
quantity_issues = self._get_quantity_produced_issues()
if quantity_issues:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment