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

 hi all, 

How can I hide colom based on payslip structure, this is the code I created


 

I hope you all can help me to find a solution


thanks

     

     

 


아바타
취소
베스트 답변

 HI   Arif Munandar


You want to hide column with conditional view so you should try below code,

In 17 version of odoo the way of writing attrs is changed so you can try like below code.


Here it is your code,





 I hope this is helpful to you.


 Thanks & Regards,

 Email: odoo@devintellecs.com

 Skype: devintelle



아바타
취소
작성자

thanks for the answer, I want to call the 'id' of the Structure payroll, is it 'struct_id' correct to call the 'id' of the Structure payroll?

베스트 답변

Hi,

Try the following code,

<data>
<xpath expr="//field[@name='employee_id']" position="after">
        <field name="x_studio_km_awal_2" attrs="{'invisible': [('struct_id', '!=', 6)]}"/>
        <field name="x_studio_km_akhir_1" attrs="{'invisible': [('struct_id', '!=', 6)]}"/>
    </xpath>
</data>

You can try the same code, if it gets a reference value of id =6, 

update with the value and try to avoid manual entry


Hope it helps

아바타
취소
작성자

thanks for the answer, I want to call the 'id' of the Structure payroll, is it 'struct_id' correct to call the 'id' of the Structure payroll?

관련 게시물 답글 화면 활동
0
7월 25
11171
2
5월 18
4212
3
6월 15
7962
2
3월 15
8517
0
3월 15
4071