Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
1955 Näkymät

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


Avatar
Hylkää
Paras vastaus

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

Avatar
Hylkää
Tekijä

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

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
2
marrask. 24
2996
1
marrask. 23
3310
1
syysk. 23
4754
0
huhtik. 21
3584
0
maalisk. 25
1165