跳至內容
選單
此問題已被標幟
3 回覆
34387 瀏覽次數

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
3059
0
3月 15
6350
2
3月 23
10103
2
3月 23
2495
1
5月 22
5217