Odoo Help


This community 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.


image aspect ratio not working?

Martin Varela
on 11/29/13, 1:40 PM 756 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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)


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