When an employee edits his/her information I want to restrict certain fields not to edit by employee (but can be editable by ADMIN).
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- 客戶關係
- e-Commerce
- 會計
- 庫存
- PoS
- 專案管理
- MRP
此問題已被標幟
2
回覆
5994
瀏覽次數
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
8月 23
|
13167 | ||
|
|
0
11月 16
|
1840 | ||
|
|
1
3月 15
|
5475 | ||
|
|
2
3月 15
|
5523 | ||
|
|
4
10月 20
|
7643 |