跳至内容
菜单
此问题已终结
1 回复
8730 查看

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
9083
0
11月 19
4270
1
7月 19
6990
0
7月 19
2470
5
2月 17
7159