Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2739 Lượt xem

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'), },
}
Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 1 25
4927
1
thg 10 22
3097
2
thg 8 24
15637
2
thg 10 25
2631
1
thg 9 25
2647