Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
3333 มุมมอง

Hi, how can I make a field invisible if it is in another model, and the field I am looking at is in my model

 


อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hello pavel

You can set the invisible attribute based on context values
You can refer below code
I hope it may help you

Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari

อวตาร
ละทิ้ง

Code :-

<field name="partner_id" invisible="context.get('active_model')!='student.student'"/>

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ก.ย. 23
41
4
มี.ค. 23
17231
2
ก.ค. 22
4074
0
พ.ค. 22
2380
1
พ.ย. 21
18779