Odoo Help


How to rescale Images on a report(pdf)?

on 10/24/16, 2:50 AM 825 views

I'm trying to rescale images inside a report because they are big, but is not working. I'm trying with t-field-options='{"widget": "image", "size":[512,512]}' but it does nothing. I've tried with css/styles too but it isn't changing the size. What else could I try?



Bejaoui Souheil

--Bejaoui Souheil--
--Bejaoui Souheil--

Odoo developer,  functional and technical consultant


Bejaoui Souheil
On 10/24/16, 3:23 AM

Hi Nacho,

This how company logo is set on report header

<img t-if="company.logo" t-att-src="'data:image/png;base64,%s' % company.logo" style="max-height: 45px;"/>

Best regards.

On 10/24/16, 3:53 AM

A lot of thanks Bejaoui Souheil, the problem was the widget option, with your code I can give to the image the size I want

Happy to Help :)

Bejaoui Souheil
on 10/24/16, 3:54 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 10/24/16, 2:50 AM
Seen: 825 times
Last updated: 10/24/16, 3:53 AM