Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
3 Ответы
34234 Представления

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?

Аватар
Отменить
Лучший ответ

Hello

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

Аватар
Отменить
Лучший ответ

Hi,

try to add just style:

style="background-color:red;"
Аватар
Отменить
Лучший ответ

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.

Аватар
Отменить
Related Posts Ответы Просмотры Активность
2
янв. 25
2941
0
мар. 15
6277
2
мар. 23
9996
2
мар. 23
2428
1
мая 22
5129