Skip to Content
Menu
This question has been flagged
1 Reply
1281 Views

hi sir, i have 2 models like:- assets and tickets. asset is many2one in tickets . I have 3 types of users like :- normal, admin, super_admin. while creating tickets, if the user is normal user then i only need his/her asset in the dropdown and if the user is superadmin or admin then all the asset will show in the dropdown. how can i implement the above scenario? 

Avatar
Discard
Best Answer

Hi, 

You have to add rule access to your model Assets for normal user. 

this will mean : if my user is normal, i want him/her to only read/write/delete his/her own assets.

So if you're in tickets, Your M2O will only show records that can be read/accessed by your Normal user.

You can check native modules where you have plenty of ir.rules.

Hope this helps.

Avatar
Discard
Related Posts Replies Views Activity
2
Dec 24
3136
1
Dec 24
359
4
Nov 24
1368
1
Sep 24
1138
1
Sep 24
1206