跳至内容
菜单
此问题已终结
1 回复
4299 查看

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:




形象
丢弃
最佳答案

Hi, 

You can use style tag inside the button icon.

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


Regards

形象
丢弃
相关帖文 回复 查看 活动
1
10月 22
5937
0
9月 22
2012
0
8月 23
1770
1
6月 25
1509
3
7月 25
3200