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:
- CRM
- e-Commerce
- Apskaita
- Atsarga
- PoS
- Project
- MRP
This question has been flagged
1
Atsakyti
4211
Rodiniai
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!
RegistracijaRelated Posts | Replies | Rodiniai | Veikla | |
---|---|---|---|---|
|
2
gruod. 19
|
4145 | ||
|
4
saus. 24
|
23218 | ||
Attrs attribute
Solved
|
|
2
saus. 24
|
2516 | |
Odoo Mail Sending Limit
Solved
|
|
2
gruod. 23
|
14798 | |
|
0
spal. 23
|
33 |