From e63a1d290fff2c8133df18f132c3d76f3613a0a6 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Tue, 17 Sep 2019 17:10:01 +0000 Subject: [PATCH] [FIX] payment_stripe_sca: adapt to new version Oversight of previous forward-port. --- .../static/src/js/payment_processing.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/addons/payment_stripe_sca/static/src/js/payment_processing.js b/addons/payment_stripe_sca/static/src/js/payment_processing.js index adb57e6221a..42d158cf08d 100644 --- a/addons/payment_stripe_sca/static/src/js/payment_processing.js +++ b/addons/payment_stripe_sca/static/src/js/payment_processing.js @@ -1,11 +1,12 @@ odoo.define('payment_stripe_sca.processing', function (require) { 'use strict'; + var publicWidget = require('web.public.widget'); var ajax = require('web.ajax'); - var rpc = require('web.rpc') - var PaymentProcessing = require('payment.processing'); + var rpc = require('web.rpc'); + require('payment.processing'); - return PaymentProcessing.include({ + publicWidget.registry.PaymentProcessing.include({ init: function () { this._super.apply(this, arguments); this._authInProgress = false; @@ -45,4 +46,4 @@ odoo.define('payment_stripe_sca.processing', function (require) { } }, }); -}); \ No newline at end of file +});