When an employee edits his/her information I want to restrict certain fields not to edit by employee (but can be editable by ADMIN).
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- सीआरएम
- e-Commerce
- लेखांकन
- इन्वेंटरी
- PoS
- Project
- MRP
This question has been flagged
Hi,
You could use the "read" and "write" attributes on field definition, like this one:
_columns = {
'credit_limit': fields.float(string='Credit Limit',
read=['base.group_sale_salesman'],
write=['base.group_sale_manager']),
This will create a field named credit_limit
that will be readable by users belonging to base.group_sale_salesman
and writable only by base.group_sale_manager
users...
Hi Mario, Thanks for the reply. It helped me a lot.
You can apply group on that field.admin exist to that group not user.
like groups="base.group_no_one"
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 | |
---|---|---|---|---|
|
4
अग॰ 23
|
12100 | ||
|
0
नव॰ 16
|
1335 | ||
|
1
मार्च 15
|
4762 | ||
|
2
मार्च 15
|
4670 | ||
|
4
अक्तू॰ 20
|
6623 |