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

When click "add a line" button on sale.order.line as example, i want to show a warning message, but then still lets a new line show up, how it that possible?

In odoo 15 by default, this is not possible, i've try this but not working.

Please help, thanks.

@api.onchange('product_id')
def onchange_product_id(self):
// my code
return {
'warning': {'title': ('Warning'), 'message': ('my message'), },
}
Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
3
gen 25
4288
1
ott 22
2683
2
ago 24
9691
1
giu 25
1572
3
lug 25
3229