summaryrefslogtreecommitdiff
path: root/addons/payment/static/src
diff options
context:
space:
mode:
authorBenoit Socias <bso@odoo.com>2020-11-05 14:47:28 +0000
committerBenoit Socias <bso@odoo.com>2020-11-17 11:41:14 +0000
commit1427e54d92e9aa528a1f3fbcc6a29c95e18da971 (patch)
tree2bb47fb6ded24a5a7934b4277ed3058556896226 /addons/payment/static/src
parentd652dbb9655d98b4121ac685e6444bbf7e303292 (diff)
[IMP] payment, payment_test: missing payment token identifier
Before this commit payment tokens had no name for Test Payment Acquirer After this commit tokens generated by Test Payment Acquirer have a name that combines the last 4 digits of the card number and the card account holder name https://github.com/odoo/odoo/issues/50965 closes odoo/odoo#61844 X-original-commit: e20f0650acbd1a7a918375a70ec5c89606523a7b Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
Diffstat (limited to 'addons/payment/static/src')
-rw-r--r--addons/payment/static/src/js/payment_form.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/addons/payment/static/src/js/payment_form.js b/addons/payment/static/src/js/payment_form.js
index e8d6d784cea..59ae4b0e826 100644
--- a/addons/payment/static/src/js/payment_form.js
+++ b/addons/payment/static/src/js/payment_form.js
@@ -63,7 +63,7 @@ publicWidget.registry.PaymentForm = publicWidget.Widget.extend({
this.$('#payment_error').remove();
var messageResult = '<div class="alert alert-danger mb4" id="payment_error">';
if (title != '') {
- messageResult = messageResult + '<b>' + _.str.escapeHTML(title) + ':</b></br>';
+ messageResult = messageResult + '<b>' + _.str.escapeHTML(title) + ':</b><br/>';
}
messageResult = messageResult + _.str.escapeHTML(message) + '</div>';
$acquirerForm.append(messageResult);
@@ -448,7 +448,7 @@ publicWidget.registry.PaymentForm = publicWidget.Widget.extend({
self.displayError(
_t('Server error'),
- _t("We are not able to add your payment method at the moment.</p>") +
+ _t("We are not able to add your payment method at the moment.") +
self._parseError(error)
);
});
@@ -517,10 +517,10 @@ publicWidget.registry.PaymentForm = publicWidget.Widget.extend({
// if there's records linked to this payment method
var content = '';
result[pm_id].forEach(function (sub) {
- content += '<p><a href="' + sub.url + '" title="' + sub.description + '">' + sub.name + '</a><p/>';
+ content += '<p><a href="' + sub.url + '" title="' + sub.description + '">' + sub.name + '</a></p>';
});
- content = $('<div>').html(_t('<p>This card is currently linked to the following records:<p/>') + content);
+ content = $('<div>').html('<p>' + _t('This card is currently linked to the following records:') + '</p>' + content);
// Then we display the list of the records and ask the user if he really want to remove the payment method.
new Dialog(self, {
title: _t('Warning!'),