Ancient
Ancient

Reputation: 3057

Odoo - open a form in editable mode

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

Answers (2)

Phong Vy
Phong Vy

Reputation: 401

Pls try with this in ir.actions.act_window:

<field name='flags'>{'initial_mode': 'edit'}</field>

Upvotes: 1

rahul mehra
rahul mehra

Reputation: 438

Use this:

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

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

Upvotes: 0

Related Questions