Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2319 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
4343
1
thg 10 22
2727
2
thg 8 24
9801
1
thg 6 25
1611
3
thg 7 25
3258