Skip to Content
Menu
This question has been flagged
1 Odpoveď
8689 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
9012
0
nov 19
4220
1
júl 19
6922
0
júl 19
2401
5
feb 17
7127