Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
7532 มุมมอง

I have this in a table inside my Qweb view:

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

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 : 

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

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


อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
4
ธ.ค. 19
39367
2
มิ.ย. 24
12287
1
มี.ค. 15
19590
3
ก.ค. 25
8867
Best product image size and resolution? แก้ไขแล้ว
1
ก.ค. 25
2143