Hello there ,
I have added a column of image to my object and i want to display that column in the report i have searched in the local packages but coukdnot find any help can anyone take me out of this issue
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hello there ,
I have added a column of image to my object and i want to display that column in the report i have searched in the local packages but coukdnot find any help can anyone take me out of this issue
In rml report you can use this:
<image x="1.0cm" y="24.0cm" width="5.0cm">[[ company.logo or removeParentNode('image') ]]</image>
Im mako/qweb reports
<img src="data:image/png;base64,${line.product_id.image}" />
<img src="data:image/jpeg;base64,${company.logo}" />
(or)
On your mako template:
${helper.embed_image('png', object.image,50,50) | n}
Where
helper.embed_image(image_type, object_image,width,height)
Hello @Vasanth,
A question remains and I didn't find my answer in mako doc...
Where does "helper" come from ?
(I work on odoo 10)
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up