Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
3957 Visualizzazioni

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
Abbandona
Risposta migliore

Hi, 

You can use style tag inside the button icon.

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


Regards

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
ott 22
5384
0
set 22
1728
0
ago 23
1487
1
giu 25
672
3
mag 25
2424