Skip to Content
Menu
This question has been flagged
1 Odpoveď
8848 Zobrazenia

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
Zrušiť
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
Zrušiť
Related Posts Replies Zobrazenia Aktivita
2
dec 19
9280
0
nov 19
4410
1
júl 19
7130
0
júl 19
2576
5
feb 17
7290