콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
11763 화면

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
5732
1
3월 21
4172
2
3월 22
2072
2
3월 25
350
2
4월 24
928