[FIX] website_quote: message_post expects the attachments to be NOT in base64 format (opw 607477)

This commit is contained in:
Martin Trigaux 2014-05-16 16:47:29 +02:00
parent 3c033c76d4
commit e30aae5044
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ class sale_quote(http.Controller):
order = order_obj.browse(request.cr, SUPERUSER_ID, order_id)
if token != order.access_token:
return request.website.render('website.404')
attachments=sign and [('signature.png', sign)] or []
attachments=sign and [('signature.png', sign.decode('base64'))] or []
order_obj.signal_order_confirm(request.cr, SUPERUSER_ID, [order_id], context=request.context)
message = _('Order signed by %s') % (signer,)
self.__message_post(message, order_id, type='comment', subtype='mt_comment', attachments=attachments)