[FIX] stock: rephrase the error message
Was done with a translation in stable at 106d9a98bf
opw-1827181
This commit is contained in:
@@ -5980,7 +5980,7 @@ msgstr ""
|
||||
#. module: stock
|
||||
#: code:addons/stock/models/stock_picking.py:700
|
||||
#, python-format
|
||||
msgid "You cannot validate a transfer if you have not processed any quantity. You should rather cancel the transfer."
|
||||
msgid "You cannot validate a transfer if no quantites are reserved nor done. To force the transfer, switch in edit more and encode the done quantities."
|
||||
msgstr ""
|
||||
|
||||
#. module: stock
|
||||
|
||||
@@ -702,7 +702,7 @@ class Picking(models.Model):
|
||||
no_quantities_done = all(float_is_zero(move_line.qty_done, precision_rounding=move_line.product_uom_id.rounding) for move_line in self.move_line_ids)
|
||||
no_reserved_quantities = all(float_is_zero(move_line.product_qty, precision_rounding=move_line.product_uom_id.rounding) for move_line in self.move_line_ids)
|
||||
if no_reserved_quantities and no_quantities_done:
|
||||
raise UserError(_('You cannot validate a transfer if you have not processed any quantity. You should rather cancel the transfer.'))
|
||||
raise UserError(_('You cannot validate a transfer if no quantites are reserved nor done. To force the transfer, switch in edit more and encode the done quantities.'))
|
||||
|
||||
if picking_type.use_create_lots or picking_type.use_existing_lots:
|
||||
lines_to_check = self.move_line_ids
|
||||
|
||||
Reference in New Issue
Block a user