Skip to Content
Menu
This question has been flagged

Hello everyone, can someone help me to solve this issue. When I checkout on my website, the page doesn't land on payment methods to choose from but rather an error page. I've searched up some solutions but haven't find one for my specific problem.


Here is the message it says:

Traceback (most recent call last):
  File "/home/odoo/src/odoo/17.0/odoo/http.py", line 1768, in _serve_db
    return service_model.retrying(self._serve_ir_http, self.env)
  File "/home/odoo/src/odoo/17.0/odoo/service/model.py", line 133, in retrying
    result = func()
  File "/home/odoo/src/odoo/17.0/odoo/http.py", line 1795, in _serve_ir_http
    response = self.dispatcher.dispatch(rule.endpoint, args)
  File "/home/odoo/src/odoo/17.0/odoo/http.py", line 1912, in dispatch
    return self.request.registry['ir.http']._dispatch(endpoint)
  File "/home/odoo/src/odoo/17.0/addons/website/models/ir_http.py", line 235, in _dispatch
    response = super()._dispatch(endpoint)
  File "/home/odoo/src/odoo/17.0/odoo/addons/base/models/ir_http.py", line 224, in _dispatch
    result.flatten()
  File "/home/odoo/src/odoo/17.0/odoo/http.py", line 1294, in flatten
    self.response.append(self.render())
  File "/home/odoo/src/odoo/17.0/odoo/http.py", line 1286, in render
    return request.env["ir.ui.view"]._render_template(self.template, self.qcontext)
  File "/home/odoo/src/odoo/17.0/addons/website/models/ir_ui_view.py", line 442, in _render_template
    return super()._render_template(template, values=values)
  File "/home/odoo/src/odoo/17.0/odoo/addons/base/models/ir_ui_view.py", line 2050, in _render_template
    return self.env['ir.qweb']._render(template, values)
  File "/home/odoo/src/odoo/17.0/odoo/tools/profiler.py", line 292, in _tracked_method_render
    return method_render(self, template, values, **options)
  File "/home/odoo/src/odoo/17.0/odoo/addons/base/models/ir_qweb.py", line 592, in _render
    rendering = render_template(irQweb, values)
  File "", line 5, in not_found_template
ValueError: Element '' cannot be located in parent view


Avatar
Discard
Best Answer

Hi @Farhaan 
Did you solve the problem? I have a similar issue

Avatar
Discard
Best Answer

Hi,

The issue is rising because of trying to Xpath wrong template.So,

Firstly, comment out the custom addons path from your Odoo configuration file to confirm whether the issue is arising from your custom addons. If the issue does not persist after commenting out your custom addons, you can verify that the error is originating from the custom addons. You should then track down the module causing the issue and fix it.

If the issue persists even after commenting out the custom addons, please attempt to upgrade the modules from which causing the error or base module, and then try again. This may help resolve the issue. Also try to use the latest addons of your odoo version.


Hope it helps

Avatar
Discard
Related Posts Replies Views Activity
1
Sep 22
3720
4
Aug 22
11917
0
Oct 23
4578
3
May 16
13982
1
May 25
1975