Skip to content

Commit

Permalink
Update sale_order_mass_action/wizards/sale_order_mass_action_wizard.py
Browse files Browse the repository at this point in the history
Co-authored-by: Denis Roussel (ACSONE) <[email protected]>
  • Loading branch information
jappi00 and rousseldenis committed Dec 10, 2024
1 parent dfdd65f commit a817206
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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):
Expand Down

0 comments on commit a817206

Please sign in to comment.