Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
8702 Tampilan

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
Buang
Jawaban Terbai

Hello hilar,

please try this

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


Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
2
Des 19
9014
0
Nov 19
4223
1
Jul 19
6937
0
Jul 19
2411
5
Feb 17
7128