Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2308 Vizualizări

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'), },
}
Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
3
ian. 25
4294
1
oct. 22
2687
2
aug. 24
9703
1
iun. 25
1585
3
iul. 25
3233