跳至內容
選單
此問題已被標幟
2347 瀏覽次數

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'), },
}
頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
3
1月 25
4386
1
10月 22
2738
2
8月 24
9971
1
6月 25
1674
3
7月 25
3304