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
8646 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
9005
0
lis 19
4206
1
lip 19
6895
0
lip 19
2386
5
lut 17
7116