How can I make a field (M2o) invisible if it doesn't contain any values?
This question has been flagged
1
Odgovori
5867
Prikazi
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
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Prijavi| Related Posts | Odgovori | Prikazi | Aktivnost | |
|---|---|---|---|---|
|
|
2
dec. 19
|
5807 | ||
|
|
1
apr. 26
|
4641 | ||
|
|
4
jan. 24
|
26384 | ||
|
Attrs attribute
Solved
|
|
2
jan. 24
|
4792 | |
|
Odoo Mail Sending Limit
Solved
|
|
2
dec. 23
|
18976 |