Give color for a field in form view
Odoo is the world's easiest all-in-one management software.
 It includes hundreds of business apps:
- CRM
- e-Commerce
- 회계
- 재고 관리
- PoS
- 프로젝트
- MRP
신고된 질문입니다
            
                2
                
                    답글
                
            
        
        
            
                5771
                
                    화면
                
            
        
    <field name="date" style = "color: red" attrs="{'invisible': [('state','!=','cancel')]}"/>
<field name="date" style = "color: green" attrs="{'invisible': [('state','=','cancel')]}"/>
Hi,
Try this
< label for="your_field"  style="color:red" />
                                
< div >
< field name="your_field" style="color:red" />
< / div >
< field name="your_field" style="color:red" />
< / div >
Likewise you can change color to blue, green etc.
Hope it helps,
Thanks
i want to change colour of field based on condition.how to do that?
| 관련 게시물 | 답글 | 화면 | 활동 | |
|---|---|---|---|---|
|  | 1 3월 25  | 2413 | ||
|  | 0 3월 25  | 1594 | ||
|  | 0 11월 24  | 2246 | ||
|  | 0 6월 24  | 2088 | ||
|  | 1 6월 24  | 2656 | 
