Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
5 ตอบกลับ
6686 มุมมอง
I run Odoo on my machine,
But when I want to open it on browser
I get message as below.
What's wrong with it?

KeyError: 'website'

Error when render the template
KeyError: 'website'
Template: website.layout
Path: /t/html/t[2]
Node: - - -

อวตาร
ละทิ้ง
ผู้เขียน

finally, I unstall and reinstall the module to solve problem. Still not know what happen.

คำตอบที่ดีที่สุด

For me the error was:

KeyError: 'website'
 Error when render the template
KeyError: 'website'
Template: website.layout

Te solution:
put , website = True int the decoration of your controller like this:

class xyz(http.Controller):
     @http.route('/xyz, auth='user', website = True)
    def index(self, **kw):

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

pls make sure you install Wkhtmltopdf  
if not try this:
>>>>sudo pip3 install Wkhtmltopdf

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

This error occurs when you attempt to access some column in a pandas DataFrame that does not exist.

Typically this error occurs when you simply misspell a column names or include an accidental space before or after the column name.

Jimmy

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi, Did you solve your issue ? I am having something similar

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

Yes.

But same error occure when not use custom modules

อวตาร
ละทิ้ง