Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
8682 Visualizzazioni

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
Abbandona
Risposta migliore

Hello hilar,

please try this

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


Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
dic 19
9012
0
nov 19
4220
1
lug 19
6919
0
lug 19
2400
5
feb 17
7127