Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
3 Risposte
11748 Visualizzazioni

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.







EDIT #1

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




Avatar
Abbandona
Autore Risposta migliore

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)]


Result

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


Avatar
Abbandona

Thanks for sharing!

Risposta migliore

Here is complete information about the odoo hierarchic relations.

https://vishnuarukat.xyz/articles/odoo-hierarchic-relationships

Avatar
Abbandona

thanks for sharing

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.

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

Post correlati Risposte Visualizzazioni Attività
1
apr 15
3740
0
gen 25
1438
1
nov 24
1251
1
feb 24
1678
4
gen 24
23407