تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
3133 أدوات العرض

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
سبتمبر 23
41
4
مارس 23
16997
2
يوليو 22
3840
0
مايو 22
2122
1
نوفمبر 21
18504