summaryrefslogtreecommitdiff
path: root/addons/payment/static/src/js/payment_processing.js
diff options
context:
space:
mode:
authorJohan Demaret Rivarola <jde@odoo.com>2019-07-11 15:31:19 +0000
committerDamien Bouvy <dbo@odoo.com>2019-08-16 15:52:39 +0000
commite01d559f9d558ac0a2600cc18efbd011efd26114 (patch)
treeac9895353a549c16d1d4fd645da4ab3be3e164d3 /addons/payment/static/src/js/payment_processing.js
parentd72117dcd072105ea10552c70a4b423cc6575a3c (diff)
[IMP] payment: support SEPA Direct Debit acquirer
The purpose of this commit is to expose SEPA Direct Debit acquirer to the Odoo community edition. The dedicated module, though, is restricted to the enterprise edition. Minor changes in following modules: - base: added ir.module.module record - payment: - added data to expose the new payment acquirer. - added 'to_buy' field to track whether the payment acquirer is restricted to enterprise users. - allow multi word payment acquirer name. It was breaking on the first underscore. task-1870363 closes odoo/odoo#26427
Diffstat (limited to 'addons/payment/static/src/js/payment_processing.js')
-rw-r--r--addons/payment/static/src/js/payment_processing.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/payment/static/src/js/payment_processing.js b/addons/payment/static/src/js/payment_processing.js
index 361cc3dbf4c..53b688be06a 100644
--- a/addons/payment/static/src/js/payment_processing.js
+++ b/addons/payment/static/src/js/payment_processing.js
@@ -71,7 +71,7 @@ odoo.define('payment.processing', function (require) {
'tx_error': [],
};
- if (transactions.length > 0 && transactions[0].acquirer_provider == 'transfer') {
+ if (transactions.length > 0 && ['transfer', 'sepa_direct_debit'].indexOf(transactions[0].acquirer_provider) >= 0) {
window.location = transactions[0].return_url;
return;
}