Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
4082 Weergaven

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:




Avatar
Annuleer
Beste antwoord

Hi, 

You can use style tag inside the button icon.

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


Regards

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
okt. 22
5674
0
sep. 22
1843
0
aug. 23
1591
1
jun. 25
929
3
mei 25
2656