summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxmo-odoo <xmo-odoo@users.noreply.github.com>2014-05-19 11:40:53 +0200
committerxmo-odoo <xmo-odoo@users.noreply.github.com>2014-05-19 11:40:53 +0200
commit201701f38c7cbb0b056c8bf680b671daa31235ad (patch)
treec5673084e094ff7eaf43ec76b09152755446a5f7
parent072485799c87d45c460c7aa76fb2f0e7be1b82ef (diff)
parentbd36f362818327ac728b2f5b3408da5589059270 (diff)
Merge pull request #38 from cysnake4713/master
[FIX] report set_html_image error
-rw-r--r--openerp/report/report_sxw.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/openerp/report/report_sxw.py b/openerp/report/report_sxw.py
index 1c31c5ec3ae..b4f90126b92 100644
--- a/openerp/report/report_sxw.py
+++ b/openerp/report/report_sxw.py
@@ -221,8 +221,8 @@ class rml_parse(object):
if not model:
model = 'ir.attachment'
try :
- id = int(id)
- res = self.pool[model].read(self.cr,self.uid,id)
+ ids = [int(id)]
+ res = self.pool[model].read(self.cr,self.uid,ids)[0]
if field :
return res[field]
elif model =='ir.attachment' :