콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
4776 화면

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
9277
0
11월 19
4392
1
7월 19
7122
0
7월 19
2552
1
5월 17
8815