Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
3 Antworten
34382 Ansichten

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
Verwerfen
Beste Antwort

Hello

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

Avatar
Verwerfen
Beste Antwort

Hi,

try to add just style:

style="background-color:red;"
Avatar
Verwerfen
Beste Antwort

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
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
2
Jan. 25
3059
0
März 15
6349
2
März 23
10102
2
März 23
2493
1
Mai 22
5217