Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3 Trả lời
7466 Lượt xem

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?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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"/>


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
4
thg 12 19
39210
2
thg 6 24
12188
1
thg 3 15
19463
3
thg 7 25
8666
1
thg 7 25
1965