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
- Бухгалтерия
- Склад
- PoS
- Project
- MRP
Этот вопрос был отмечен
            
                1
                
                    Ответить
                
            
        
        
            
                4741
                
                    Представления
                
            
        
    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!
Регистрация| Related Posts | Ответы | Просмотры | Активность | |
|---|---|---|---|---|
|  | 2 дек. 19  | 4697 | ||
|  | 4 янв. 24  | 24147 | ||
| 
            
                Attrs attribute
            
            
                    Решено
            
         |  | 2 янв. 24  | 3027 | |
| 
            
                Odoo Mail Sending Limit
            
            
                    Решено
            
         |  | 2 дек. 23  | 15915 | |
|  | 0 окт. 23  | 33 | 
