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

i want to display a customized field "wilaya" depending the value of another field "country_id" in the view base.view_partner_form

my code is : 

                <field name="wilaya" attrs="{'invisible': [('country_id','!=', 'Algeria')] }"/>

but the condition doesn't work. need help please
아바타
취소

How to visible and invisible fields in odoo

https://goo.gl/BCxCpk

베스트 답변

Hello Kader,

<field name="wilaya" attrs="{'invisible': [('country_id','!=',record_id)] }"/>

record_id = Database id then it will work

아바타
취소
작성자

very helpful thx very much it's working

관련 게시물 답글 화면 활동
2
1월 20
15332
16
8월 19
10260
5
6월 18
10923
0
9월 17
2570
0
2월 17
3066