跳至內容
選單
此問題已被標幟
1 回覆
8692 瀏覽次數

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.

頭像
捨棄
最佳答案

Hello hilar,

please try this

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


頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
12月 19
9012
0
11月 19
4221
1
7月 19
6929
0
7月 19
2405
5
2月 17
7127