From f4352676806bb467e96dedeba403b1e51368e4ea Mon Sep 17 00:00:00 2001 From: rde Date: Wed, 25 Oct 2017 12:46:18 +0200 Subject: [PATCH] [FIX] website_quote: missing args on route throwing error Before this commit, trying to pay a sale order from portal would throw an error * create an order in back end, set a partner, a product, a quotation template and 'Online Payment' as Confirmation Mode; * confirm the order; * go to the order in portal (/quote/XX) and click on 'Pay Now'; It throws a server error because route is being called with unexpected keyword arguments like success_url, error_url, callback_method. --- addons/website_quote/controllers/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/website_quote/controllers/main.py b/addons/website_quote/controllers/main.py index 3cb6a29ce85..1a150308405 100644 --- a/addons/website_quote/controllers/main.py +++ b/addons/website_quote/controllers/main.py @@ -168,7 +168,7 @@ class sale_quote(http.Controller): # note dbo: website_sale code @http.route(['/quote//transaction/'], type='json', auth="public", website=True) - def payment_transaction_token(self, acquirer_id, order_id, save_token=False,access_token=None): + def payment_transaction_token(self, acquirer_id, order_id, save_token=False,access_token=None, **kwargs): """ Json method that creates a payment.transaction, used to create a transaction when the user clicks on 'pay now' button. After having created the transaction, the event continues and the user is redirected