How can I make a field (M2o) invisible if it doesn't contain any values?
لقد تم الإبلاغ عن هذا السؤال
1
الرد
5888
أدوات العرض
Hi,
If your Many2one field is ‘partner_id’. Then you can set ‘invisible’ attribute inside ‘attrs’ like this in your xml file.
<field name="partner_id" attrs="{'invisible':[('partner_id', '=', False)]}"/>
Regards
هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيل| المنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
|---|---|---|---|---|
|
|
2
ديسمبر 19
|
5844 | ||
|
|
1
أبريل 26
|
4704 | ||
|
|
4
يناير 24
|
26422 | ||
|
Attrs attribute
تم الحل
|
|
2
يناير 24
|
4832 | |
|
Odoo Mail Sending Limit
تم الحل
|
|
2
ديسمبر 23
|
19022 |