April 2016
Beginner to intermediate
400 pages
9h 16m
English
Window actions automatically determine the view to be used, but sometimes we want an action to open a specific view.
We will create a basic form view for the partner model and make the window action specifically open it.
<record id="form_all_customers" model="ir.ui.view">
<field name="name">All customers</field>
<field name="model">res.partner</field>
<field name="arch" type="xml">
<form>
<group>
<field name="name" />
</group>
</form>
</field>
</record><record id="action_all_customers_form" model="ir.actions.act_window.view"> <field name="act_window_id" ref="action_all_customers" /> <field name="view_id" ref="form_all_customers" ...