[I18n] stock_pull_list: add translations to UserError

This commit is contained in:
Andrey Solodovnikov
2023-11-22 17:43:36 +03:00
committed by Lois Rilo
parent e8bc5b1711
commit f70f0eb797

View File

@@ -13,7 +13,10 @@ class StockPicking(models.Model):
raise UserError(_("Choose transfers with same source location"))
if not record.picking_type_id.allow_pull_list_server_action:
raise UserError(
f"Operation type of {record.name} transfer did not handle server action"
_(
"Operation type of %(name)s transfer did not handle server action",
name=record.name,
)
)
pull_wizard = self.env["stock.pull.list.wizard"].create(
{"location_id": source_location.id}