跳至内容
菜单
此问题已终结
2 回复
9718 查看

I want to make 'mrp.unbuild' this model's entire form view readonly. The following from Odoo 13 is not working in V15.

https://www.odoo.com/forum/help-1/is-there-any-way-that-i-can-make-a-entire-form-readonly-132701

形象
丢弃
最佳答案

I assume your idea was not allow user to edit the form, in that case, you can try to set form view to edit="0", it will prevent user to click on "Edit" button.

Example:

形象
丢弃

<form string="Calendar View/Edit" edit="0">
// your code
</form>

What if we want the form to be readonly for a specific group except for activity_ids (see mail.activity in the chatter). In other words, the users who have the group in their access rights can see the fields of the form and read, create or edit or delete activities.
Thanks in advance,

最佳答案
xpath expr="//form" position="attributes"
attribute name="readonly">True attribute
xpath
形象
丢弃
相关帖文 回复 查看 活动
0
4月 22
2873
1
3月 18
6250
2
5月 25
2906
0
6月 24
920
2
3月 24
2020