Skip to content
Snippets Groups Projects
Commit bd36f362 authored by cysnake4713's avatar cysnake4713
Browse files

[FIX] report localcontext setHtmlImage Method error #24 #36

parent 59354d5b
No related branches found
No related tags found
No related merge requests found
...@@ -221,8 +221,8 @@ class rml_parse(object): ...@@ -221,8 +221,8 @@ class rml_parse(object):
if not model: if not model:
model = 'ir.attachment' model = 'ir.attachment'
try : try :
id = int(id) ids = [int(id)]
res = self.pool[model].read(self.cr,self.uid,id) res = self.pool[model].read(self.cr,self.uid,ids)[0]
if field : if field :
return res[field] return res[field]
elif model =='ir.attachment' : elif model =='ir.attachment' :
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment