Skip to Content
मेन्यू
This question has been flagged
2536 Views

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
Discard
Related Posts Replies Views Activity
3
जन॰ 25
4642
1
अक्तू॰ 22
2931
2
अग॰ 24
13372
1
सित॰ 25
2141
1
जून 25
2174