Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
1858 Представления

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
2910
1
нояб. 23
3200
1
сент. 23
4621
0
апр. 21
3519
0
мар. 25
1061