コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
8697 ビュー

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
9014
0
11月 19
4223
1
7月 19
6935
0
7月 19
2410
5
2月 17
7127