[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:
Denis Ledoux
2016-01-07 13:52:07 +01:00
parent 2afa1942ca
commit ff72139aff
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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