From 631abaf6892fd1bbc65d77b58d0ee03b3de47c4d Mon Sep 17 00:00:00 2001 From: Odoo Translation Bot Date: Sun, 28 Apr 2019 03:09:59 +0200 Subject: [I18N] Update translation terms from Transifex --- addons/payment/i18n/ka.po | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'addons/payment') diff --git a/addons/payment/i18n/ka.po b/addons/payment/i18n/ka.po index 93fcec06ff6..927256428d6 100644 --- a/addons/payment/i18n/ka.po +++ b/addons/payment/i18n/ka.po @@ -9,6 +9,7 @@ # David Machakhelidze , 2018 # Martin Trigaux, 2018 # Temur, 2018 +# Gvantsa Gvinianidze , 2019 # msgid "" msgstr "" @@ -16,7 +17,7 @@ msgstr "" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2019-01-03 15:07+0000\n" "PO-Revision-Date: 2017-09-20 10:20+0000\n" -"Last-Translator: Temur, 2018\n" +"Last-Translator: Gvantsa Gvinianidze , 2019\n" "Language-Team: Georgian (https://www.transifex.com/odoo/teams/41243/ka/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -27,7 +28,7 @@ msgstr "" #. module: payment #: model:ir.ui.view,arch_db:payment.payment_confirmation_status msgid "×" -msgstr "" +msgstr "×" #. module: payment #: model:ir.model.fields,field_description:payment.field_payment_transaction_html_3ds -- cgit v1.2.3 From c924356d9e95d592b6834a6ecc443a598c12530d Mon Sep 17 00:00:00 2001 From: Odoo Translation Bot Date: Sun, 5 May 2019 01:35:12 +0200 Subject: [I18N] Update translation terms from Transifex --- addons/payment/i18n/cs.po | 28 ++++++++++++++-------------- addons/payment/i18n/fr.po | 7 ++++--- addons/payment/i18n/hr.po | 8 ++++---- addons/payment/i18n/mn.po | 2 +- addons/payment/i18n/sv.po | 5 +++-- 5 files changed, 26 insertions(+), 24 deletions(-) (limited to 'addons/payment') diff --git a/addons/payment/i18n/cs.po b/addons/payment/i18n/cs.po index bfdee4c6440..176c55bf96d 100644 --- a/addons/payment/i18n/cs.po +++ b/addons/payment/i18n/cs.po @@ -279,7 +279,7 @@ msgstr "" #: code:addons/payment/models/payment_acquirer.py:663 #, python-format msgid "A transaction %s with %s initiated." -msgstr "" +msgstr "Transakce %s s %s zahájena." #. module: payment #: code:addons/payment/models/account_invoice.py:36 @@ -328,7 +328,7 @@ msgstr "Ref. Odběratele" #. module: payment #: model:ir.model.fields,field_description:payment.field_payment_transaction__acquirer_reference msgid "Acquirer Reference" -msgstr "" +msgstr "Odkaz na příjemce platby" #. module: payment #: model:ir.model.fields,field_description:payment.field_payment_icon__acquirer_ids @@ -614,7 +614,7 @@ msgstr "Stát" #. module: payment #: model_terms:ir.actions.act_window,help:payment.action_payment_acquirer msgid "Create a new payment acquirer" -msgstr "" +msgstr "Vytvořit nového příjemce platby" #. module: payment #: model_terms:ir.actions.act_window,help:payment.action_payment_transaction @@ -1018,7 +1018,7 @@ msgstr "Zpráva" #. module: payment #: model:ir.model.fields,help:payment.field_payment_acquirer__post_msg msgid "Message displayed after having done the payment process." -msgstr "" +msgstr "Zpráva zobrazená po provedení platebního procesu." #. module: payment #: model:ir.model.fields,help:payment.field_payment_acquirer__pre_msg @@ -1066,7 +1066,7 @@ msgstr "Metoda" #: code:addons/payment/models/payment_acquirer.py:469 #, python-format msgid "Missing partner reference when trying to create a new payment token" -msgstr "" +msgstr "Při pokusu o vytvoření nového tokenu platby chybí odkaz na partnera" #. module: payment #: model:ir.model.fields,field_description:payment.field_payment_acquirer__name @@ -1099,7 +1099,7 @@ msgstr "" #. module: payment #: model_terms:ir.ui.view,arch_db:payment.pay msgid "No payment acquirer found." -msgstr "" +msgstr "Nebyl nalezen žádný příjemce platby." #. module: payment #. openerp-web @@ -1209,7 +1209,7 @@ msgstr "Kontakt" #. module: payment #: model:ir.model.fields,field_description:payment.field_payment_transaction__partner_name msgid "Partner Name" -msgstr "" +msgstr "Název partnera" #. module: payment #: selection:payment.acquirer.onboarding.wizard,payment_method:0 @@ -1219,7 +1219,7 @@ msgstr "" #. module: payment #: selection:payment.acquirer.onboarding.wizard,payment_method:0 msgid "Pay with another payment acquirer" -msgstr "" +msgstr "Platit jiným příjemcem plateb" #. module: payment #: selection:payment.acquirer.onboarding.wizard,payment_method:0 @@ -1282,7 +1282,7 @@ msgstr "Ikony platebních služeb" #. module: payment #: model:ir.model.fields,field_description:payment.field_payment_acquirer_onboarding_wizard__manual_post_msg msgid "Payment Instructions" -msgstr "" +msgstr "Platební pokyny" #. module: payment #: model:ir.model.fields,field_description:payment.field_payment_acquirer__journal_id @@ -1543,7 +1543,7 @@ msgstr "" #: model:ir.actions.act_window,name:payment.payment_token_action #: model:ir.ui.menu,name:payment.payment_token_menu msgid "Saved Payment Data" -msgstr "" +msgstr "Uložená platební data" #. module: payment #: model:ir.model.fields,field_description:payment.field_account_payment__payment_token_id @@ -1553,7 +1553,7 @@ msgstr "Uložený platební token" #. module: payment #: model:ir.model.fields,field_description:payment.field_payment_acquirer__token_implemented msgid "Saving Card Data supported" -msgstr "" +msgstr "Podporováno uložení karetních dat" #. module: payment #: model:ir.model.fields,field_description:payment.field_res_company__payment_onboarding_payment_method @@ -1842,7 +1842,7 @@ msgstr "" #: model_terms:ir.ui.view,arch_db:payment.account_invoice_view_form_inherit_payment #: model_terms:ir.ui.view,arch_db:payment.transaction_form msgid "Void Transaction" -msgstr "" +msgstr "Zrušená transakce" #. module: payment #. openerp-web @@ -2079,7 +2079,7 @@ msgstr "" #. module: payment #: model_terms:ir.ui.view,arch_db:payment.payment_tokens_list msgid "and more" -msgstr "" +msgstr "a více" #. module: payment #: model_terms:ir.ui.view,arch_db:payment.acquirer_form @@ -2129,7 +2129,7 @@ msgstr "" #. module: payment #: model_terms:ir.ui.view,arch_db:payment.acquirer_form msgid "tx_values: transaction values" -msgstr "" +msgstr "tx_values: transakční hodnoty" #. module: payment #: model_terms:ir.ui.view,arch_db:payment.acquirer_form diff --git a/addons/payment/i18n/fr.po b/addons/payment/i18n/fr.po index 9eb4f13cdd6..68caaec5249 100644 --- a/addons/payment/i18n/fr.po +++ b/addons/payment/i18n/fr.po @@ -4,10 +4,11 @@ # # Translators: # Nathan Noël , 2018 -# Alain van de Werve , 2018 # Fred Gilson , 2018 # Eloïse Stilmant , 2018 # Martin Trigaux, 2018 +# Alain van de Werve , 2018 +# Moka Tourisme , 2019 # msgid "" msgstr "" @@ -15,7 +16,7 @@ msgstr "" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2019-01-09 10:31+0000\n" "PO-Revision-Date: 2018-08-24 09:21+0000\n" -"Last-Translator: Martin Trigaux, 2018\n" +"Last-Translator: Moka Tourisme , 2019\n" "Language-Team: French (https://www.transifex.com/odoo/teams/41243/fr/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -634,7 +635,7 @@ msgstr "Créez une icône de paiement" #. module: payment #: model_terms:ir.actions.act_window,help:payment.payment_token_action msgid "Create a saved payment data" -msgstr "" +msgstr "Créer une donnée de paiement sauvegardée" #. module: payment #: model:ir.model.fields,field_description:payment.field_payment_acquirer__create_uid diff --git a/addons/payment/i18n/hr.po b/addons/payment/i18n/hr.po index 0b3376c2c8a..d6d854f7fe2 100644 --- a/addons/payment/i18n/hr.po +++ b/addons/payment/i18n/hr.po @@ -50,7 +50,7 @@ msgstr "" #. module: payment #: model_terms:ir.ui.view,arch_db:payment.payment_confirmation_status msgid "Communication: " -msgstr "" +msgstr "Komunikacija: " #. module: payment #: model_terms:ir.ui.view,arch_db:payment.pay @@ -784,7 +784,7 @@ msgstr "Fiksne međunarodne naknade" #. module: payment #: model:ir.model.fields,field_description:payment.field_payment_acquirer__inbound_payment_method_ids msgid "For Incoming Payments" -msgstr "" +msgstr "Za dolazna plaćanja" #. module: payment #: selection:payment.transaction,type:0 @@ -915,7 +915,7 @@ msgstr "Računi" #. module: payment #: selection:res.company,payment_acquirer_onboarding_state:0 msgid "Just done" -msgstr "" +msgstr "Upravo završeno" #. module: payment #: model:ir.model.fields,field_description:payment.field_payment_transaction__partner_lang @@ -1118,7 +1118,7 @@ msgstr "" #. module: payment #: selection:res.company,payment_acquirer_onboarding_state:0 msgid "Not done" -msgstr "" +msgstr "Nije gotovo" #. module: payment #: model:ir.model.fields,help:payment.field_account_payment__payment_token_id diff --git a/addons/payment/i18n/mn.po b/addons/payment/i18n/mn.po index a792499f3e3..c9731a25c12 100644 --- a/addons/payment/i18n/mn.po +++ b/addons/payment/i18n/mn.po @@ -682,7 +682,7 @@ msgstr "Харуулах эрэмийг тодорхойлно" #. module: payment #: model_terms:ir.ui.view,arch_db:payment.payment_confirmation_status msgid "Dismiss" -msgstr "" +msgstr "Явуулах" #. module: payment #: model:ir.model.fields,field_description:payment.field_payment_acquirer__display_name diff --git a/addons/payment/i18n/sv.po b/addons/payment/i18n/sv.po index 83bd7438519..6c386327f79 100644 --- a/addons/payment/i18n/sv.po +++ b/addons/payment/i18n/sv.po @@ -14,6 +14,7 @@ # Chrille Hedberg , 2019 # Kim Asplund , 2019 # Anders Wallenquist , 2019 +# Daniel Osser , 2019 # msgid "" msgstr "" @@ -21,7 +22,7 @@ msgstr "" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2019-01-09 10:31+0000\n" "PO-Revision-Date: 2018-08-24 09:21+0000\n" -"Last-Translator: Anders Wallenquist , 2019\n" +"Last-Translator: Daniel Osser , 2019\n" "Language-Team: Swedish (https://www.transifex.com/odoo/teams/41243/sv/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -292,7 +293,7 @@ msgstr "Konto" #. module: payment #: model:ir.model,name:payment.model_account_chart_template msgid "Account Chart Template" -msgstr "" +msgstr "Kontoplan" #. module: payment #: model:ir.model.fields,field_description:payment.field_payment_acquirer_onboarding_wizard__acc_number -- cgit v1.2.3 From 27aabeaad55eb5066b075497df87a89434973d00 Mon Sep 17 00:00:00 2001 From: Odoo Translation Bot Date: Sun, 5 May 2019 03:10:58 +0200 Subject: [I18N] Update translation terms from Transifex --- addons/payment/i18n/cs.po | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'addons/payment') diff --git a/addons/payment/i18n/cs.po b/addons/payment/i18n/cs.po index 79745e29fa6..ff3b2731974 100644 --- a/addons/payment/i18n/cs.po +++ b/addons/payment/i18n/cs.po @@ -234,7 +234,7 @@ msgstr "Ref. Odběratele" #. module: payment #: model:ir.model.fields,field_description:payment.field_payment_transaction_acquirer_reference msgid "Acquirer Reference" -msgstr "" +msgstr "Odkaz na příjemce platby" #. module: payment #: model:ir.model.fields,field_description:payment.field_payment_icon_acquirer_ids @@ -756,7 +756,7 @@ msgstr "Zpráva" #. module: payment #: model:ir.model.fields,help:payment.field_payment_acquirer_post_msg msgid "Message displayed after having done the payment process." -msgstr "" +msgstr "Zpráva zobrazená po provedení platebního procesu." #. module: payment #: model:ir.model.fields,help:payment.field_payment_acquirer_pre_msg @@ -799,7 +799,7 @@ msgstr "Zprávy" #: code:addons/payment/models/payment_acquirer.py:455 #, python-format msgid "Missing partner reference when trying to create a new payment token" -msgstr "" +msgstr "Při pokusu o vytvoření nového tokenu platby chybí odkaz na partnera" #. module: payment #: model:ir.model.fields,field_description:payment.field_payment_acquirer_name @@ -824,7 +824,7 @@ msgstr "Nikdy" #. module: payment #: model:ir.ui.view,arch_db:payment.pay msgid "No payment acquirer found." -msgstr "" +msgstr "Nebyl nalezen žádný příjemce platby." #. module: payment #. openerp-web @@ -880,7 +880,7 @@ msgstr "Kontakt" #. module: payment #: model:ir.model.fields,field_description:payment.field_payment_transaction_partner_name msgid "Partner Name" -msgstr "" +msgstr "Název partnera" #. module: payment #: model:payment.acquirer,name:payment.payment_acquirer_payu @@ -1120,7 +1120,7 @@ msgstr "" #: model:ir.actions.act_window,name:payment.payment_token_action #: model:ir.ui.menu,name:payment.payment_token_menu msgid "Saved Payment Data" -msgstr "" +msgstr "Uložená platební data" #. module: payment #: model:ir.model.fields,field_description:payment.field_account_payment_payment_token_id @@ -1130,7 +1130,7 @@ msgstr "Uložený platební token" #. module: payment #: model:ir.model.fields,field_description:payment.field_payment_acquirer_token_implemented msgid "Saving Card Data supported" -msgstr "" +msgstr "Podporováno uložení karetních dat" #. module: payment #: model:ir.model.fields,field_description:payment.field_payment_acquirer_sequence @@ -1327,7 +1327,7 @@ msgstr "" #. module: payment #: model:ir.ui.view,arch_db:payment.transaction_form msgid "Void Transaction" -msgstr "" +msgstr "Zrušená transakce" #. module: payment #. openerp-web @@ -1468,7 +1468,7 @@ msgstr "" #. module: payment #: model:ir.ui.view,arch_db:payment.payment_tokens_list msgid "and more" -msgstr "" +msgstr "a více" #. module: payment #: model:ir.ui.view,arch_db:payment.acquirer_form @@ -1518,7 +1518,7 @@ msgstr "" #. module: payment #: model:ir.ui.view,arch_db:payment.acquirer_form msgid "tx_values: transaction values" -msgstr "" +msgstr "tx_values: transakční hodnoty" #. module: payment #: model:ir.ui.view,arch_db:payment.acquirer_form -- cgit v1.2.3 From 41871bf5620b608e2200961323cc83c7cbd87442 Mon Sep 17 00:00:00 2001 From: Joren Van Onder Date: Wed, 1 May 2019 23:44:50 +0000 Subject: [FIX] payment: prevent duplicate payments with payment tokens When paying an eCommerce order with an acquirer which doesn't redirect (payment_flow: s2s) the "Pay Now" button is correctly disabled after clicking it. This prevents a user from clicking it multiple times and being charged multiple times. When paying with an existing payment token however the button was not disabled and the user gets no feedback his request is being processed. Charging an existing payment token takes a while (~5 seconds with Authorize) and so it's possible users will hit the button multiple times. This disables the button when reusing an existing payment token. Additionally it now uses the correct font awesome icon (fa-lock instead of fa-plus-circle). opw-1981064 closes odoo/odoo#33196 Signed-off-by: Nicolas Martinelli (nim) --- addons/payment/static/src/js/payment_form.js | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) (limited to 'addons/payment') diff --git a/addons/payment/static/src/js/payment_form.js b/addons/payment/static/src/js/payment_form.js index 3847141300e..0ba172c849e 100644 --- a/addons/payment/static/src/js/payment_form.js +++ b/addons/payment/static/src/js/payment_form.js @@ -29,6 +29,18 @@ odoo.define('payment.payment_form', function (require) { $('[data-toggle="tooltip"]').tooltip(); }, + disableButton: function (button) { + $(button).attr('disabled', true); + $(button).children('.fa-lock').removeClass('fa-lock'); + $(button).prepend(' '); + }, + + enableButton: function (button) { + $(button).attr('disabled', false); + $(button).children('.fa').addClass('fa-lock'); + $(button).find('span.o_loader').remove(); + }, + payEvent: function (ev) { ev.preventDefault(); var form = this.el; @@ -83,10 +95,7 @@ odoo.define('payment.payment_form', function (require) { return; } - $(button).attr('disabled', true); - $(button).children('.fa-plus-circle').removeClass('fa-plus-circle') - $(button).prepend(' '); - + this.disableButton(button); var verify_validity = this.$el.find('input[name="verify_validity"]'); if (verify_validity.length>0) { @@ -121,14 +130,10 @@ odoo.define('payment.payment_form', function (require) { } } // here we remove the 'processing' icon from the 'add a new payment' button - $(button).attr('disabled', false); - $(button).children('.fa').addClass('fa-plus-circle') - $(button).find('span.o_loader').remove(); + self.enableButton(button); }).fail(function (message, data) { // if the rpc fails, pretty obvious - $(button).attr('disabled', false); - $(button).children('.fa').addClass('fa-plus-circle') - $(button).find('span.o_loader').remove(); + self.enableButton(button); self.displayError( _t('Server Error'), @@ -191,6 +196,7 @@ odoo.define('payment.payment_form', function (require) { } } else { // if the user is using an old payment then we just submit the form + this.disableButton(button); form.submit(); } } -- cgit v1.2.3