Foro de Odoo Argentina


¡BIENVENIDO AL FORO DE ODOO ARGENTINA!

BRINDAMOS UN ESPACIO A LA COMUNIDAD ARGENTINA DE ODOO PARA CENTRALIZAR EL DEBATE, COMPARTIR IDEAS, DESARROLLOS, Y FORMAR PARTE DE UNA COMUNIDAD QUE CRECE DÍA A DÍA

¿No estás registrado?  REGISTRATE

0

500 internal server error. invalid syntax

Avatar
Manuel Ferrero

buenas, estaba modificando el website con el editor de html y me equivoque escribiendo el codigo porque copie y pegue algo equivocadamente y al guardar me dio ese error. estuve intentando encontrar la forma para modificarlo fuera del odoo pero no pude encontrar los archivos. les adjunto el error:

 

500: Internal Server Error

Error

Error message:

invalid syntax (, line 1)

 

QWeb

Error message:

Could not evaluate expression 'Direcci\xc3\xb3n Cerrito 1358 2 B Rosario, Argentina'

 

The error occured while rendering the template website.layout and evaluating the following expression: Dirección Cerrito 1358 2 B Rosario, Argentina

Traceback

Traceback (most recent call last): File "/home/pety2do/odoo/80/server/addons/website/models/ir_http.py", line 196, in _handle_exception response = super(ir_http, self)._handle_exception(exception) File "/home/pety2do/odoo/80/local/lib/python2.7/site-packages/odoo-8.0-py2.7.egg/openerp/addons/base/ir/ir_http.py", line 146, in _handle_exception return request._handle_exception(exception) File "/home/pety2do/odoo/80/local/lib/python2.7/site-packages/odoo-8.0-py2.7.egg/openerp/http.py", line 659, in _handle_exception return super(HttpRequest, self)._handle_exception(exception) File "/home/pety2do/odoo/80/local/lib/python2.7/site-packages/odoo-8.0-py2.7.egg/openerp/http.py", line 1358, in get_response result.flatten() File "/home/pety2do/odoo/80/local/lib/python2.7/site-packages/odoo-8.0-py2.7.egg/openerp/http.py", line 1231, in flatten self.response.append(self.render()) File "/home/pety2do/odoo/80/local/lib/python2.7/site-packages/odoo-8.0-py2.7.egg/openerp/http.py", line 1225, in render context=request.context) File "/home/pety2do/odoo/80/local/lib/python2.7/site-packages/odoo-8.0-py2.7.egg/openerp/api.py", line 241, in wrapper return old_api(self, *args, **kwargs) File "/home/pety2do/odoo/80/server/addons/website/models/ir_ui_view.py", line 172, in render return super(view, self).render(cr, uid, id_or_xml_id, values=values, engine=engine, context=context) File "/home/pety2do/odoo/80/local/lib/python2.7/site-packages/odoo-8.0-py2.7.egg/openerp/api.py", line 241, in wrapper return old_api(self, *args, **kwargs) File "/home/pety2do/odoo/80/local/lib/python2.7/site-packages/odoo-8.0-py2.7.egg/openerp/addons/base/ir/ir_ui_view.py", line 1029, in render return self.pool[engine].render(cr, uid, id_or_xml_id, qcontext, loader=loader, context=context) File "/home/pety2do/odoo/80/local/lib/python2.7/site-packages/odoo-8.0-py2.7.egg/openerp/api.py", line 241, in wrapper return old_api(self, *args, **kwargs) File "/home/pety2do/odoo/80/local/lib/python2.7/site-packages/odoo-8.0-py2.7.egg/openerp/addons/base/ir/ir_qweb.py", line 261, in render return self.render_node(self.get_template(id_or_xml_id, qwebcontext), qwebcontext) File "/home/pety2do/odoo/80/local/lib/python2.7/site-packages/odoo-8.0-py2.7.egg/openerp/addons/base/ir/ir_qweb.py", line 300, in render_node result = self.render_element(element, template_attributes, generated_attributes, qwebcontext) File "/home/pety2do/odoo/80/local/lib/python2.7/site-packages/odoo-8.0-py2.7.egg/openerp/addons/base/ir/ir_qweb.py", line 321, in render_element g_inner.append(self.render_node(current_node, qwebcontext)) File "/home/pety2do/odoo/80/local/lib/python2.7/site-packages/odoo-8.0-py2.7.egg/openerp/addons/base/ir/ir_qweb.py", line 298, in render_node result = self._render_tag[t_render](self, element, template_attributes, generated_attributes, qwebcontext) File "/home/pety2do/odoo/80/local/lib/python2.7/site-packages/odoo-8.0-py2.7.egg/openerp/addons/base/ir/ir_qweb.py", line 445, in render_tag_call return self.render(cr, uid, template, d) File "/home/pety2do/odoo/80/local/lib/python2.7/site-packages/odoo-8.0-py2.7.egg/openerp/api.py", line 241, in wrapper return old_api(self, *args, **kwargs) File "/home/pety2do/odoo/80/local/lib/python2.7/site-packages/odoo-8.0-py2.7.egg/openerp/addons/base/ir/ir_qweb.py", line 261, in render return self.render_node(self.get_template(id_or_xml_id, qwebcontext), qwebcontext) File "/home/pety2do/odoo/80/local/lib/python2.7/site-packages/odoo-8.0-py2.7.egg/openerp/addons/base/ir/ir_qweb.py", line 300, in render_node result = self.render_element(element, template_attributes, generated_attributes, qwebcontext) File "/home/pety2do/odoo/80/local/lib/python2.7/site-packages/odoo-8.0-py2.7.egg/openerp/addons/base/ir/ir_qweb.py", line 321, in render_element g_inner.append(self.render_node(current_node, qwebcontext)) File "/home/pety2do/odoo/80/local/lib/python2.7/site-packages/odoo-8.0-py2.7.egg/openerp/addons/base/ir/ir_qweb.py", line 300, in render_node result = self.render_element(element, template_attributes, generated_attributes, qwebcontext) File "/home/pety2do/odoo/80/local/lib/python2.7/site-packages/odoo-8.0-py2.7.egg/openerp/addons/base/ir/ir_qweb.py", line 321, in render_element g_inner.append(self.render_node(current_node, qwebcontext)) File "/home/pety2do/odoo/80/local/lib/python2.7/site-packages/odoo-8.0-py2.7.egg/openerp/addons/base/ir/ir_qweb.py", line 300, in render_node result = self.render_element(element, template_attributes, generated_attributes, qwebcontext) File "/home/pety2do/odoo/80/local/lib/python2.7/site-packages/odoo-8.0-py2.7.egg/openerp/addons/base/ir/ir_qweb.py", line 321, in render_element g_inner.append(self.render_node(current_node, qwebcontext)) File "/home/pety2do/odoo/80/local/lib/python2.7/site-packages/odoo-8.0-py2.7.egg/openerp/addons/base/ir/ir_qweb.py", line 300, in render_node result = self.render_element(element, template_attributes, generated_attributes, qwebcontext) File "/home/pety2do/odoo/80/local/lib/python2.7/site-packages/odoo-8.0-py2.7.egg/openerp/addons/base/ir/ir_qweb.py", line 321, in render_element g_inner.append(self.render_node(current_node, qwebcontext)) File "/home/pety2do/odoo/80/local/lib/python2.7/site-packages/odoo-8.0-py2.7.egg/openerp/addons/base/ir/ir_qweb.py", line 300, in render_node result = self.render_element(element, template_attributes, generated_attributes, qwebcontext) File "/home/pety2do/odoo/80/local/lib/python2.7/site-packages/odoo-8.0-py2.7.egg/openerp/addons/base/ir/ir_qweb.py", line 321, in render_element g_inner.append(self.render_node(current_node, qwebcontext)) File "/home/pety2do/odoo/80/local/lib/python2.7/site-packages/odoo-8.0-py2.7.egg/openerp/addons/base/ir/ir_qweb.py", line 300, in render_node result = self.render_element(element, template_attributes, generated_attributes, qwebcontext) File "/home/pety2do/odoo/80/local/lib/python2.7/site-packages/odoo-8.0-py2.7.egg/openerp/addons/base/ir/ir_qweb.py", line 321, in render_element g_inner.append(self.render_node(current_node, qwebcontext)) File "/home/pety2do/odoo/80/local/lib/python2.7/site-packages/odoo-8.0-py2.7.egg/openerp/addons/base/ir/ir_qweb.py", line 300, in render_node result = self.render_element(element, template_attributes, generated_attributes, qwebcontext) File "/home/pety2do/odoo/80/local/lib/python2.7/site-packages/odoo-8.0-py2.7.egg/openerp/addons/base/ir/ir_qweb.py", line 321, in render_element g_inner.append(self.render_node(current_node, qwebcontext)) File "/home/pety2do/odoo/80/local/lib/python2.7/site-packages/odoo-8.0-py2.7.egg/openerp/addons/base/ir/ir_qweb.py", line 300, in render_node result = self.render_element(element, template_attributes, generated_attributes, qwebcontext) File "/home/pety2do/odoo/80/local/lib/python2.7/site-packages/odoo-8.0-py2.7.egg/openerp/addons/base/ir/ir_qweb.py", line 321, in render_element g_inner.append(self.render_node(current_node, qwebcontext)) File "/home/pety2do/odoo/80/local/lib/python2.7/site-packages/odoo-8.0-py2.7.egg/openerp/addons/base/ir/ir_qweb.py", line 300, in render_node result = self.render_element(element, template_attributes, generated_attributes, qwebcontext) File "/home/pety2do/odoo/80/local/lib/python2.7/site-packages/odoo-8.0-py2.7.egg/openerp/addons/base/ir/ir_qweb.py", line 321, in render_element g_inner.append(self.render_node(current_node, qwebcontext)) File "/home/pety2do/odoo/80/local/lib/python2.7/site-packages/odoo-8.0-py2.7.egg/openerp/addons/base/ir/ir_qweb.py", line 300, in render_node result = self.render_element(element, template_attributes, generated_attributes, qwebcontext) File "/home/pety2do/odoo/80/local/lib/python2.7/site-packages/odoo-8.0-py2.7.egg/openerp/addons/base/ir/ir_qweb.py", line 321, in render_element g_inner.append(self.render_node(current_node, qwebcontext)) File "/home/pety2do/odoo/80/local/lib/python2.7/site-packages/odoo-8.0-py2.7.egg/openerp/addons/base/ir/ir_qweb.py", line 298, in render_node result = self._render_tag[t_render](self, element, template_attributes, generated_attributes, qwebcontext) File "/home/pety2do/odoo/80/local/lib/python2.7/site-packages/odoo-8.0-py2.7.egg/openerp/addons/base/ir/ir_qweb.py", line 481, in render_tag_field record = self.eval_object(record, qwebcontext) File "/home/pety2do/odoo/80/local/lib/python2.7/site-packages/odoo-8.0-py2.7.egg/openerp/addons/base/ir/ir_qweb.py", line 208, in eval_object return self.eval(expr, qwebcontext) File "/home/pety2do/odoo/80/local/lib/python2.7/site-packages/odoo-8.0-py2.7.egg/openerp/addons/base/ir/ir_qweb.py", line 205, in eval raise_qweb_exception(message="Could not evaluate expression %r" % expr, expression=expr, template=template) File "/home/pety2do/odoo/80/local/lib/python2.7/site-packages/odoo-8.0-py2.7.egg/openerp/addons/base/ir/ir_qweb.py", line 202, in eval return qwebcontext.safe_eval(expr) File "/home/pety2do/odoo/80/local/lib/python2.7/site-packages/odoo-8.0-py2.7.egg/openerp/addons/base/ir/ir_qweb.py", line 88, in safe_eval return eval(expr, None, locals_dict, nocopy=True, locals_builtins=True) File "/home/pety2do/odoo/80/local/lib/python2.7/site-packages/odoo-8.0-py2.7.egg/openerp/tools/safe_eval.py", line 312, in safe_eval c = test_expr(expr, _SAFE_OPCODES, mode=mode) File "/home/pety2do/odoo/80/local/lib/python2.7/site-packages/odoo-8.0-py2.7.egg/openerp/tools/safe_eval.py", line 167, in test_expr code_obj = compile(expr, "", mode) QWebException: invalid syntax (, line 1)

 

 

Avatar
Descartar
2 Respuestas
0
Avatar
Manuel Ferrero
Best Answer

disculpa mi ignorancia pero no tengo idea de como hacer nada de lo que me decis... si me pudieses dar una explicacion mas detallada te lo agradezco salu2

1 Comentario
Avatar
Descartar
Avatar
Soporte ADHOC
-

Desde el backend de Odoo, tenés que ir a Configuración > Interfaz de Usuario > Vistas. Filtrar por Tipo de vista Qweb y editar la correspondiente a la pagina que se averió, revirtiendo el cambio en el código HTML

0
Avatar
Soporte ADHOC
Best Answer

Vas a tener que acceder a las vistas de qweb desde backend y copiar el código html desde otra base de datos

Avatar
Descartar