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

I am trying to give the button icon a color


                <buttonname="action_view_tasks"type="object" class="oe_stat_button {{task_ready ? 'text-warning' : 'text-success'}}"icon="fa-tasks"context="{'partner_id': partner_id}"attrs="{'invisible': [('task_count', '=', 0)]}">
                    <divclass="o_stat_info">
                        <fieldname="task_count"class="o_stat_value"/>
                        <spanclass="o_stat_text"attrs="{'invisible': [('task_count', '<', 2)]}"> Tasksspan>                        <spanclass="o_stat_text"attrs="{'invisible': [('task_count', '>', 1)]}"> Taskspan>
                    div>
                button>

the conditional code does not get interpreted this way.

I tried with class and t-attf-class.

This is how it shows up:

While this is what i try to achieve:




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

Hi, 

You can use style tag inside the button icon.

<i class="icon-cog" style="color:black"></i>


Regards

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 10 22
5933
0
thg 9 22
2009
0
thg 8 23
1769
1
thg 6 25
1498
3
thg 7 25
3190