Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
8806 Widoki

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.

Awatar
Odrzuć
Najlepsza odpowiedź

Hello hilar,

please try this

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


Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
gru 19
9272
0
lis 19
4389
1
lip 19
7118
0
lip 19
2545
5
lut 17
7246