47
47
def _get_imagepath(self,product):
48
48
attach_ids = self.pool.get('ir.attachment').search(self.cr, self.uid, [('res_model','=','product.product'), ('res_id', '=',product)])
49
49
datas = self.pool.get('ir.attachment').read(self.cr, self.uid, attach_ids)
51
52
# if there are several, pick first