Skip to Content
Menú
This question has been flagged
2583 Vistes

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
Descartar
Related Posts Respostes Vistes Activitat
3
de gen. 25
4706
1
d’oct. 22
2950
2
d’ag. 24
13766
1
de set. 25
2210
1
de juny 25
2248