Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
8704 Представления

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
4225
1
июл. 19
6938
0
июл. 19
2413
5
февр. 17
7130