Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
2716 Ansichten

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?

Avatar
Verwerfen
Beste Antwort

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

Avatar
Verwerfen
Autor

I tried this.But, it didn't work

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

Verknüpfte Beiträge Antworten Ansichten Aktivität
3
Jan. 25
4313
2
Aug. 24
9745
0
Apr. 22
2315
1
Juni 25
1601
3
Juli 25
3247