diff --git a/addons/payment/i18n/payment.pot b/addons/payment/i18n/payment.pot index d7e1342de6d..22e7462ce17 100644 --- a/addons/payment/i18n/payment.pot +++ b/addons/payment/i18n/payment.pot @@ -101,7 +101,7 @@ msgstr "" #. openerp-web #: code:addons/payment/static/src/js/payment_form.js:0 #, python-format -msgid "
This card is currently linked to the following records:
" +msgid "This card is currently linked to the following records:" msgstr "" #. module: payment @@ -1926,7 +1926,7 @@ msgstr "" #. openerp-web #: code:addons/payment/static/src/js/payment_form.js:0 #, python-format -msgid "We are not able to add your payment method at the moment." +msgid "We are not able to add your payment method at the moment." msgstr "" #. module: payment 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 = 'This card is currently linked to the following records:
') + content); + content = $('' + _t('This card is currently linked to the following records:') + '
' + 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!'), diff --git a/addons/payment_test/models/payment_acquirer.py b/addons/payment_test/models/payment_acquirer.py index c569c7a1f07..b9eafcb6f73 100644 --- a/addons/payment_test/models/payment_acquirer.py +++ b/addons/payment_test/models/payment_acquirer.py @@ -31,7 +31,8 @@ class PaymentAcquirerTest(models.Model): payment_token = self.env['payment.token'].sudo().create({ 'acquirer_ref': uuid4(), 'acquirer_id': int(data['acquirer_id']), - 'partner_id': int(data['partner_id']) + 'partner_id': int(data['partner_id']), + 'name': 'XXXXXXXXXXXX%s - %s' % (data['cc_number'][-4:], data['cc_holder_name']) }) return payment_token