[FIX] website_sale, website_quote: pay now confirmation email
When configuring the payment acquirer with the confirmation `at_pay_now`, meaning the sale order has to be confirmed when clicking on the "Pay now" button, instead of waiting for the payment confirmation, the confirmation email wasn't not sent. opw-665697
This commit is contained in:
@@ -258,6 +258,6 @@ class sale_quote(http.Controller):
|
||||
|
||||
# confirm the quotation
|
||||
if tx.acquirer_id.auto_confirm == 'at_pay_now':
|
||||
request.registry['sale.order'].action_button_confirm(cr, SUPERUSER_ID, [order.id], context=request.context)
|
||||
request.registry['sale.order'].action_button_confirm(cr, SUPERUSER_ID, [order.id], context=dict(request.context, send_email=True))
|
||||
|
||||
return tx_id
|
||||
|
||||
@@ -780,7 +780,7 @@ class website_sale(http.Controller):
|
||||
|
||||
# confirm the quotation
|
||||
if tx.acquirer_id.auto_confirm == 'at_pay_now':
|
||||
request.registry['sale.order'].action_button_confirm(cr, SUPERUSER_ID, [order.id], context=request.context)
|
||||
request.registry['sale.order'].action_button_confirm(cr, SUPERUSER_ID, [order.id], context=dict(request.context, send_email=True))
|
||||
|
||||
return tx_id
|
||||
|
||||
|
||||
Reference in New Issue
Block a user