Skip to Content
Menu
This question has been flagged
1 Atsakyti
9127 Rodiniai

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.

Portretas
Atmesti
Best Answer

Hello hilar,

please try this

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


Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
2
gruod. 19
9561
0
lapkr. 19
4686
1
liep. 19
7367
0
liep. 19
2807
5
vas. 17
7546