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.
我希望内联中的treview可编辑,我也想禁用按钮创建。问题是:当我隐藏按钮创建(使用arrtibute create = false)时,我无法将我的版本保存在树上。
1 个解决方案
#1
1
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.
尝试如下。当将光标放在“pod_date”字段上时,键入数据并按“Enter”键。数据将记录到db表中。
<tree string="Picking list" create="false">
<field name="sale_id" readonly="1"/>
<field name="pod_date" />
</tree>
#1
1
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.
尝试如下。当将光标放在“pod_date”字段上时,键入数据并按“Enter”键。数据将记录到db表中。
<tree string="Picking list" create="false">
<field name="sale_id" readonly="1"/>
<field name="pod_date" />
</tree>