hello,
I want only administrators in the field of many2one how to can do?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
in many2one area the comings must be admin, not ordinary users
form will appear in the
. py file
user_id = fields.Many2one('res.users', string='Requester', index=True, track_visibility='onchange', default=lambda self: self.env.user, domain = [('user_id', '=', self.user_id.id)])
.xml file
<field name="user_id" options="{'no_create_edit': True}" />
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up| Related Posts | Replies | Views | Activity | |
|---|---|---|---|---|
|
3
Sep 25
|
2567 | |||
|
2
Feb 25
|
7259 | |||
|
1
Nov 22
|
16971 | |||
|
3
Aug 22
|
14808 | |||
|
2
Aug 22
|
5535 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.
Please use a clear subject and give more details to get the help.