Community mailing list archives

community@mail.odoo.com

Re: Error restore DB

by
Mohamed Magdy
- 02/29/2016 04:24:51

He meant the version of Odoo not the custom modules


On Mon, Feb 29, 2016, 11:23 AM Mohamed Mtloob <mohamedmtloob87@gmail.com> wrote:
Dear  Houssine

Every thing is same custom module in my pc and in the server

On Mon, Feb 29, 2016 at 10:42 AM, Houssine BAKKALI <houssine.bakkali@gmail.com> wrote:
ensure that you have the same version of the used custom modules on the server where the db has been saved and your laptop...
2016-02-29 9:37 GMT+01:00 Mohamed Mtloob <mohamedmtloob87@gmail.com>:
Thank you MR Magdy for your fast replay

i done all what you need
      - update all installed addons
      - search for where i use '+' with two variables, but nothing

On Mon, Feb 29, 2016 at 10:22 AM, Mohamed Magdy <moh.magdy40@gmail.com> wrote:
Hi Matloob,

I think this problem is happened because you have a missing values in your DB. As you can see in the last line:
An error is raised because you tried to use '+' with two variables one of them is 'str' and the other is 'NonType'. 

I am not sure if restoring it again or updating ALL modules will fix this. But go for updating ALL module at first.

On Mon, Feb 29, 2016 at 10:12 AM Mohamed Mtloob <mohamedmtloob87@gmail.com> wrote:
Dear All
Hope my mail find all well
could any one please help me about this issue??
after i restore odoo DB to my pc i got this error
"""""
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/werkzeug/serving.py", line 177, in run_wsgi
    execute(self.server.app)
  File "/usr/lib/python2.7/dist-packages/werkzeug/serving.py", line 165, in execute
    application_iter = app(environ, start_response)
  File "/home/mtloob/Documents/Eclipseworkspace/odoo8/openerp/service/server.py", line 290, in app
    return self.app(e, s)
  File "/home/mtloob/Documents/Eclipseworkspace/odoo8/openerp/service/wsgi_server.py", line 216, in application
    return application_unproxied(environ, start_response)
  File "/home/mtloob/Documents/Eclipseworkspace/odoo8/openerp/service/wsgi_server.py", line 202, in application_unproxied
    result = handler(environ, start_response)
  File "/home/mtloob/Documents/Eclipseworkspace/odoo8/openerp/http.py", line 1290, in __call__
    return self.dispatch(environ, start_response)
  File "/home/mtloob/Documents/Eclipseworkspace/odoo8/openerp/http.py", line 1264, in __call__
    return self.app(environ, start_wrapped)
  File "/usr/lib/python2.7/dist-packages/werkzeug/wsgi.py", line 579, in __call__
    return self.app(environ, start_response)
  File "/home/mtloob/Documents/Eclipseworkspace/odoo8/openerp/http.py", line 1442, in dispatch
    response = self.get_response(httprequest, result, explicit_session)
  File "/home/mtloob/Documents/Eclipseworkspace/odoo8/openerp/http.py", line 1373, in get_response
    result = request.registry['ir.http']._handle_exception(e)
  File "/home/mtloob/Documents/Eclipseworkspace/odoo8/addons/website/models/ir_http.py", line 196, in _handle_exception
    return super(ir_http, self)._handle_exception(exception)
  File "/home/mtloob/Documents/Eclipseworkspace/odoo8/openerp/addons/base/ir/ir_http.py", line 145, in _handle_exception
    return request._handle_exception(exception)
  File "/home/mtloob/Documents/Eclipseworkspace/odoo8/openerp/http.py", line 666, in _handle_exception
    return super(HttpRequest, self)._handle_exception(exception)
  File "/home/mtloob/Documents/Eclipseworkspace/odoo8/openerp/http.py", line 1370, in get_response
    result.flatten()
  File "/home/mtloob/Documents/Eclipseworkspace/odoo8/openerp/http.py", line 1241, in flatten
    self.response.append(self.render())
  File "/home/mtloob/Documents/Eclipseworkspace/odoo8/openerp/http.py", line 1235, in render
    context=request.context)
  File "/home/mtloob/Documents/Eclipseworkspace/odoo8/openerp/api.py", line 256, in wrapper
    return old_api(self, *args, **kwargs)
  File "/home/mtloob/Documents/Eclipseworkspace/odoo8/addons/website/models/ir_ui_view.py", line 173, in render
    return super(view, self).render(cr, uid, id_or_xml_id, values=values, engine=engine, context=context)
  File "/home/mtloob/Documents/Eclipseworkspace/odoo8/openerp/api.py", line 256, in wrapper
    return old_api(self, *args, **kwargs)
  File "/home/mtloob/Documents/Eclipseworkspace/odoo8/openerp/addons/base/ir/ir_ui_view.py", line 1022, in render
    return self.pool[engine].render(cr, uid, id_or_xml_id, qcontext, loader=loader, context=context)
  File "/home/mtloob/Documents/Eclipseworkspace/odoo8/openerp/api.py", line 256, in wrapper
    return old_api(self, *args, **kwargs)
  File "/home/mtloob/Documents/Eclipseworkspace/odoo8/openerp/addons/base/ir/ir_qweb.py", line 263, in render
    return self.render_node(self.get_template(id_or_xml_id, qwebcontext), qwebcontext)
  File "/home/mtloob/Documents/Eclipseworkspace/odoo8/openerp/addons/base/ir/ir_qweb.py", line 302, in render_node
    result = self.render_element(element, template_attributes, generated_attributes, qwebcontext)
  File "/home/mtloob/Documents/Eclipseworkspace/odoo8/openerp/addons/base/ir/ir_qweb.py", line 323, in render_element
    g_inner.append(self.render_node(current_node, qwebcontext))
  File "/home/mtloob/Documents/Eclipseworkspace/odoo8/openerp/addons/base/ir/ir_qweb.py", line 300, in render_node
    result = self._render_tag[t_render](self, element, template_attributes, generated_attributes, qwebcontext)
  File "/home/mtloob/Documents/Eclipseworkspace/odoo8/openerp/addons/base/ir/ir_qweb.py", line 447, in render_tag_call
    return self.render(cr, uid, template, d)
  File "/home/mtloob/Documents/Eclipseworkspace/odoo8/openerp/api.py", line 256, in wrapper
    return old_api(self, *args, **kwargs)
  File "/home/mtloob/Documents/Eclipseworkspace/odoo8/openerp/addons/base/ir/ir_qweb.py", line 263, in render
    return self.render_node(self.get_template(id_or_xml_id, qwebcontext), qwebcontext)
  File "/home/mtloob/Documents/Eclipseworkspace/odoo8/openerp/addons/base/ir/ir_qweb.py", line 302, in render_node
    result = self.render_element(element, template_attributes, generated_attributes, qwebcontext)
  File "/home/mtloob/Documents/Eclipseworkspace/odoo8/openerp/addons/base/ir/ir_qweb.py", line 323, in render_element
    g_inner.append(self.render_node(current_node, qwebcontext))
  File "/home/mtloob/Documents/Eclipseworkspace/odoo8/openerp/addons/base/ir/ir_qweb.py", line 300, in render_node
    result = self._render_tag[t_render](self, element, template_attributes, generated_attributes, qwebcontext)
  File "/home/mtloob/Documents/Eclipseworkspace/odoo8/openerp/addons/base/ir/ir_qweb.py", line 466, in render_tag_set
    qwebcontext[template_attributes["set"]] = self.eval_object(template_attributes["value"], qwebcontext)
  File "/home/mtloob/Documents/Eclipseworkspace/odoo8/openerp/addons/base/ir/ir_qweb.py", line 210, in eval_object
    return self.eval(expr, qwebcontext)
  File "/home/mtloob/Documents/Eclipseworkspace/odoo8/openerp/addons/base/ir/ir_qweb.py", line 207, in eval
    raise_qweb_exception(message="Could not evaluate expression %r" % expr, expression=expr, template=template)
  File "/home/mtloob/Documents/Eclipseworkspace/odoo8/openerp/addons/base/ir/ir_qweb.py", line 204, in eval
    return qwebcontext.safe_eval(expr)
  File "/home/mtloob/Documents/Eclipseworkspace/odoo8/openerp/addons/base/ir/ir_qweb.py", line 89, in safe_eval
    return eval(expr, None, locals_dict, nocopy=True, locals_builtins=True)
  File "/home/mtloob/Documents/Eclipseworkspace/odoo8/openerp/tools/safe_eval.py", line 314, in safe_eval
    return eval(c, globals_dict, locals_dict)
  File "", line 1, in <module>
   
QWebException: "unsupported operand type(s) for +: 'NoneType' and 'str'" while evaluating
"lang_direction + ' ' + (body_classname or '')"
"""""

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe

--
Best Regards,

Mohamed Magdy
Odoo Technical Team Leader

_______________________________________________

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe

--
Best Regards,

Mohamed Magdy
Odoo Technical Team Leader
Mob 1: +201114347478
Mob 2: +201095179215