How to properly inherit m2o, o2m fields as well as their views and apply domains
Inherited views are not displayed in many2one or one2many widgets. Instead they construct a default view. Also, domains have no effect. Consequently useability is compromised.
I attach a module which has two models: inheritance_
If you run this you will see the tree view has columns 'Complete Name' 'Child Categories' and 'Some Number'. If you switch to the form view you will see that the one2many widget is only showing one column 'Category Name'. Search on 'Parent Category' and you see the same view. Both these views should be the same as the tree view with three columns.
The second model is inheritance_
The category_view specifies a domain of [('child_
You can override fields_view_get() to force the right view to be used, but it shouldn't be necessary.
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Olivier Dony (Odoo)
- Solved:
- Last query:
- Last reply:
This question was originally filed as bug #674277.