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

Hi everybody,

I would like to know if it is possible to have a warning message when someone modify the name of a client?

Thank you a lot,

Selverine

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

Hi

You can specify on_change attribute for the name field in the view.xml file for client. There you can specify the function name for handling on_change event and define your handler function in the corresponding model.py file for that module.

In your handler method, you can use raise osv.except_osv(_("Warning"), _("My warning Msg")) to raise a warning message.

Cheers

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

Hi ASP,

Thank you a lot, really, for you help. It works!!!!

Selverine

อวตาร
ละทิ้ง

Hi Selverine, Great to hear back from you :) Please do accept the answer by clicking on the tick mark, if it really helps :) Cheers

Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ธ.ค. 19
9279
0
พ.ย. 19
4394
Error on Warning in Odoo 12 แก้ไขแล้ว
1
ก.ค. 19
7123
0
ก.ค. 19
2556
1
พ.ค. 17
8818