Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
8822 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
9279
0
nov 19
4395
1
lug 19
7126
0
lug 19
2560
5
feb 17
7266