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
                
                    返信
                
            
        
        
            
                5772
                
                    ビュー
                
            
        
    <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  | 2414 | ||
|  | 0 3月 25  | 1595 | ||
|  | 0 11月 24  | 2249 | ||
|  | 0 6月 24  | 2088 | ||
|  | 1 6月 24  | 2656 | 
