콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
5498 화면

When an employee edits his/her information I want to restrict certain fields not to edit by employee (but can be editable by ADMIN).

아바타
취소
베스트 답변

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
12555
0
11월 16
1529
1
3월 15
5075
2
3월 15
5061
4
10월 20
7031