Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
8707 Vizualizări

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.

Imagine profil
Abandonează
Cel mai bun răspuns

Hello hilar,

please try this

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


Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
2
dec. 19
9015
0
nov. 19
4227
1
iul. 19
6940
0
iul. 19
2415
5
feb. 17
7132