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

Hi all,

It is great if we can make a conditional required or readonly from the python code !

in version 15 the possibility of making a field readonly based on a condition existed !

however on the current version it seem to be replaced ! 

it is possible to make it available or we should put an @api.contraints for every fields ? 

Best regards.

아바타
취소
베스트 답변

Hello Nabil, 

In case of odoo v15 you can check the field_view_get method and based on that apply the conditions. 

For more reference : click here

Thanks,

아바타
취소
작성자 베스트 답변

Hi,

thanks for your return.

we can only override write and create method to do manually the conditional required ! ;)



아바타
취소
관련 게시물 답글 화면 활동
1
2월 19
6049
1
3월 15
7160
1
3월 15
4330
0
2월 21
15
1
10월 23
7705