Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
8698 Zobrazení

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šit
Nejlepší odpověď

Hello hilar,

please try this

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


Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
pro 19
9014
0
lis 19
4223
1
čvc 19
6935
0
čvc 19
2410
5
úno 17
7128