From d9134d7331751577c9afa39d7e730d9c8ed479fc Mon Sep 17 00:00:00 2001 From: "Lucas Perais (lpe)" Date: Fri, 22 Sep 2017 10:20:32 +0200 Subject: [PATCH] [FIX] base: Py3 fix in ir_action_report --- odoo/addons/base/ir/ir_actions_report.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odoo/addons/base/ir/ir_actions_report.py b/odoo/addons/base/ir/ir_actions_report.py index 27215611d0b..73289ea9619 100644 --- a/odoo/addons/base/ir/ir_actions_report.py +++ b/odoo/addons/base/ir/ir_actions_report.py @@ -490,7 +490,7 @@ class IrActionsReport(models.Model): # Check special case having only one record with existing attachment. if len(save_in_attachment) == 1 and not pdf_content: - return base64.decodestring(save_in_attachment.values()[0].datas) + return base64.decodestring(list(save_in_attachment.values())[0].datas) # Create a list of streams representing all sub-reports part of the final result # in order to append the existing attachments and the potentially modified sub-reports