Skip to Content
Menu
This question has been flagged
1 Atsakyti
8749 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
9113
0
lapkr. 19
4300
1
liep. 19
7005
0
liep. 19
2497
5
vas. 17
7183