Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
3 Vastaukset
34071 Näkymät

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
Hylkää
Paras vastaus

Hello

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

Avatar
Hylkää
Paras vastaus

Hi,

try to add just style:

style="background-color:red;"
Avatar
Hylkää
Paras vastaus

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
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
2
tammik. 25
2716
0
maalisk. 15
6242
2
maalisk. 23
9833
2
maalisk. 23
2283
1
toukok. 22
5018