تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
4762 أدوات العرض

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

المنشورات ذات الصلة الردود أدوات العرض النشاط
2
ديسمبر 19
9274
0
نوفمبر 19
4389
1
يوليو 19
7120
0
يوليو 19
2548
1
مايو 17
8813