diff --git a/openerp/report/report_sxw.py b/openerp/report/report_sxw.py index 1c31c5ec3ae5e4fe4900bfc3b7ab410ff28dc958..b4f90126b929381285693cf3c2a59c3a976f8ace 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' :