Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

error when adding new product in odoo9

By
Ankit Gupta
on 6/15/16, 1:01 AM 294 views

Traceback (most recent call last):

File "/usr/lib/python2.7/dist-packages/werkzeug/serving.py", line 180, in run_wsgi

execute(self.server.app)

File "/usr/lib/python2.7/dist-packages/werkzeug/serving.py", line 168, in execute

application_iter = app(environ, start_response)

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

return self.app(e, s)

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

return application_unproxied(environ, start_response)

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

result = handler(environ, start_response)

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

return self.dispatch(environ, start_response)

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

return self.app(environ, start_wrapped)

File "/usr/lib/python2.7/dist-packages/werkzeug/wsgi.py", line 591, in __call__

return self.app(environ, start_response)

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

result = ir_http._dispatch()

File "/opt/odoo/odoo/addons/website_sale/models/ir_http.py", line 12, in _dispatch

return super(IrHttp, self)._dispatch()

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

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

File "/opt/odoo/odoo/addons/website/models/ir_http.py", line 191, in _dispatch

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

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

return super(ir_http, self)._dispatch()

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

return self._handle_exception(e)

File "/opt/odoo/odoo/addons/website/models/ir_http.py", line 297, in _handle_exception

html = request.website._render('website.http_error', values)

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

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

File "/opt/odoo/odoo/openerp/api.py", line 574, in new_api

result = method(self._model, cr, uid, self.ids, *args, **old_kwargs)

File "/opt/odoo/odoo/addons/website/models/website.py", line 417, in _render

return self.pool['ir.ui.view'].render(cr, uid, template, values=values, context=context)

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

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

File "/opt/odoo/odoo/addons/website/models/ir_ui_view.py", line 147, in render

qcontext = self._prepare_qcontext(cr, uid, context=context)

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

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

File "/opt/odoo/odoo/addons/website/models/ir_ui_view.py", line 172, in _prepare_qcontext

company = self.pool['res.company'].browse(cr, SUPERUSER_ID, request.website.company_id.id, context=context)

File "/opt/odoo/odoo/openerp/fields.py", line 829, in __get__

self.determine_value(record)

File "/opt/odoo/odoo/openerp/fields.py", line 927, in determine_value

record._prefetch_field(self)

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

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

File "/opt/odoo/odoo/openerp/models.py", line 3298, in _prefetch_field

result = records.read([f.name for f in fs], load='_classic_write')

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

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

File "/opt/odoo/odoo/openerp/models.py", line 3228, in read

self._read_from_database(stored, inherited)

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

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

File "/opt/odoo/odoo/openerp/models.py", line 3366, in _read_from_database

cr.execute(query_str, params)

File "/opt/odoo/odoo/openerp/sql_db.py", line 141, in wrapper

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

File "/opt/odoo/odoo/openerp/sql_db.py", line 220, in execute

res = self._obj.execute(query, params)

this is not the full code, show us the full error code and give us a description what you have done to get this error

wizardz
on 6/15/16, 3:41 AM
0
Ankit Gupta
On 6/16/16, 10:09 AM

Traceback (most recent call last):

File "/usr/lib/python2.7/dist-packages/werkzeug/serving.py", line 180, in run_wsgi

execute(self.server.app)

File "/usr/lib/python2.7/dist-packages/werkzeug/serving.py", line 168, in execute

application_iter = app(environ, start_response)

File "/home/samir/Documents/odoo8/odoo/odoo-server/openerp/service/server.py", line 246, in app

return self.app(e, s)

File "/home/samir/Documents/odoo8/odoo/odoo-server/openerp/service/wsgi_server.py", line 184, in application

return application_unproxied(environ, start_response)

File "/home/samir/Documents/odoo8/odoo/odoo-server/openerp/service/wsgi_server.py", line 170, in application_unproxied

result = handler(environ, start_response)

File "/home/samir/Documents/odoo8/odoo/odoo-server/openerp/http.py", line 1492, in __call__

self.load_addons()

File "/home/samir/Documents/odoo8/odoo/odoo-server/openerp/http.py", line 1513, in load_addons

m = __import__('openerp.addons.' + module)

File "/home/samir/Documents/odoo8/odoo/odoo-server/openerp/modules/module.py", line 61, in load_module

mod = imp.load_module('openerp.addons.' + module_part, f, path, descr)

File "/home/samir/Documents/odoo8/odoo/odoo-server/addons/website_rate_product/__init__.py", line 3, in <module>

from . import controllers

File "/home/samir/Documents/odoo8/odoo/odoo-server/addons/website_rate_product/controllers/__init__.py", line 2, in <module>

from . import main

File "/home/samir/Documents/odoo8/odoo/odoo-server/addons/website_rate_product/controllers/main.py", line 5, in <module>

from openerp.addons.web.controllers.main import login_redirect

ImportError: cannot import name login_redirect

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 6/15/16, 1:01 AM
Seen: 294 times
Last updated: 6/16/16, 10:09 AM