SadZey
SadZey

Reputation: 99

How to make a tree editable on top, with "create" button disabled

I want to get a treview editable inline, I want also to disable the button create. the problem is: when I hide the button create ( with the arrtibute create=false) I can't save my edition on the tree.

Upvotes: 1

Views: 848

Answers (1)

Thu Ra
Thu Ra

Reputation: 2063

try as follow. and when put the cursor on "pod_date" field, keying the data and press the "Enter" key. the data will record into the db table.

<tree string="Picking list" create="false">
                    <field name="sale_id" readonly="1"/>
                    <field name="pod_date" />
</tree>

Upvotes: 1

Related Questions