Odoo - open a form in editable mode

1.3k views Asked by At

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

2

There are 2 answers

0
Phong Vy On

Pls try with this in ir.actions.act_window:

<field name='flags'>{'initial_mode': 'edit'}</field>
3
rahul mehra On

Use this:

In form's ir.actions.act_window record add:

<field name='target'>inline</field>