Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
8696 Vistas

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
Descartar
Mejor respuesta

Hello hilar,

please try this

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


Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
2
dic 19
9014
0
nov 19
4222
1
jul 19
6935
0
jul 19
2409
5
feb 17
7127