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':{'form': %(base.res_partner_form)d, 'tree': %(base.res_partner_tree)d}}}"/>
when the module is installed %(base.res_partner_form)d is substitute by his id

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:
milestone icon 5.0.8
Started by
Christophe CHAUVET
Completed by
Christophe CHAUVET

Related branches

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.)

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.