Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
3168 Lượt xem

How to automatically change the color of line in tree view after perticular time??????

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

But can i change the color based on perticular time intervel? .....for example after 30 minutes colour of line in tree view automatically get change....

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hello Yojana walnuj,

You can change the color of tree view conditionally/based on field value.

odoo supports following decoration attributes on tree views.

'decoration-bf',

'decoration-it',

'decoration-danger',

'decoration-info',

'decoration-muted',

'decoration-primary',

'decoration-success',

'decoration-warning',

You can use it like this  decoration-muted="state=='cancel'" as an attribute in the tree view definition.

I hope this may help you. 


Thanks

Ảnh đại diện
Huỷ bỏ