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

I have a button that calls the model action below.

For some reason the warning message doesn't show but the "test" shows on the ODOO log.

def import_file(self):
   print("test")
   return {'warning': {'title':'title','message':'message'}}
Ảnh đại diện
Huỷ bỏ
Tác giả

I would like to use standard ODOO functionality but the above code seems right but does not return a warning as expected.

Tác giả

I did notice that if its a server action you need to set the action to the above return value

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 3 15
5604
2
thg 5 19
3148
0
thg 9 25
3
0
thg 8 25
6
2
thg 8 25
271