تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
5 الردود
6570 أدوات العرض
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

الصورة الرمزية
إهمال