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

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
يوليو 23
6346
1
مارس 21
4567
2
مارس 22
2555
2
مارس 25
767
2
أبريل 24
1243