Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
6115 มุมมอง

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.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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
อวตาร
ละทิ้ง
ผู้เขียน

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.

คำตอบที่ดีที่สุด

I have the same problem.

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

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

I have the same problem .

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ม.ค. 23
951
0
ส.ค. 22
970
3
พ.ย. 20
4236
3
ส.ค. 20
21673
2
ก.พ. 25
5899