Odoo Help

0

How to rescale Images on a report(pdf)?

By
Nacho
on 10/24/16, 2:50 AM 376 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?

Thanks

3

Bejaoui Souheil

--Bejaoui Souheil--
883
| 2 1 4
Rennes, France
--Bejaoui Souheil--

Odoo developer,  functional and technical consultant

souheil_bejaoui@hotmail.fr

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.

0
Nacho
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.

Register

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)

Stats

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