Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
3 Risposte
34276 Visualizzazioni

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
Abbandona
Risposta migliore

Hello

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

Avatar
Abbandona
Risposta migliore

Hi,

try to add just style:

style="background-color:red;"
Avatar
Abbandona
Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
gen 25
2976
0
mar 15
6296
2
mar 23
10031
2
mar 23
2440
1
mag 22
5147