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

Odoo 13 - sale.order.line

I have fields in a tree view:

<field name="field1" optional="hide"/>

<field name="field2" optional="hide"/>

<field name="field3" optional="hide"/>

<field name="select" optional="show"/>


When I make a selection in the field "select", I want set field1, field2, & field3 to "show" using @api.onchange('select') in the model.


How do I do that in the model?  

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 1 25
3357
2
thg 8 24
5828
6
thg 12 22
8754
1
thg 5 25
6002
0
thg 3 24
2140