コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
4767 ビュー

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
12月 19
9276
0
11月 19
4391
1
7月 19
7122
0
7月 19
2552
1
5月 17
8815