Skip to content

Commit

Permalink
[I18N] mrp_production_batch: improve raise msg
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankC013 committed Sep 3, 2024
1 parent 0037523 commit e3e99fa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions mrp_production_batch/i18n/es.po
Original file line number Diff line number Diff line change
Expand Up @@ -640,11 +640,11 @@ msgstr ""
#: code:addons/mrp_production_batch/models/mrp_production.py:0
#, python-format
msgid ""
"You can't set a lot producing for a production %s that belongs to a batch: %s.\n"
"It must be processed from the batch."
"You can't set a Lot/Serial Number for a production %s that belongs to a production batch: %s.\n"
"It must be processed from the production batch."
msgstr ""
"No puedes establecer un lote de producción para una producción %s que pertenece a un lote: %s. \n"
"Debe procesarse desde el lote."
"No puedes establecer un Lote/Nº de Serie para una producción %s que pertenece a un lote de producción: %s. \n"
"Debe procesarse desde el lote de producción."

#. module: mrp_production_batch
#: code:addons/mrp_production_batch/models/mrp_production.py:0
Expand Down
6 changes: 3 additions & 3 deletions mrp_production_batch/models/mrp_production.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ def _check_lot_producing_by_batch(self):
if rec.lot_producing_id and rec.production_batch_id:
raise ValidationError(
_(
"You can't set a lot producing for a production %s "
"that belongs to a batch: %s.\n"
"It must be processed from the batch."
"You can't set a Lot/Serial Number for a production %s "
"that belongs to a production batch: %s.\n"
"It must be processed from the production batch."
)
% (rec.name, rec.production_batch_id.name)
)
Expand Down

0 comments on commit e3e99fa

Please sign in to comment.