Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
8705 Переглядів

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.

Аватар
Відмінити
Найкраща відповідь

Hello hilar,

please try this

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


Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
2
груд. 19
9015
0
лист. 19
4227
1
лип. 19
6940
0
лип. 19
2414
5
лют. 17
7131