How can I make a field (M2o) invisible if it doesn't contain any values?
คำถามนี้ถูกตั้งค่าสถานะ
1
ตอบกลับ
5898
มุมมอง
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
สนุกกับการพูดคุยนี้ใช่ไหม? เข้าร่วมเลย!
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อ| Related Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
|---|---|---|---|---|
|
|
2
ธ.ค. 19
|
5849 | ||
|
|
1
เม.ย. 26
|
4746 | ||
|
|
4
ม.ค. 24
|
26431 | ||
|
Attrs attribute
แก้ไขแล้ว
|
|
2
ม.ค. 24
|
4841 | |
|
Odoo Mail Sending Limit
แก้ไขแล้ว
|
|
2
ธ.ค. 23
|
19059 |