Choose which tree,form view on search button in many2one
Registered by
Christophe CHAUVET
In many2one, add the possibility to choose the tree or form view when click on search button.
We use context to do that in XML view as
<field name="partner_id" context="{'view': {'res.partner'
when the module is installed %(base.
Blueprint information
- Status:
- Complete
- Approver:
- None
- Priority:
- Undefined
- Drafter:
- Christophe CHAUVET
- Direction:
- Needs approval
- Assignee:
- Christophe CHAUVET
- Definition:
- Approved
- Series goal:
- Proposed for 5.0
- Implementation:
- Implemented
- Milestone target:
- 5.0.8
- Started by
- Christophe CHAUVET
- Completed by
- Christophe CHAUVET
Related branches
Related bugs
Sprints
Whiteboard
Functionnality implement
work with the standard client
After talk with Fabien, we add model name in the context, because context available, for this model and related model. Model related doesn't use form or tree who was not theirs.
This functionnality was implement with _view_ref (form_view_ref, tree_view_ref, etc.)
(?)