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

Is there a way to catch and handle HTTP errors?

When the web server throws a 500 Internal Server Error I'd like the user to see something besides the default browser page.

Ảnh đại diện
Huỷ bỏ
Tác giả

Since I need 30 karma to comment on other people's answers & I have 8 I'm going to comment on my question. @jke, where is this template?

You need to set your user as technical user and after a refresh, in setting /technical / user interface / views

Ps: the best way is to do an heritage to avoid to lost your changes at next update! Else you can set the model data as "no updatable" to avoid to be erased ... Let us know if it's work for you

Tác giả

I don't see this template. Is that the view name, the template or external id?

External id = website.500



Jeremy Kersten (JKE)

Le 30 mars 2015 à 21:03, Dean <odoo@deanandadie.net> a écrit :

I don't see this template. Is that the view name, the template or external id?

--
Dean
Sent by Odoo S.A. using Odoo about Forum Post HTTP Error Handlers?
Câu trả lời hay nhất

You can update the template with name '500' (website.500)


That the template which is rendered when Odoo catch an exception !

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 9 22
6296
3
thg 9 20
5734
2
thg 12 19
5674
4
thg 12 23
25215
0
thg 8 15
19186