Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
10821 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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:

Ảnh đại diện
Huỷ bỏ

<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,

Câu trả lời hay nhất
xpath expr="//form" position="attributes"
attribute name="readonly">True attribute
xpath
Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 4 22
3517
1
thg 3 18
6795
2
thg 5 25
3866
0
thg 6 24
1255
2
thg 3 24
2500