From f70f0eb797542bdb8d6d1075ac2ae97565d38a4c Mon Sep 17 00:00:00 2001 From: Andrey Solodovnikov Date: Wed, 22 Nov 2023 17:43:36 +0300 Subject: [PATCH] [I18n] stock_pull_list: add translations to UserError --- stock_pull_list/models/stock_picking.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/stock_pull_list/models/stock_picking.py b/stock_pull_list/models/stock_picking.py index 61d22663b..fab6c7a6d 100644 --- a/stock_pull_list/models/stock_picking.py +++ b/stock_pull_list/models/stock_picking.py @@ -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}