콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
3 답글
34098 화면

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
2749
0
3월 15
6251
2
3월 23
9858
2
3월 23
2322
1
5월 22
5032