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

A mate tried to install some web tamplates for the backend and got a 503 http error "Service Unavailable" on the browser. 

I saw the modules and deleted from ir_module_module table but nothing changed.

The log in debug mode and the error is from qweb when it tries to render the template, https://pastebin.com/KQ4AN2JR

At the end there ir the lines that indicates the render template error.

odoo.addons.base.models.qweb.QWebException: 'res.users' object has no attribute 'sidebar_type'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/qweb.py", line 219, in render_template
yield from compiled_fn(self, values, log)
File "", line 169, in template_195
File "", line 160, in t_call_content
AttributeError: 'res.users' object has no attribute 'sidebar_type'
Error when render the template
AttributeError: 'res.users' object has no attribute 'sidebar_type'
Template: 195
Path: /t/t/t[8]
Node: request.env.user.sidebar_type or 'small'"/> - -

I tried searching the line code of the Node but i cannot find the file.

What can i do to restore Odoo?

Thanks

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

I searched in database for the pattern "user.sidebar_type" and got a registry it in ui_ui_view table, so, i modified the row removing the "request.env.user.sidebar_type" reference

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 6 18
5979
1
thg 2 24
13085
qweb Exception Đã xử lý
4
thg 8 20
8954
0
thg 4 17
4981
0
thg 10 15
4378