Skip to content

Commit

Permalink
Merge PR #1396 into 17.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Jan 7, 2025
2 parents 061c286 + 08163ce commit 856c517
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions account_banking_sepa_direct_debit/models/account_payment_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from lxml import etree
from markupsafe import Markup

from odoo import _, exceptions, fields, models
from odoo.exceptions import UserError
Expand Down Expand Up @@ -296,11 +297,16 @@ def generated2uploaded(self):
first_mandates.write({"recurrent_sequence_type": "recurring"})
for first_mandate in first_mandates:
first_mandate.message_post(
body=_(
"Automatically switched from <b>First</b> to "
"<b>Recurring</b> when the debit order "
"<a href=# data-oe-model=account.payment.order "
"data-oe-id=%d>{}</a> has been marked as uploaded."
).format(order.id, order.name)
body=Markup(
_(
"Automatically switched from <b>First</b> to "
"<b>Recurring</b> when the debit order "
"<a href=# data-oe-model=account.payment.order "
"data-oe-id=%(id)d>%(name)s</a> "
"has been marked as uploaded.",
id=order.id,
name=order.name,
)
)
)
return res

0 comments on commit 856c517

Please sign in to comment.