Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

[SOLVED] Warning message on screen

By
Selverine
on 12/24/13, 6:30 AM 1,482 views

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

2
ASP
On 12/24/13, 8:04 AM

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

0
Selverine
On 12/24/13, 2:40 PM

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

ASP
on 12/25/13, 2:26 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 12/24/13, 6:30 AM
Seen: 1482 times
Last updated: 3/16/15, 8:10 AM