Merge pull request #38 from cysnake4713/master

[FIX] report set_html_image error
This commit is contained in:
xmo-odoo 2014-05-19 11:40:53 +02:00
commit 201701f38c
1 changed files with 2 additions and 2 deletions

View File

@ -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' :