Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged

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
Zrušit
Autor Nejlepší odpověď

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
Zrušit

Thanks for sharing!

Nejlepší odpověď

Here is complete information about the odoo hierarchic relations.

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

Avatar
Zrušit

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.

Related Posts Odpovědi Zobrazení Aktivita
1
dub 15
3741
0
led 25
1439
1
lis 24
1251
1
úno 24
1678
4
led 24
23409