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

How can I make many2one field records read-only when opened with an external link button. I do not want my user to edit the record while using an external link.

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

Not sure if I understand your question correctly, but you can add the following to the XML to prevent the user from opening the record on a many2one:

<attribute name="options">{"no_open":true}</attribute>
More information and screenshots: Block External Link
Ảnh đại diện
Huỷ bỏ
Tác giả

I would like to show the record to the user but don't let the user be able to edit while using an external link, who has edit rights to that record.

As far as I know, that's not possible.

Câu trả lời hay nhất

I have the same problem.

Is there any  solution now ? I'm in Odoo v16. 

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

I have the same problem .

Is there any  solution now ? I'm in Odoo v15. 

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 1 23
951
0
thg 8 22
970
3
thg 11 20
4236
3
thg 8 20
21673
2
thg 2 25
5899