When an employee edits his/her information I want to restrict certain fields not to edit by employee (but can be editable by ADMIN).
لقد تم الإبلاغ عن هذا السؤال
2
الردود
7078
أدوات العرض
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"
هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيل| المنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
|---|---|---|---|---|
|
|
4
أغسطس 23
|
14494 | ||
|
|
0
نوفمبر 16
|
2508 | ||
|
|
1
مارس 15
|
6504 | ||
|
|
2
مارس 15
|
6604 | ||
|
add a field in employee module
تم الحل
|
|
4
أكتوبر 20
|
9090 |