Can I use the syntax as condition1.type1 and condition2.type1 in the field of view xml?
 if condition1 and condition2 have the type1 attribute? 
<field name="name" attrs="{'invisible': [('condition1.type1', '=', False)], 'required': [('condition2.type1', '=', True)]}"/>
Odoo is the world's easiest all-in-one management software.
 It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project
- MRP
This question has been flagged
            
                1
                
                    Odgovori
                
            
        
        
            
                11189
                
                    Prikazi
                
            
        
    Hello, if it's still problem. You can use context.
context="{'default_type_1': condition1.type1, 'default_type_2': condition2.type1}"
invisible="context.get('default_type_1', False)"
required="context.get('default_type_2')=='default_type_2_value'"
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 | |
|---|---|---|---|---|
|  | 1 okt. 22  | 10403 | ||
|  | 1 mar. 15  | 12722 | ||
|  | 6 sep. 17  | 9142 | ||
|  | 2 mar. 15  | 10624 | ||
|  | 1 mar. 15  | 4988 | 
