Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
1993 มุมมอง

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

Related Posts ตอบกลับ มุมมอง กิจกรรม
2
พ.ย. 24
3075
Blank Page After Logged in. แก้ไขแล้ว
1
พ.ย. 23
3362
1
ก.ย. 23
4834
0
เม.ย. 21
3617
0
มี.ค. 25
1254