summaryrefslogtreecommitdiff
path: root/addons/website_quote/controllers/main.py
diff options
context:
space:
mode:
authorrde <rde@odoo.com>2017-10-25 12:46:18 +0200
committerThibault Delavallée <tde@odoo.com>2017-10-26 12:54:38 +0200
commitf4352676806bb467e96dedeba403b1e51368e4ea (patch)
tree80c231171c4d92d28ff2c5e255abb5b2ede90ab4 /addons/website_quote/controllers/main.py
parent1a6fd2f9578dec8609648ac5a49851ae431d18b1 (diff)
[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.
Diffstat (limited to 'addons/website_quote/controllers/main.py')
-rw-r--r--addons/website_quote/controllers/main.py2
1 files changed, 1 insertions, 1 deletions
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/<int:order_id>/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