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

I have created a new field in sale order line named as "Price1" and "Price_chk" boolean field in Sale order. The field "Price1" should be invisible in tree view when the field "Price_chk" is False and it should be visible when the field "Price_chk" is True.

아바타
취소
베스트 답변

You can use column_invisible inside attrs, like this

<field name="field_name" attrs="{'column_invisible': [('parent.field', '=', value)]}" />

아바타
취소
베스트 답변

Hi, 

one2many field  in tree  view  inside column hide(parent value)
    like:  attrs="{'column_invisible': [('parent.price_chk', '=', False)]}"

 

아바타
취소
베스트 답변

You can do it with attrs and invisible in the xml.


<field name="Price1" attrs="{'invisible':[('price_chk', '=', False)]}" />
아바타
취소
작성자

I tried this, but it was not working. Because "attrs" is not working in one2many treeview

베스트 답변

Try 

<div attrs="{'invisible':[('price_chk', '=', False)]}">
     <field name="Price1"/>
</div>
아바타
취소
베스트 답변

Hi ayyapan,

one2many list view (column hiding will not work). We can hide only content of column not whole column. so only way to hide is you have to set group permission.


Thanks

Chandran Nepolean

아바타
취소

no by using column_invisible in attrs we can make a many2one field invisible

관련 게시물 답글 화면 활동
0
10월 19
8
3
4월 25
4684
5
11월 23
43006
3
9월 23
9482
1
9월 22
3749