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

In Odoo it's possible to add extra fields to product pages, but most of them are related to products and not to variants, for example:

1. enable developer mode

2. go to website-> configuration-> websites and select website

3. In the ‘product page extra fields’ tab, add the desired field(s) from the list.

However, when using variants, this is insufficient because all the fields are related to ‘product’ and not ‘product.product’.

How can this be solved?

Thanks

Ricardo

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

If you want to work with variant specific fields from (Product Variant) product.product, you'll need to customize the logic to support selecting fields from both (Product) product.template and (Product Variant) product.product, and possibly handle the differences in how these models relate. This involves some Python and view-level customization.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 9 21
1662
1
thg 5 25
3237
0
thg 7 23
1725
0
thg 10 21
3524
0
thg 4 25
821