Having an action open a specific view
Window actions automatically determine the view to be used if none is given, but sometimes we want an action to open a specific view.
We will create a basic form view for the res.partner
model, and then we will create a new window action specifically open that form view.
How to do it...
- Define the
partner
minimal tree and form view:Â Â Â Â <record id="view_all_customers_tree" model="ir.ui.view"> Â Â Â Â Â Â Â Â <field name="name">All customers</field> Â Â Â Â Â Â Â Â <field name="model">res.partner</field> Â Â Â Â Â Â Â Â <field name="arch" type="xml"> Â Â Â Â Â Â Â Â Â Â Â Â <tree> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â &...