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

I want to show a list view, in this page of the notebook, the list view should only show some fields from the same notebook


形象
丢弃
最佳答案

Hi,
To create a list view inside the notebook in a form view you can check the below example:

<notebook>
                            <page string="Page Name" name="page_name" >
                                <field name="your_one_2_many_field">// one2many field related to the corresponding list view model
                                    <tree editable="bottom">
                                        //Add the fields to show in the list view
                                        <field name="field_1" />
                                        <field name="field_2" />
                                        <field name="field_3" />
                               
                                    </tree>
                                </field>
                            </page>
</notebook>

Hope it helps

形象
丢弃
编写者

I have to show the fields many2one fields in the same notebook, so I used the approach to store those many2one fields data in another model, and then show those new model fields in that view as a tree and it worked properly, thank you

相关帖文 回复 查看 活动
2
11月 24
2751
1
11月 23
3110
1
9月 23
4507
0
4月 21
3451
0
3月 25
937