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:
- CRM
- e-Commerce
- Contabilidad
- Inventario
- PoS
- Project
- MRP
Se marcó esta pregunta
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"
¿Le interesa esta conversación? ¡Participe en ella!
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
RegistrarsePublicaciones relacionadas | Respuestas | Vistas | Actividad | |
---|---|---|---|---|
|
4
ago 23
|
12075 | ||
|
0
nov 16
|
1320 | ||
|
1
mar 15
|
4749 | ||
|
2
mar 15
|
4646 | ||
add a field in employee module
Resuelto
|
|
4
oct 20
|
6593 |