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

I have a button function to move between states in product. when the state move from draft to confirm , i wrote a function to show warning if the onhand quantities are there. It show the warning but it stop the flow of function. Is there alternative warnings that show only the warning without affect the flow?

아바타
취소
베스트 답변

Hi,

Adding an alert inside the form will help in this case ? If yes, use alerts in odoo.

Sample:

<div colspan="2" class="alert alert-danger text-center mb-3" role="alert"
attrs="{'invisible': ['|', ('comment_single_recipient', '=', False), ('recipient_single_valid', '=', True)]}">
<p class="my-0">Invalid phone numberp>
div>


Thanks

아바타
취소
작성자

I tried this.But, it didn't work

didn't work means, not able to show alert on the form view ?

관련 게시물 답글 화면 활동
3
1월 25
4026
2
8월 24
9234
0
4월 22
2210
1
6월 25
1110
3
7월 25
2839