跳至內容
選單
此問題已被標幟
1 回覆
3138 瀏覽次數

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'"/>

相關帖文 回覆 瀏覽次數 活動
0
9月 23
41
4
3月 23
17003
2
7月 22
3841
0
5月 22
2128
1
11月 21
18509