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

Hi guys,

I'm actually trying Odoo to use on our business as our main inventory service. So far it's been great but I'm unable enlarge the images shown on the product page (they are pretty small).
I've done my research and I'm on developer mode, I can see the image is "image_192" 8as you can see on the photo below) but I don't know how to access the code to apply a new size. I believe it's an easy fix but I'm not seeing the light quite now.

I'll appreciate any help.



Many thanks

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

Hi,
You can inherit the view External ID: ‘product.product_template_form_view.

And update attribute ‘options’ of field "image_1920" same as follows:

<field name="image_1920" position="attributes">
<attribute name="options">{'size': [150, 150]}</attribute>
</field>

Result:

Regards

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 12 23
1098
4
thg 6 25
1999
1
thg 6 25
841
0
thg 2 25
896
0
thg 1 25
3