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

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


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

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

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

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 11 24
3126
1
thg 11 23
3375
1
thg 9 23
4859
0
thg 4 21
3641
0
thg 3 25
1291