跳至內容
選單
此問題已被標幟
1 回覆
2658 瀏覽次數

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
4276
2
8月 24
9645
0
4月 22
2293
1
6月 25
1540
3
7月 25
3211