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

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 ?

Related Posts ตอบกลับ มุมมอง กิจกรรม
3
ม.ค. 25
4328
2
ส.ค. 24
9767
0
เม.ย. 22
2318
1
มิ.ย. 25
1607
3
ก.ค. 25
3254