Skip to Content
Menu
This question has been flagged
1 Reply
825 Views
As the title said. I left my traceback below.
It looks like overwriting portal.portal_my_details something crashed.
The error occured while rendering the template portal.frontend_layout and evaluating the following expression: t t-set="x_icon" t-value="'/web/image/website/%s/favicon/' % website.id"


Thanks in advance for any reponse.


Traceback (most recent call last): File "/home/arubioh/Odoo/12.0/odoo/addons/base/models/qweb.py", line 348, in _compiled_fn return compiled(self, append, new, options, log) File "", line 1, in template_portal_frontend_layout_371 File "", line 1, in body_call_content_370 AttributeError: 'str' object has no attribute 'id' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/arubioh/Odoo/12.0/odoo/addons/base/models/ir_http.py", line 208, in _dispatch result = request.dispatch() File "/home/arubioh/Odoo/12.0/odoo/http.py", line 835, in dispatch r = self._call_function(**self.params) File "/home/arubioh/Odoo/12.0/odoo/http.py", line 346, in _call_function return checked_call(self.db, *args, **kwargs) File "/home/arubioh/Odoo/12.0/odoo/service/model.py", line 98, in wrapper return f(dbname, *args, **kwargs) File "/home/arubioh/Odoo/12.0/odoo/http.py", line 342, in checked_call result.flatten() File "/home/arubioh/Odoo/12.0/odoo/http.py", line 1270, in flatten self.response.append(self.render()) File "/home/arubioh/Odoo/12.0/odoo/http.py", line 1263, in render return env["ir.ui.view"].render_template(self.template, self.qcontext) File "/home/arubioh/Odoo/12.0/odoo/addons/base/models/ir_ui_view.py", line 1338, in render_template return self.browse(self.get_view_id(template)).render(values, engine) File "/home/arubioh/Liberexpress/odoo/addons/website/models/ir_ui_view.py", line 322, in render return super(View, self).render(values, engine=engine, minimal_qcontext=minimal_qcontext) File "/home/arubioh/Liberexpress/odoo/addons/web_editor/models/ir_ui_view.py", line 29, in render return super(IrUiView, self).render(values=values, engine=engine, minimal_qcontext=minimal_qcontext) File "/home/arubioh/Odoo/12.0/odoo/addons/base/models/ir_ui_view.py", line 1347, in render return self.env[engine].render(self.id, qcontext) File "/home/arubioh/Odoo/12.0/odoo/addons/base/models/ir_qweb.py", line 59, in render result = super(IrQWeb, self).render(id_or_xml_id, values=values, **context) File "/home/arubioh/Odoo/12.0/odoo/addons/base/models/qweb.py", line 275, in render self.compile(template, options)(self, body.append, values or {}) File "/home/arubioh/Odoo/12.0/odoo/addons/base/models/qweb.py", line 350, in _compiled_fn raise e File "/home/arubioh/Odoo/12.0/odoo/addons/base/models/qweb.py", line 348, in _compiled_fn return compiled(self, append, new, options, log) File "", line 1, in template_347_293 File "/home/arubioh/Odoo/12.0/odoo/addons/base/models/qweb.py", line 350, in _compiled_fn raise e File "/home/arubioh/Odoo/12.0/odoo/addons/base/models/qweb.py", line 348, in _compiled_fn return compiled(self, append, new, options, log) File "", line 1, in template_portal_portal_layout_315 File "/home/arubioh/Odoo/12.0/odoo/addons/base/models/qweb.py", line 355, in _compiled_fn raise QWebException("Error to render compiling AST", e, path, node and etree.tostring(node[0], encoding='unicode'), name) odoo.addons.base.models.qweb.QWebException: 'str' object has no attribute 'id' Traceback (most recent call last): File "/home/arubioh/Odoo/12.0/odoo/addons/base/models/qweb.py", line 348, in _compiled_fn return compiled(self, append, new, options, log) File "", line 1, in template_portal_frontend_layout_371 File "", line 1, in body_call_content_370 AttributeError: 'str' object has no attribute 'id' Error to render compiling AST AttributeError: 'str' object has no attribute 'id' Template: portal.frontend_layout Path: /templates/t/t/t[4] Node:


Avatar
Discard
Best Answer

Hello Alberto Rubio,

The above error was encountered because you are trying to access the id from the object website and the website type is a string. You can not access the id from the string.

I hope this will help you.

Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari

Avatar
Discard
Related Posts Replies Views Activity
0
Sep 24
127
0
Dec 23
383
2
Aug 22
2081
2
Mar 22
2993
1
Jul 21
6454