Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
3 Odpowiedzi
6041 Widoki

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.

Awatar
Odrzuć
Najlepsza odpowiedź

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
Awatar
Odrzuć
Autor

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.

Najlepsza odpowiedź

I have the same problem.

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

Awatar
Odrzuć
Najlepsza odpowiedź

I have the same problem .

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
sty 23
951
0
sie 22
970
3
lis 20
4203
3
sie 20
21546
2
lut 25
5787