تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
1917 أدوات العرض

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
نوفمبر 24
2956
1
نوفمبر 23
3243
1
سبتمبر 23
4692
0
أبريل 21
3560
0
مارس 25
1145