When an employee edits his/her information I want to restrict certain fields not to edit by employee (but can be editable by ADMIN).
La domanda è stata contrassegnata
2
Risposte
7109
Visualizzazioni
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"
Ti stai godendo la conversazione? Non leggere soltanto, partecipa anche tu!
Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!
Registrati| Post correlati | Risposte | Visualizzazioni | Attività | |
|---|---|---|---|---|
|
|
4
ago 23
|
14522 | ||
|
|
0
nov 16
|
2515 | ||
|
|
1
mar 15
|
6518 | ||
|
|
2
mar 15
|
6624 | ||
|
add a field in employee module
Risolto
|
|
4
ott 20
|
9109 |