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?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
1
Reply
1281
Views
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.
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
2
Dec 24
|
3136 | ||
|
1
Dec 24
|
359 | ||
|
4
Nov 24
|
1368 | ||
|
1
Sep 24
|
1138 | ||
|
1
Sep 24
|
1206 |