Skip to Content
Menu
This question has been flagged

Hello guys, well I'm trying accept or decline Meetings invitation from calendar module in Odoo 9, but when I try accept or decline I get this error:

"Internal Server Error The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application. "


I read that could be because you have more than one database but I only have one, inside the template of the email the buttons for "Accept", "Decline" or "View" are this:

                            <a style="padding: 8px 30px 8px 30px;border-radius: 6px;border: 1px solid #CCCCCC;background:#8A89BA;margin : 0 15px 0 0;text-decoration: none;color:#FFFFFF;" href="/calendar/meeting/accept?db=${'dbname' in ctx and ctx['dbname'] or ''}&token=${object.access_token}&action=${'action_id' in ctx and ctx['action_id'] or ''}&id=${object.event_id.id}">Accept</a>

                            <a style="padding: 8px 30px 8px 30px;border-radius: 6px;border: 1px solid #CCCCCC;background:#808080;margin : 0 15px 0 0;text-decoration: none;color:#FFFFFF;" href="/calendar/meeting/decline?db=${'dbname' in ctx and ctx['dbname'] or '' }&token=${object.access_token}&action=${'action_id' in ctx and ctx['action_id'] or ''}&id=${object.event_id.id}">Decline</a>

                            <a style="padding: 8px 30px 8px 30px;border-radius: 6px;border: 1px solid #CCCCCC;background:#D8D8D8;text-decoration: none;color:#FFFFFF;" href="/calendar/meeting/view?db=${'dbname' in ctx and ctx['dbname'] or ''}&token=${object.access_token}&action=${'action_id' in ctx and ctx['action_id'] or ''}&id=${object.event_id.id}">View</a>


And my error log has this information:


File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 192, in eval

    return qwebcontext.safe_eval(expr)

  File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 104, in safe_eval

    return eval(expr, None, locals_dict, nocopy=True, locals_builtins=True)

  File "/opt/odoo/openerp/tools/safe_eval.py", line 298, in safe_eval

    return eval(c, globals_dict, locals_dict)

  File "", line 1, in <module>

QWebException: "'NoneType' object has no attribute '__getitem__'" while evaluating

"menu_data['children']"



Anyone knows what could be the problem?

Thank You so much!

Avatar
Discard

Is this the complete traceback?

Author

The complete is this:

2017-11-21 11:50:01,323 19787 ERROR IAMZTEST werkzeug: Error on request:

Traceback (most recent call last):

File "/home/odoo/odoo/lib/python2.7/site-packages/werkzeug/serving.py", line 193, in run_wsgi

execute(self.server.app)

File "/home/odoo/odoo/lib/python2.7/site-packages/werkzeug/serving.py", line 181, in execute

application_iter = app(environ, start_response)

File "/opt/odoo/openerp/service/server.py", line 246, in app

return self.app(e, s)

File "/opt/odoo/openerp/service/wsgi_server.py", line 184, in application

return application_unproxied(environ, start_response)

File "/opt/odoo/openerp/service/wsgi_server.py", line 170, in application_unproxied

result = handler(environ, start_response)

File "/opt/odoo/openerp/http.py", line 1495, in __call__

return self.dispatch(environ, start_response)

File "/opt/odoo/openerp/http.py", line 1469, in __call__

return self.app(environ, start_wrapped)

File "/home/odoo/odoo/lib/python2.7/site-packages/werkzeug/wsgi.py", line 599, in __call__

return self.app(environ, start_response)

File "/opt/odoo/openerp/http.py", line 1659, in dispatch

result = ir_http._dispatch()

File "/opt/odoo/addons/utm/models/ir_http.py", line 15, in _dispatch

response = super(ir_http, self)._dispatch()

File "/opt/odoo/addons/web_editor/models/ir_http.py", line 16, in _dispatch

return super(ir_http, self)._dispatch()

File "/opt/odoo/openerp/addons/base/ir/ir_http.py", line 187, in _dispatch

return self._handle_exception(e)

File "/opt/odoo/openerp/addons/base/ir/ir_http.py", line 158, in _handle_exception

return request._handle_exception(exception)

File "/opt/odoo/openerp/http.py", line 786, in _handle_exception

return super(HttpRequest, self)._handle_exception(exception)

File "/opt/odoo/openerp/addons/base/ir/ir_http.py", line 183, in _dispatch

result = request.dispatch()

File "/opt/odoo/openerp/http.py", line 845, in dispatch

r = self._call_function(**self.params)

File "/opt/odoo/openerp/http.py", line 321, in _call_function

return checked_call(self.db, *args, **kwargs)

File "/opt/odoo/openerp/service/model.py", line 118, in wrapper

return f(dbname, *args, **kwargs)

File "/opt/odoo/openerp/http.py", line 317, in checked_call

result.flatten()

File "/opt/odoo/openerp/http.py", line 1446, in flatten

self.response.append(self.render())

File "/opt/odoo/openerp/http.py", line 1439, in render

context=request.context)

File "/opt/odoo/openerp/api.py", line 250, in wrapper

return old_api(self, *args, **kwargs)

File "/opt/odoo/addons/web_editor/models/ir_ui_view.py", line 29, in render

return super(view, self).render(cr, uid, id_or_xml_id, values=values, engine=engine, context=context)

File "/opt/odoo/openerp/api.py", line 250, in wrapper

return old_api(self, *args, **kwargs)

File "/opt/odoo/openerp/addons/base/ir/ir_ui_view.py", line 1081, in render

return self.pool[engine].render(cr, uid, id_or_xml_id, qcontext, loader=loader, context=context)

File "/opt/odoo/openerp/api.py", line 250, in wrapper

return old_api(self, *args, **kwargs)

File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 254, in render

return self.render_node(element, qwebcontext, generated_attributes=qwebcontext.pop('generated_attributes', ''))

File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 297, in render_node

result = self.render_element(element, template_attributes, generated_attributes, qwebcontext)

File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 320, in render_element

generated_attributes= name == "t" and generated_attributes or ''))

File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 295, in render_node

result = self._render_tag[t_render](self, element, template_attributes, generated_attributes, qwebcontext)

File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 448, in render_tag_call

d[0] = self.render_element(element, template_attributes, generated_attributes, d)

File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 320, in render_element

generated_attributes= name == "t" and generated_attributes or ''))

File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 297, in render_node

result = self.render_element(element, template_attributes, generated_attributes, qwebcontext)

File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 320, in render_element

generated_attributes= name == "t" and generated_attributes or ''))

File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 297, in render_node

result = self.render_element(element, template_attributes, generated_attributes, qwebcontext)

File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 320, in render_element

generated_attributes= name == "t" and generated_attributes or ''))

File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 295, in render_node

result = self._render_tag[t_render](self, element, template_attributes, generated_attributes, qwebcontext)

File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 459, in render_tag_call

res = self.render(cr, uid, template, d)

File "/opt/odoo/openerp/api.py", line 250, in wrapper

return old_api(self, *args, **kwargs)

File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 254, in render

return self.render_node(element, qwebcontext, generated_attributes=qwebcontext.pop('generated_attributes', ''))

File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 297, in render_node

result = self.render_element(element, template_attributes, generated_attributes, qwebcontext)

File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 320, in render_element

generated_attributes= name == "t" and generated_attributes or ''))

File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 297, in render_node

result = self.render_element(element, template_attributes, generated_attributes, qwebcontext)

File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 320, in render_element

generated_attributes= name == "t" and generated_attributes or ''))

File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 297, in render_node

result = self.render_element(element, template_attributes, generated_attributes, qwebcontext)

File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 320, in render_element

generated_attributes= name == "t" and generated_attributes or ''))

File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 297, in render_node

result = self.render_element(element, template_attributes, generated_attributes, qwebcontext)

File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 320, in render_element

generated_attributes= name == "t" and generated_attributes or ''))

File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 295, in render_node

result = self._render_tag[t_render](self, element, template_attributes, generated_attributes, qwebcontext)

File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 388, in render_tag_foreach

enum = self.eval_object(expr, qwebcontext)

File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 198, in eval_object

return self.eval(expr, qwebcontext)

File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 195, in eval

raise_qweb_exception(message="Could not evaluate expression %r" % expr, expression=expr, template=template)

File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 192, in eval

return qwebcontext.safe_eval(expr)

File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 104, in safe_eval

return eval(expr, None, locals_dict, nocopy=True, locals_builtins=True)

File "/opt/odoo/openerp/tools/safe_eval.py", line 298, in safe_eval

return eval(c, globals_dict, locals_dict)

File "", line 1, in <module>

QWebException: "'NoneType' object has no attribute '__getitem__'" while evaluating

"menu_data['children']"

Related Posts Replies Views Activity
0
Feb 18
3601
0
Oct 22
1935
7
Dec 23
23460
0
Apr 17
4400
1
Jan 17
15834