How can I make a field (M2o) invisible if it doesn't contain any values?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- إدارة علاقات العملاء
- e-Commerce
- المحاسبة
- المخزون
- PoS
- Project
- MRP
لقد تم الإبلاغ عن هذا السؤال
1
الرد
4152
أدوات العرض
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
|
4089 | ||
|
4
يناير 24
|
23126 | ||
Attrs attribute
تم الحل
|
|
2
يناير 24
|
2429 | |
Odoo Mail Sending Limit
تم الحل
|
|
2
ديسمبر 23
|
14675 | |
|
0
أكتوبر 23
|
33 |