コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
12216 ビュー

I created a new custom model and added it to a menu. Now I can see the list view, but it contains only one of the fields - and a relatively unimportant one. How can I change the list view, so that other fields are show as well?

アバター
破棄
最善の回答

Hello,

You have to create a tree_view for your model.

default one is like this:

<?xml version="1.0"?>
<tree string="My view">
    <field name="name"/>
</tree>

just update the default one by adding fields you need:

<?xml version="1.0"?>
<tree string="My view">
    <field name="name"/>
        <field name="my_first_field"/>
        <field name="one_other"/>
</tree>

To do this, enter developper mode got to your list view, and click on upper left selection box and choose "Edit TreeView"

You will see this popup:

image description

enter name, model and change list of fields you want to have.

アバター
破棄
著作者

Thanks, this works like a charm.

関連投稿 返信 ビュー 活動
2
7月 23
6651
1
3月 21
4771
2
3月 22
2844
2
3月 25
943
2
4月 24
1384