summaryrefslogtreecommitdiff
path: root/addons/payment/models
diff options
context:
space:
mode:
authorMartin Trigaux <mat@odoo.com>2018-01-09 14:44:50 +0100
committerMartin Trigaux <mat@odoo.com>2018-01-10 08:57:12 +0100
commitff0abd214c89dce19984ed0f3c72ea556e23da01 (patch)
tree6f82f88fdbf7e2fd33f41f415624e69897a4c34c /addons/payment/models
parent55caee64812a23b85daac3e7adbfd2ce6b7f767f (diff)
[FIX] untranslated defaults
The field was translatable but the default value was untranslated Fixes #22059
Diffstat (limited to 'addons/payment/models')
-rw-r--r--addons/payment/models/payment_acquirer.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/addons/payment/models/payment_acquirer.py b/addons/payment/models/payment_acquirer.py
index 198f8c5d336..319807780c1 100644
--- a/addons/payment/models/payment_acquirer.py
+++ b/addons/payment/models/payment_acquirer.py
@@ -101,19 +101,19 @@ class PaymentAcquirer(models.Model):
help='Message displayed after having done the payment process.')
pending_msg = fields.Html(
'Pending Message', translate=True,
- default='<i>Pending,</i> Your online payment has been successfully processed. But your order is not validated yet.',
+ default=lambda s: _('<i>Pending,</i> Your online payment has been successfully processed. But your order is not validated yet.'),
help='Message displayed, if order is in pending state after having done the payment process.')
done_msg = fields.Html(
'Done Message', translate=True,
- default='<i>Done,</i> Your online payment has been successfully processed. Thank you for your order.',
+ default=lambda s: _('<i>Done,</i> Your online payment has been successfully processed. Thank you for your order.'),
help='Message displayed, if order is done successfully after having done the payment process.')
cancel_msg = fields.Html(
'Cancel Message', translate=True,
- default='<i>Cancel,</i> Your payment has been cancelled.',
+ default=lambda s: _('<i>Cancel,</i> Your payment has been cancelled.'),
help='Message displayed, if order is cancel during the payment process.')
error_msg = fields.Html(
'Error Message', translate=True,
- default='<i>Error,</i> Please be aware that an error occurred during the transaction. The order has been confirmed but will not be paid. Do not hesitate to contact us if you have any questions on the status of your order.',
+ default=lambda s: _('<i>Error,</i> Please be aware that an error occurred during the transaction. The order has been confirmed but will not be paid. Do not hesitate to contact us if you have any questions on the status of your order.'),
help='Message displayed, if error is occur during the payment process.')
save_token = fields.Selection([
('none', 'Never'),