Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
4293 Vizualizări

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. 


Imagine profil
Abandonează
Cel mai bun răspuns

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.

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
iul. 22
2477
1
mar. 21
7397
2
iul. 19
4063
2
feb. 19
3904
0
dec. 17
4279