Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
3 Antwoorden
34218 Weergaven

In form view of sale order, I have a button

<button name="action_confirm" states="sent" string="Confirm Sale" class="btn-primary" type="object" context="{'show_sale': True}"/> 

and it's showing in blue color. if I change to oe_highlight nothing changes or any other class. How can I change this button to RED color?

Avatar
Annuleer
Beste antwoord

Hello

add class "btn-danger" into button for make the button color red.

Avatar
Annuleer
Beste antwoord

Hi,

try to add just style:

style="background-color:red;"
Avatar
Annuleer
Beste antwoord

Hello.

What you can do is to add an style sheet with a class and then make a reference to it with a link tag in an xml file, then load that xml in __manifest__ file of your module. 

Of course you should add that css class in class attribute of your button.

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
2
jan. 25
2902
0
mrt. 15
6275
2
mrt. 23
9973
2
mrt. 23
2413
1
mei 22
5097