Reputation: 3057
I have a tree view in my custom module. When user clicks on an item of tree view it takes user to the form view and user have to click edit button in order to edit the form. I want to open the form view automatically in edit mode. So, user didn't have to click specially on Edit button
Upvotes: 2
Views: 1481
Reputation: 401
Pls try with this in ir.actions.act_window:
<field name='flags'>{'initial_mode': 'edit'}</field>
Upvotes: 1
Reputation: 438
Use this:
In form's ir.actions.act_window record add:
<field name='target'>inline</field>
Upvotes: 0