Odoo Help

0

image aspect ratio not working?

By
Martin Varela
on 11/29/13, 1:40 PM 932 views

I´m having a problem in displaying employees images. If I upload an image to a employee, it shows the image but cuts it to fit the image-box. In image.py the comments say it maintains the aspect ratio but it doesn´t.

The solution I´ve found, is to display the field 'image' in the view and not 'image_medium' or 'image_small'. Only with 'image' is fits the image keeping the aspect ratio.

Anyone knows how images work and why they don´t keep aspect ratio?

Thanks, Martin

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

0 follower(s)

Stats

Asked: 11/29/13, 1:40 PM
Seen: 932 times
Last updated: 3/16/15, 8:10 AM