Odoo Help


How to get a collapse/expand product categories view?

Pascal Tremblay
on 9/2/16, 5:41 PM 1,702 views

Hello all,

We are on Odoo 8.

In the chart of accounts view, we can collapse or expand the view.

In the product categories view, even if we modify the action view type for "tree", lines are not collapsible and not expandable. All the categories appears.

How to get the same view than "chart of accounts" in the "product categories" view?

Thanks to help.


Where is the code who makes that little triangles appear in the "chart of accounts" view? May be I could imitate this code for my "product categories".


Pascal Tremblay

--Pascal Tremblay--
| 5 3 7
Alma, Canada
--Pascal Tremblay--

Pascal Tremblay
On 9/3/16, 3:53 PM

Here is our answer to this problem. It works now!

In the view product.product_category_list_view

Here, modify this field :

Child Field (field_parent) = child_id

In the product.product_category_action_form

Here modify these fields :

View Type (view_type) = Tree

Domain Value (domain) = [('parent_id','=',False)]


Now we have the little expand/collapse triangles at the left of our categories

Thanks for sharing!

Ermin Trevisan
on 9/4/16, 2:26 AM
--Hilar AK--



Hilar AK
On 6/4/18, 4:25 AM

Here is complete information about the odoo hierarchic relations.


thanks for sharing

on 6/11/18, 12:08 PM
Naps get you did a great blog, that's why

On Mon, 11 Jun 2018, 9:39 p.m. napster, <vishnuaa007@gmail.com> wrote:

thanks for sharing

Sent by Odoo S.A. using Odoo.

Hilar AK
on 6/11/18, 3:39 PM

#napster you did a great job! , this hell of forum giving 400 bad requests when I am editing prev comment.

Hilar AK
on 6/11/18, 3:46 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

1 follower(s)


Asked: 9/2/16, 5:41 PM
Seen: 1702 times
Last updated: 6/4/18, 4:25 AM