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

Hello Odooers,

I want to restrict form view according user group. How to do that?


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

Hi,
What has to be restricted in the form view ? The entire view ?, then set access rights/groups for corresponding menu, that render this form.

If you need to restrict particular fields, then set groups="external_id_of_group" along with field definition.


If you are not looking for this, let me know

Thanks

อวตาร
ละทิ้ง
ผู้เขียน

Yes the entire view when the user click the treeview, the formview should not be displayed

For this you have to remove form from the view mode from the action

ผู้เขียน

Yes I have already done that but even the admin user is affected. I'd like that only the user of a specific group to be affected.

I think for this you might have to create two separate menus, and show the menu having both tree and form to admin and the menu with tree for all users

ผู้เขียน

It works, thank you Niyas Raphy