Odoo Help


How can I change the list view for a custom model?

on 6/26/13, 3:21 PM 3,600 views

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?


Jeudy Nicolas

--Jeudy Nicolas--

| 6 7 8
Pelousey, France
--Jeudy Nicolas--

- Linux administrator - Functional guy with OpenERP - Python, html, css, javascript developer OpenERP Ready Partner

Jeudy Nicolas
On 6/26/13, 6:12 PM


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"/>

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"/>

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.

on 6/26/13, 7:54 PM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)


Asked: 6/26/13, 3:21 PM
Seen: 3600 times
Last updated: 3/16/15, 8:10 AM