Odoo Help


Why does image not obey size option?

Jeff Beidler
on 2/19/15, 12:51 PM 1,605 views

I have this in a table inside my Qweb view:

                            <span t-field="line.product_id.image_small"
                                t-field-options='{"widget": "image", "size": [64,64]}' />

However, the image is still being displayed at an enlarged size, to take up the space in the table cell.  This makes it blurry.  How do I keep it to the original size, or otherwise control the display dimensions?


try this : 

    .openerp .Your_custom_class > img { height: 6000px; width: 10000px; }
    .openerp .oe_form .oe_form_field_image img { max-width:656px; max-height: 1056px; }

<field name="picture" widget="image" class="Your_custom_class"/>

On 7/4/17, 7:24 AM

I'm having the same problem.....

On 10/21/16, 6:06 AM

I'm having the same problem, Did you solve it? 

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

2 follower(s)


Asked: 2/19/15, 12:51 PM
Seen: 1605 times
Last updated: 4/11/18, 9:24 AM