When an employee edits his/her information I want to restrict certain fields not to edit by employee (but can be editable by ADMIN).
Cette question a été signalée
2
Réponses
7065
Vues
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"
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrire| Publications associées | Réponses | Vues | Activité | |
|---|---|---|---|---|
|
|
4
août 23
|
14479 | ||
|
|
0
nov. 16
|
2500 | ||
|
|
1
mars 15
|
6501 | ||
|
|
2
mars 15
|
6594 | ||
|
|
4
oct. 20
|
9086 |