When an employee edits his/her information I want to restrict certain fields not to edit by employee (but can be editable by ADMIN).
Pertanyaan ini telah diberikan tanda
2
Replies
7027
Tampilan
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"
Menikmati diskusi? Jangan hanya membaca, ikuti!
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
Daftar| Post Terkait | Replies | Tampilan | Aktivitas | |
|---|---|---|---|---|
|
Adding new Fields to hr_employee table for V 7.0
Diselesaikan
|
|
4
Agu 23
|
14425 | |
|
|
0
Nov 16
|
2487 | ||
|
|
1
Mar 15
|
6462 | ||
|
|
2
Mar 15
|
6554 | ||
|
add a field in employee module
Diselesaikan
|
|
4
Okt 20
|
9012 |