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

Hello,


We would like to display product fields that were created via Studio (example: x_studio_ei) on the product detail page. 


How is this possible?


We use Odoo online Custom. 


Thank you very much for your support!

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

Sorry, I should have expressed myself correctly. Unfortunately, I can't put any pictures online. 


For example, I would like that when we activate the button at the allergens "Field: x_studio_ei Model: product.template, Type: boolean, Widget On/Off (boolean_toggle), Context: {}" it appears on the product detail page in the shop.


I would also like this information "Field: x_studio_product_feature_4, Model: product.template, Type: char, Context: {}" to also be displayed on the product detail page in the shop.

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

You need to modify the XML view for the product template. First, activate developer mode.
Locate the Product Template View: Navigate to Settings > Technical > User Interface > Views and search for the view named "product.template.form" or a similar name related to the product form you are trying to modify. Then edit the XML view and add your custom field to the desired location within the XML.
You should place the tag field tag with name="x_studio_ei" in your desired location.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 2 25
1083
1
thg 1 24
2051
0
thg 12 16
5827
0
thg 8 16
3407
4
thg 5 25
2943