When an employee edits his/her information I want to restrict certain fields not to edit by employee (but can be editable by ADMIN).
Bu soru işaretlendi
2
Cevaplar
7090
Görünümler
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"
Tartışma hoşunuza mı gidiyor? Sadece okumakla kalmayın, katılın!
Özel özelliklerden yararlanmak ve harika topluluğumuzla etkileşime geçmek için bugün bir hesap oluşturun!
Üye Ol| İlgili Gönderiler | Cevaplar | Görünümler | Aktivite | |
|---|---|---|---|---|
|
|
4
Ağu 23
|
14514 | ||
|
|
0
Kas 16
|
2514 | ||
|
|
1
Mar 15
|
6513 | ||
|
|
2
Mar 15
|
6617 | ||
|
add a field in employee module
Çözüldü
|
|
4
Eki 20
|
9104 |