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

I need to raise a Warning message without blocking my process flow, Now some cases odoo used Wizards. Anyone have good suggestions?

For eg: while confirming sale order, I need to raise the warning, but it should complete the process even I clicked ok or closed.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hello hilar,

please try this

raise UserError(_('your warning message')), self.test_function()
@api.multi
def test_function(self):
print "*********************"
     #your_code


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 12 19
9014
0
thg 11 19
4223
1
thg 7 19
6937
0
thg 7 19
2411
5
thg 2 17
7128