コンテンツへスキップ
メニュー
この質問にフラグが付けられました
3 返信
34301 ビュー

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.

アバター
破棄
関連投稿 返信 ビュー 活動
2
1月 25
2989
0
3月 15
6305
2
3月 23
10037
2
3月 23
2447
1
5月 22
5152