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

hi,

how can i get some thing like this bellow picture, one list with one combo

when changing the combo value, the grid show all data related with this value.

i dont create new table in database, only select data from existing tables

filter table

thx in advance.

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

This is done in Odoo by default. 

Open the view for Accounting --> Journal Entries --> Journal Items

You will find something very similair. It is done using javascript. I do not know how that is built, for I do not have that expertise in JS just yet, but using the development guide you should be able to inherit this widget and use a custom version in your own tree view.

Ảnh đại diện
Huỷ bỏ
Tác giả

thank you so much Ludo

Câu trả lời hay nhất

As far as I know, Odoo doesn't come with something like this by default. You can have tree views that are similar: you can choose the "value" with an expandable tree, and then click on it to show in a list view all the records with that value.

If you really want something more like your example, you'll have to write (or make someone write for you) a custom widget that you can use in views.

Ảnh đại diện
Huỷ bỏ
Tác giả

can you help me with any guide how to create it. thank you Leonardo.

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 9 22
1971
2
thg 9 25
141
1
thg 9 25
146
1
thg 8 25
233
0
thg 7 25
1013