Skip to content
Snippets Groups Projects
Commit 40a3822a authored by Joren Van Onder's avatar Joren Van Onder
Browse files

[FIX] pos_mercury: don't show amount due in payment method popup


This popup shows in the rare situation where somebody has 2 payment
methods that use Mercury. It allows them to choose which one to use
when swiping a card.

It would show the amount due in the title of the popup however this
isn't correct when a "pending swipe" payment line has been added.

Fix it by removing this amount, it's clear what will be paid from the
information on the payment screen. Also use this opportunity to make
it translatable.

opw-2006596

closes odoo/odoo#34398

Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
parent 63f052a4
Branches
Tags
No related merge requests found
......@@ -360,6 +360,13 @@ msgstr ""
msgid "Password of the merchant to authenticate him on the payment provider server"
msgstr ""
#. module: pos_mercury
#. openerp-web
#: code:addons/pos_mercury/static/src/js/pos_mercury.js:512
#, python-format
msgid "Pay with: "
msgstr ""
#. module: pos_mercury
#: model:ir.model.fields,help:pos_mercury.field_account_bank_statement_line__mercury_record_no
msgid "Payment record number from Mercury Pay"
......
......@@ -509,7 +509,7 @@ PaymentScreenWidget.include({
self.credit_code_transaction(parsed_result);
} else { // this is for supporting another payment system like mercury
this.gui.show_popup('selection',{
title: 'Pay ' + this.pos.get_order().get_due().toFixed(2) + ' with : ',
title: _t('Pay with: '),
list: online_payment_journals,
confirm: function (item) {
parsed_result.journal_id = item;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment