跳至內容
選單
此問題已被標幟
2 回覆
2237 瀏覽次數

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


頭像
捨棄
最佳答案

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

頭像
捨棄
最佳答案

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
9月 22
4056
4
8月 22
12220
0
10月 23
5081
3
5月 16
14389
1
5月 25
2478