Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
2385 Visninger

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
Kassér
Related Posts Besvarelser Visninger Aktivitet
3
jan. 25
4441
1
okt. 22
2753
2
aug. 24
10198
1
jun. 25
1718
3
jul. 25
3338