Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
4775 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

Hi ASP,

Thank you a lot, really, for you help. It works!!!!

Selverine

Ảnh đại diện
Huỷ bỏ

Hi Selverine, Great to hear back from you :) Please do accept the answer by clicking on the tick mark, if it really helps :) Cheers

Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 12 19
9277
0
thg 11 19
4392
1
thg 7 19
7122
0
thg 7 19
2552
1
thg 5 17
8815