تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
3 الردود
34261 أدوات العرض

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
يناير 25
2970
0
مارس 15
6288
2
مارس 23
10023
2
مارس 23
2435
1
مايو 22
5142