hi all. i am new and still noob in openerp and would like to ask how i want to change leave color?let say if my leave are being approve, it change from red to green. what should i do? (sorry for my bad english)
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
You can use colors
attribute inside tree
tag like this:
<tree string="Leave" colors="blue:state=='approved';red:state in ('draft','waiting')">
can u teach me where can i edit it?
In hr_holidays_view.xml
add colors
attribute given in answer, update hr_holidays
module.
Hi Sudhir Arya, thanks for this answer. I'm also looking for this. Can you help me solve another question? Question:How to add supplier field in Sales order form? I posted this question.
i had edit it but no change.can somebody help me? :(
File
hr_holidays/hr_holidays_view.xml
In this file search exact tree view where you need to change for color,
then apply.
<tree string="Leave" colors="blue:state=='approved';red:state in ('draft','waiting')">
color attribute
color1:condition1;color2:condition2;......colorN:conditionN;
I hope this will resolve your Question.
is that its original coding? ------> <tree colors="red:state == 'refuse';blue:state == ' draft';green:state in ('confirm','validate','validate1')" string="Leave Requests"> if yes do i need to dlete it?
yes. that is original file and responsible for leave feature.
i had edit it but no change.can somebody help me? :(
Dear just editing is not enough, you have to update your current database.
start server and pass proper parameters.
openerp-server -d database -u hr_holidays .... other parameters....
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
1
thg 5 20
|
5509 | ||
|
0
thg 2 24
|
1354 | ||
|
3
thg 2 18
|
10034 | ||
|
1
thg 3 15
|
4169 | ||
|
1
thg 3 15
|
3978 |
currently i am using openerp ver 7.