[FIX] website_sale: transaction error

When an error occurs during the transaction, the customer must receive
a message to inform him.

opw:645705
This commit is contained in:
Goffin Simon 2015-08-05 12:47:39 +02:00
parent 9699f510e4
commit 4f91dc371c
1 changed files with 2 additions and 2 deletions

View File

@ -766,8 +766,8 @@ class website_sale(http.Controller):
message = '<p>%s</p>' % _('Your transaction is waiting confirmation.')
if tx.acquirer_id.post_msg:
message += tx.acquirer_id.post_msg
else:
message = '<p>%s</p>' % _('Your transaction is waiting confirmation.')
elif state == 'error':
message = '<p>%s</p>' % _('An error occured during the transaction.')
validation = tx.acquirer_id.validation
return {