Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2663 Lượt xem

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?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Tác giả

I tried this.But, it didn't work

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 1 25
4279
2
thg 8 24
9657
0
thg 4 22
2293
1
thg 6 25
1545
3
thg 7 25
3216