Pinakin Nayi
OpenERP,
Info-city, Gandhinagar.
nayi_pinakin@yahoo.in
Mo. 08460643746
OpenERP,
Info-city, Gandhinagar.
nayi_pinakin@yahoo.in
Mo. 08460643746
To Display Image in your .rml Report in OpenERP
in .rml file
<para>[[ images['image'] and setTag('para','image') or removeParentNode('para') ]][[ images['preview'] ]]</para>
in the report.py
def _get_imagepath(self,order):
attach_ids = self.pool.get('product.images').search(self.cr, self.uid, [('product_id', '=',order)])
datas = self.pool.get('product.images').read(self.cr, self.uid, attach_ids)
return datas
attach_ids = self.pool.get('product.images').search(self.cr, self.uid, [('product_id', '=',order)])
datas = self.pool.get('product.images').read(self.cr, self.uid, attach_ids)
return datas