Odoo:不可能在树视图中编辑记录吗? [英] Odoo: Make it impossible to edit a record in tree view?
本文介绍了Odoo:不可能在树视图中编辑记录吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在Odoo中,您无法像这样从树形视图创建或删除记录:
In Odoo you can make it impossible to create or delete records from the tree view like this:
<tree create="false" delete="false">
<field name="create_date" readonly="True"/>
</tree>
但是我仍然可以单击记录并转到该记录的形式. 有没有办法使无法单击这些记录并进行编辑?
But I can still click the records and go to the form of that record. Is there a way to make it impossible to click those records and edit them?
推荐答案
已找到它,需要使用editable="false"
:
<tree create="false" delete="false" editable="false">
</tree>
这篇关于Odoo:不可能在树视图中编辑记录吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文