[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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user