How can I make a field (M2o) invisible if it doesn't contain any values?
This question has been flagged
1
Odpovědět
5877
Zobrazení
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!
Přihlásit se| Related Posts | Odpovědi | Zobrazení | Aktivita | |
|---|---|---|---|---|
|
|
2
pro 19
|
5826 | ||
|
|
1
dub 26
|
4670 | ||
|
|
4
led 24
|
26397 | ||
|
Attrs attribute
Vyřešeno
|
|
2
led 24
|
4801 | |
|
Odoo Mail Sending Limit
Vyřešeno
|
|
2
pro 23
|
18985 |