Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2378 Переглядів

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'), },
}
Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
3
січ. 25
4434
1
жовт. 22
2752
2
серп. 24
10169
1
черв. 25
1711
3
лип. 25
3336