Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
8717 Prikazi

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
Opusti
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
Opusti
Related Posts Odgovori Prikazi Aktivnost
2
dec. 19
9054
0
nov. 19
4258
1
jul. 19
6967
0
jul. 19
2460
5
feb. 17
7148