Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
4324 มุมมอง

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. 


อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.ค. 22
2515
Javascript warning message แก้ไขแล้ว
1
มี.ค. 21
7424
2
ก.ค. 19
4127
2
ก.พ. 19
3952
0
ธ.ค. 17
4326