Merge pull request #38 from cysnake4713/master
[FIX] report set_html_image error
This commit is contained in:
commit
201701f38c
|
@ -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' :
|
||||
|
|
Loading…
Reference in New Issue