diff --git a/addons/website_quote/controllers/main.py b/addons/website_quote/controllers/main.py index 847aaf3ae91..81c7ef38ee7 100644 --- a/addons/website_quote/controllers/main.py +++ b/addons/website_quote/controllers/main.py @@ -249,6 +249,12 @@ class sale_quote(http.Controller): 's2s_cb_eval': "self.env['sale.order']._confirm_online_quote(self.sale_order_id.id, self)" }, context=context) tx = transaction_obj.browse(cr, SUPERUSER_ID, tx_id, context=context) + # update quotation + request.registry['sale.order'].write( + cr, SUPERUSER_ID, [order.id], { + 'payment_acquirer_id': acquirer_id, + 'payment_tx_id': tx_id + }, context=context) # confirm the quotation if tx.acquirer_id.auto_confirm == 'at_pay_now':