Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2311 Weergaven

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
3
jan. 25
4306
1
okt. 22
2712
2
aug. 24
9726
1
jun. 25
1592
3
jul. 25
3241