Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
3 Odpowiedzi
34199 Widoki

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?

Awatar
Odrzuć
Najlepsza odpowiedź

Hello

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

Awatar
Odrzuć
Najlepsza odpowiedź

Hi,

try to add just style:

style="background-color:red;"
Awatar
Odrzuć
Najlepsza odpowiedź

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.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
sty 25
2895
0
mar 15
6273
2
mar 23
9967
2
mar 23
2408
1
maj 22
5093