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
- Contabilitate
- Inventar
- PoS
- Project
- MRP
Această întrebare a fost marcată
1
Răspunde
4140
Vizualizări
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!
Înscrie-teRelated Posts | Răspunsuri | Vizualizări | Activitate | |
---|---|---|---|---|
|
2
dec. 19
|
4075 | ||
|
4
ian. 24
|
23110 | ||
Attrs attribute
Rezolvat
|
|
2
ian. 24
|
2421 | |
Odoo Mail Sending Limit
Rezolvat
|
|
2
dec. 23
|
14657 | |
|
0
oct. 23
|
33 |