I would like to add two fields to a view, category and subcategory, both meant to be fields where the user can choose from a ser of options.
But I would like the options on subcategory to depend on the value that is currently selected on category.
An illustrative example:
Category could be one of [Arts, Science]
Subcategory,
if they picked Arts, one of [Literature, Music, Painting]
if they picked Science, one of [Biology, CS, Math]
Can you help me accomplish this?
Also, if you know of a module in Odoo which already does a similar thing I could just look at the code and learn from that.
Edit: Thanks niyas, I'll try it out. I'll accept your answer as soon as I get enough karma.