From a817206ffa82c77494800a2d65e25db9d5df3226 Mon Sep 17 00:00:00 2001 From: Jan-Phillip Oesterling Date: Tue, 10 Dec 2024 14:27:17 +0100 Subject: [PATCH] Update sale_order_mass_action/wizards/sale_order_mass_action_wizard.py Co-authored-by: Denis Roussel (ACSONE) --- .../wizards/sale_order_mass_action_wizard.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sale_order_mass_action/wizards/sale_order_mass_action_wizard.py b/sale_order_mass_action/wizards/sale_order_mass_action_wizard.py index 5a9b3bc67fa..79114d84c1f 100644 --- a/sale_order_mass_action/wizards/sale_order_mass_action_wizard.py +++ b/sale_order_mass_action/wizards/sale_order_mass_action_wizard.py @@ -3,7 +3,7 @@ # Copyright 2022 ACSONE SA/NV # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -from odoo import api, fields, models +from odoo import api, fields, models, _ class SaleOrderMassActionWizard(models.TransientModel): @@ -24,7 +24,10 @@ def _get_sale_order_confirm_domain(self): @api.model def _notify_success(self, sale_orders): order_names = "\n".join(sale_orders.mapped("name")) - message = "The following orders has been updated : %s" % order_names + message = _( + "The following orders has been updated : %(order_names)s", + order_names = order_names, + ) self.env.user.notify_success(message=message) def apply_button(self):