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

Hello all,


I have a problem with the warning message in V9 .

In my onchange, I want return a no blocking message .  For this I use this piece of code . 

    message = {'title': _('Title'),'message': _('Message')}

return {'value': {}, 'warning':message}


but Odoo don't show my message.


Many thanks in advance for you assistance. 


Avatar
Buang
Jawaban Terbai

Here is the example for the v9



if not part:

warning = {

'title': _('Warning!'),

'message': _('You must first select a partner!'),

}

return {'warning': warning}


or you can find the exact example for v9 in accoun_invoice.py module named account on line no. 1122

Hope this will help you.

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
1
Jul 22
2490
1
Mar 21
7415
2
Jul 19
4094
2
Feb 19
3919
0
Des 17
4296