Skip to Content
Menu
This question has been flagged
3 Replies
34414 Rodiniai

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?

Portretas
Atmesti
Best Answer

Hello

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

Portretas
Atmesti
Best Answer

Hi,

try to add just style:

style="background-color:red;"
Portretas
Atmesti
Best Answer

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.

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
2
saus. 25
3072
0
kov. 15
6373
2
kov. 23
10164
2
kov. 23
2536
1
geg. 22
5226