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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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
Create an account today to enjoy exclusive features and engage with our awesome community!
Üye Olİlgili Gönderiler | Cevaplar | Görünümler | Aktivite | |
---|---|---|---|---|
|
2
Ara 19
|
9273 | ||
|
0
Kas 19
|
4389 | ||
Error on Warning in Odoo 12
Çözüldü
|
|
1
Tem 19
|
7119 | |
|
0
Tem 19
|
2546 | ||
|
1
May 17
|
8809 |