Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
2895 Vizualizări

Hi everybody !

I try to link 3 types of objects :

Categories :

  • Colors
  • Countries
  • ...

Subcategories :

  • Colors :
    • Red
    • Blue
    • Yellow

Under subcategories :

  • Colors :
    • Red
      • Dark red
      • Normal red

My problem is to define if the first category is selected then only objects which correspond with this category must appear.

Someone could help me ? I already tried several things with code but no results.

Many thanks in advance.

JMB

Imagine profil
Abandonează

Based on this hierarchical can u able to create master screen? once master screen completed in the main form can filter using domain condition.

Autor

Thanks for your answer. I don't exactly know what is a master screen. Is it easy to create that ?

I don't understand what you want: A/Select Red and have only red (without Dark red or Normal Red )\n OR B/select Red and have all subcategorizing object(RED and DARK RED and NORMAL RED)

Autor

If I select "Color" then I can see subcategories "Red" "Blue" and "Yellow". And if I select the subcategorie "Red" then I can see "Dark red" and "Normal red". Subcategories depend of Categories. And under subcategories depend of subcategories. Is it more clear now ?

I don't see any problem. Do you use parent category field of category object? On wich object do you want to use this categories?Product? In this case you have already a menu that do the job.

Autor

I don't know which code I have to use because I can't use something existant in OpenERP. For example, I have to create a new field "selection type" in "Invoice form" which one shows "Contacts" related to one partner. Another thing is to create 3 levels of categories and subcategories for articles.

Autor Cel mai bun răspuns

I don't know which code I have to use to do it.

Imagine profil
Abandonează