跳至内容
菜单
此问题已终结
3 回复
34100 查看

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
2751
0
3月 15
6253
2
3月 23
9872
2
3月 23
2324
1
5月 22
5035