Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
4308 Переглядів

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

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
inline css in xml tag Вирішено
1
жовт. 22
5954
0
вер. 22
2020
0
серп. 23
1776
1
черв. 25
1554
3
лип. 25
3218