Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
34420 มุมมอง

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 ตอบกลับ มุมมอง กิจกรรม
Unable to change button color แก้ไขแล้ว
2
ม.ค. 25
3076
0
มี.ค. 15
6377
2
มี.ค. 23
10172
Cacher le bouton "créer" d'une liste แก้ไขแล้ว
2
มี.ค. 23
2540
1
พ.ค. 22
5227