Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2309 Widoki

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'), },
}
Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
3
sty 25
4298
1
paź 22
2706
2
sie 24
9713
1
cze 25
1587
3
lip 25
3234