Skip to Content
Menu
This question has been flagged
1 Reply
7330 Views

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.

Avatar
Discard
Best Answer

Hello hilar,

please try this

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


Avatar
Discard
Related Posts Replies Views Activity
2
Dec 19
7793
0
Nov 19
3158
1
Jul 19
5703
0
Jul 19
1570
5
Feb 17
5838