跳至内容
菜单
此问题已终结
2 回复
4413 查看

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.

形象
丢弃
最佳答案

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.

形象
丢弃
编写者

thank you so much Ludo

最佳答案

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.

形象
丢弃
编写者

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

相关帖文 回复 查看 活动
1
9月 22
1918
1
8月 25
17
0
7月 25
889
1
5月 25
1626
1
5月 25
2746