Se rendre au contenu
Menu
Cette question a été signalée
603 Vues

Hi,

I restored a database in odoo17, but when I try to open it I get an INTERNAL SERVER ERROR:

This is what appears in the logs, I have seen similar errors but my project in odoo has no code, it is just a website mounted on the frontend:


Traceback (most recent call last):

  File "C:\Program Files\Odoo17\server\odoo\http.py", line 2195, in __call__

    response = request._serve_db()

  File "C:\Program Files\Odoo17\server\odoo\http.py", line 1770, in _serve_db

    return service_model.retrying(self._serve_ir_http, self.env)

  File "C:\Program Files\Odoo17\server\odoo\service\model.py", line 133, in retrying

    result = func()

  File "C:\Program Files\Odoo17\server\odoo\http.py", line 1797, in _serve_ir_http

    response = self.dispatcher.dispatch(rule.endpoint, args)

  File "C:\Program Files\Odoo17\server\odoo\http.py", line 1914, in dispatch

    return self.request.registry['ir.http']._dispatch(endpoint)

  File "C:\Program Files\Odoo17\server\odoo\addons\website\models\ir_http.py", line 235, in _dispatch

    response = super()._dispatch(endpoint)

  File "C:\Program Files\Odoo17\server\odoo\addons\base\models\ir_http.py", line 224, in _dispatch

    result.flatten()

  File "C:\Program Files\Odoo17\server\odoo\http.py", line 1296, in flatten

    self.response.append(self.render())

  File "C:\Program Files\Odoo17\server\odoo\http.py", line 1288, in render

    return request.env["ir.ui.view"]._render_template(self.template, self.qcontext)

  File "C:\Program Files\Odoo17\server\odoo\addons\website\models\ir_ui_view.py", line 442, in _render_template

    return super()._render_template(template, values=values)

  File "C:\Program Files\Odoo17\server\odoo\addons\base\models\ir_ui_view.py", line 2051, in _render_template

    return self.env['ir.qweb']._render(template, values)

  File "C:\Program Files\Odoo17\server\odoo\tools\profiler.py", line 292, in _tracked_method_render

    return method_render(self, template, values, **options)

  File "C:\Program Files\Odoo17\server\odoo\addons\base\models\ir_qweb.py", line 599, in _render

    result = ''.join(rendering)

  File "<185>", line 242, in template_185

  File "<185>", line 231, in template_185_content

  File "<184>", line 51, in template_184

  File "<184>", line 40, in template_184_content

  File "<560>", line 1976, in template_560

odoo.addons.base.models.ir_qweb.QWebException: Error while render the template

AttributeError: 'website' object has no attribute 'dr_pwa_activated'

Template: website.layout

Path: /t/html/head/t[8]/link[1]

Node:

Avatar
Ignorer