Skip to Content
Menu
This question has been flagged
1 Reply
4780 Views

Good morning.


I created website in Website creator in Odoo. I used "Customize--> HTML/CSS/JS Editor." I wanted to delete brand message in footer. I deleted some line of code then I saved and reloaded. I received error like this:
QWEB:

Error message:

Error to render compiling AST
TypeError: not all arguments converted during string formatting
Template: web.brand_promotion_message
Path: /t/t[3]
Node: <t t-raw="final_message % (odoo_logo, _message and ('- %s' % _message) or '')"/>
 
The error occured while rendering the template web.brand_promotion_message and evaluating the following expression: <t t-raw="final_message % (odoo_logo, _message and ('- %s' % _message) or '')"/>

Traceback:

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_http.py", line 237, in _dispatch
result = request.dispatch()
File "/usr/lib/python3/dist-packages/odoo/http.py", line 805, in dispatch
r = self._call_function(**self.params)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 358, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 346, in checked_call
result = self.endpoint(*a, **kw)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 911, in __call__
return self.method(*args, **kw)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 530, in response_wrap
response = f(*args, **kw)
File "/usr/lib/python3/dist-packages/odoo/addons/website/controllers/main.py", line 78, in index
website_page = request.env['ir.http']._serve_page()
File "/usr/lib/python3/dist-packages/odoo/addons/website/models/ir_http.py", line 290, in _serve_page
r = response.render()
File "/usr/lib/python3/dist-packages/odoo/http.py", line 1234, in render
return env["ir.ui.view"]._render_template(self.template, self.qcontext)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_ui_view.py", line 1694, in _render_template
return self.browse(self.get_view_id(template))._render(values, engine)
File "/usr/lib/python3/dist-packages/odoo/addons/website/models/ir_ui_view.py", line 401, in _render
return super(View, self)._render(values, engine=engine, minimal_qcontext=minimal_qcontext)
File "/usr/lib/python3/dist-packages/odoo/addons/web_editor/models/ir_ui_view.py", line 28, in _render
return super(IrUiView, self)._render(values=values, engine=engine, minimal_qcontext=minimal_qcontext)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_ui_view.py", line 1702, in _render
return self.env[engine]._render(self.id, qcontext)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_qweb.py", line 55, in _render
result = super(IrQWeb, self)._render(id_or_xml_id, values=values, **context)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/qweb.py", line 258, in _render
self.compile(template, options)(self, body.append, values or {})
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/qweb.py", line 333, in _compiled_fn
raise e
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/qweb.py", line 331, in _compiled_fn
return compiled(self, append, new, options, log)
File "<template>", line 1, in template_website_homepage1_35719
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/qweb.py", line 333, in _compiled_fn
raise e
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/qweb.py", line 331, in _compiled_fn
return compiled(self, append, new, options, log)
File "<template>", line 1, in template_web_frontend_layout_35796
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/qweb.py", line 333, in _compiled_fn
raise e
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/qweb.py", line 331, in _compiled_fn
return compiled(self, append, new, options, log)
File "<template>", line 1, in template_web_brand_promotion_35822
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/qweb.py", line 338, in _compiled_fn
raise QWebException("Error to render compiling AST", e, path, node and etree.tostring(node[0], encoding='unicode'), name)
Exception The above exception was the direct cause of the following exception: Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_http.py", line 237, in _dispatch
result = request.dispatch()
File "/usr/lib/python3/dist-packages/odoo/http.py", line 805, in dispatch
r = self._call_function(**self.params)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 358, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 346, in checked_call
result = self.endpoint(*a, **kw)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 911, in __call__
return self.method(*args, **kw)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 530, in response_wrap
response = f(*args, **kw)
File "/usr/lib/python3/dist-packages/odoo/addons/website/controllers/main.py", line 78, in index
website_page = request.env['ir.http']._serve_page()
File "/usr/lib/python3/dist-packages/odoo/addons/website/models/ir_http.py", line 290, in _serve_page
r = response.render()
File "/usr/lib/python3/dist-packages/odoo/http.py", line 1234, in render
return env["ir.ui.view"]._render_template(self.template, self.qcontext)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_ui_view.py", line 1694, in _render_template
return self.browse(self.get_view_id(template))._render(values, engine)
File "/usr/lib/python3/dist-packages/odoo/addons/website/models/ir_ui_view.py", line 401, in _render
return super(View, self)._render(values, engine=engine, minimal_qcontext=minimal_qcontext)
File "/usr/lib/python3/dist-packages/odoo/addons/web_editor/models/ir_ui_view.py", line 28, in _render
return super(IrUiView, self)._render(values=values, engine=engine, minimal_qcontext=minimal_qcontext)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_ui_view.py", line 1702, in _render return self.env[engine]._render(self.id, qcontext) File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_qweb.py", line 55, in _render result = super(IrQWeb, self)._render(id_or_xml_id, values=values, **context) File "/usr/lib/python3/dist-packages/odoo/addons/base/models/qweb.py", line 258, in _render self.compile(template, options)(self, body.append, values or {}) File "/usr/lib/python3/dist-packages/odoo/addons/base/models/qweb.py", line 333, in _compiled_fn raise e File "/usr/lib/python3/dist-packages/odoo/addons/base/models/qweb.py", line 331, in _compiled_fn return compiled(self, append, new, options, log) File "<template>", line 1, in template_website_homepage1_35719 File "/usr/lib/python3/dist-packages/odoo/addons/base/models/qweb.py", line 333, in _compiled_fn raise e File "/usr/lib/python3/dist-packages/odoo/addons/base/models/qweb.py", line 331, in _compiled_fn return compiled(self, append, new, options, log) File "<template>", line 1, in template_web_frontend_layout_35796 File "/usr/lib/python3/dist-packages/odoo/addons/base/models/qweb.py", line 333, in _compiled_fn raise e File "/usr/lib/python3/dist-packages/odoo/addons/base/models/qweb.py", line 331, in _compiled_fn return compiled(self, append, new, options, log) File "<template>", line 1, in template_web_brand_promotion_35822 File "/usr/lib/python3/dist-packages/odoo/addons/base/models/qweb.py", line 338, 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: not all arguments converted during string formatting Traceback (most recent call last): File "/usr/lib/python3/dist-packages/odoo/addons/base/models/qweb.py", line 331, in _compiled_fn return compiled(self, append, new, options, log) File "<template>", line 1, in template_web_brand_promotion_message_35825 TypeError: not all arguments converted during string formatting Error to render compiling AST TypeError: not all arguments converted during string formatting Template: web.brand_promotion_message Path: /t/t[3] Node: <t t-raw="final_message % (odoo_logo, _message and ('- %s' % _message) or '')"/

======================================
I am wondering how can I revert changes. I found out template web.brand_promotion_message in code but I don't see any changes... I thought that changes in database are more probably, so I found template in ir_ui_view table but it is also not modified.
The question is where are store changes from "Customize--> HTML/CSS/JS Editor." ? How can I fix this error.?
I am using docker

Thank You for any help

Avatar
Discard
Best Answer

Hello Jan,

When you make changes using the customer HTML/CSS/JS Editor I have noticed that they don't appear in the view with the ViewID attached. But appear in another view with the same name and no External ID.

I have made changes to my home page using the exact same method you did and here are some images to help explain the situation. 

https://imgur.com/a/qhHHBYr

So the changes you make will show on the other view, but I have noticed they both have the same name. So first, find the view with the external ID, and then search for a view which shares the same name. 

I hope this helps. 

Thanks, 

Avatar
Discard
Related Posts Replies Views Activity
0
Apr 22
1273
1
May 21
2299
0
Jan 21
262
1
May 24
1433
0
Dec 23
908