Skip to content

Commit

Permalink
[FIX] website_sale_checkout_skip_payment: translate payment message
Browse files Browse the repository at this point in the history
- The default option in the field isn't detected as term to translate.
- Also, in a multilingual site we should provide that message in each
  language.

TT50516
  • Loading branch information
chienandalu committed Aug 20, 2024
1 parent c6aa9e0 commit 2d31d83
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions website_sale_checkout_skip_payment/models/website.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright 2017 Sergio Teruel <[email protected]>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).

from odoo import fields, models
from odoo import _, fields, models
from odoo.http import request


Expand All @@ -11,7 +11,10 @@ class Website(models.Model):
website_sale_checkout_skip_message = fields.Text(
string="Website Sale SKip Message",
required=True,
default="Our team will check your order and send you payment information soon.",
translate=True,
default=lambda s: _(
"Our team will check your order and send you payment information soon."
),
)
checkout_skip_payment = fields.Boolean(compute="_compute_checkout_skip_payment")

Expand Down

0 comments on commit 2d31d83

Please sign in to comment.