Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
3200 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Autore

I tried this.But, it didn't work

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

Post correlati Risposte Visualizzazioni Attività
3
gen 25
5067
2
ago 24
16431
0
apr 22
2879
2
ott 25
2796
1
set 25
2814