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.

1

active_id error when i login into OpenERP 7.0

By
Victor
on 5/14/13, 5:48 AM 2,610 views

Hello, I have an error in my OpenERP 7.0. When I login or I enter into Configuration section, it appears the follow error: OpenERP Server Error Client Traceback (most recent call last): File "C:\Program Files (x86)\OpenERP 7.0-20130501-232419\Server\server\openerp\addons\web\http.py", line 204, in dispatch File "C:\Program Files (x86)\OpenERP 7.0-20130501-232419\Server\server\openerp\addons\web\controllers\main.py", line 1041, in load_needaction File "C:\Program Files (x86)\OpenERP 7.0-20130501-232419\Server\server\openerp\addons\web\session.py", line 43, in proxy File "C:\Program Files (x86)\OpenERP 7.0-20130501-232419\Server\server\openerp\addons\web\session.py", line 31, in proxy_method File "C:\Program Files (x86)\OpenERP 7.0-20130501-232419\Server\server\openerp\addons\web\session.py", line 104, in send

Server Traceback (most recent call last): File "C:\Program Files (x86)\OpenERP 7.0-20130501-232419\Server\server\openerp\addons\web\session.py", line 90, in send File "C:\Program Files (x86)\OpenERP 7.0-20130501-232419\Server\server.\openerp\netsvc.py", line 293, in dispatch_rpc File "C:\Program Files (x86)\OpenERP 7.0-20130501-232419\Server\server.\openerp\service\web_services.py", line 626, in dispatch File "C:\Program Files (x86)\OpenERP 7.0-20130501-232419\Server\server.\openerp\osv\osv.py", line 188, in execute_kw File "C:\Program Files (x86)\OpenERP 7.0-20130501-232419\Server\server.\openerp\osv\osv.py", line 131, in wrapper File "C:\Program Files (x86)\OpenERP 7.0-20130501-232419\Server\server.\openerp\osv\osv.py", line 197, in execute File "C:\Program Files (x86)\OpenERP 7.0-20130501-232419\Server\server.\openerp\osv\osv.py", line 185, in execute_cr File "C:\Program Files (x86)\OpenERP 7.0-20130501-232419\Server\server\openerp\addons\base\ir\ir_ui_menu.py", line 307, in get_needaction_data File "C:\Program Files (x86)\OpenERP 7.0-20130501-232419\Server\server.\openerp\tools\safe_eval.py", line 241, in safe_eval File "", line 1, in <module> NameError: name 'active_id' is not defined

It appears from I shared a task to a external email and I logued into the application with the user that created by OpenERP.

Someone could help me?

Thank you in advance.

EDIT: I saw that it happens when you share a task of project. When you logout and you login again with any user of application, it appears this error, not when you login with the new user. I have tried to share customers and products, and this error doesn't appear, only sharing tasks... Anybody knows if there is a bug?

Thanks!

0
Fnordbedarf
On 12/4/14, 4:58 AM

Supposedly, this is a no-issue: https://bugs.launchpad.net/openerp-web/+bug/1089463 This bug was "fixed" by no updates. But I ran into it just now, on postgres 9.2.6 and 9.2.9 restoring a dump from openerp 7 running on postgres 9.2.6.

Your findings are correct, it has to do with Projects: https://bugs.launchpad.net/openerp-web/+bug/855343, where xmo and redhatter propose the following solutions:

  • xmo: you will probably have to create a new db (or fix the action linked to the menu item)
  • redhatter: A note to anyone who gets this… I found I struck it repeatedly until I did the following: UPDATE ir_act_window SET context='{}' WHERE name like 'Schedule %' AND res_model like 'project.compute.%';

So, I ran redhatter's line of code and got "Query returned successfully: 0 rows affected, 11 ms execution time."

@Fnordbedarf I also ran redhatter's line of code and got "Query returned successfully: 0 rows affected, 2 ms execution time." but why I still got the Error NameError: name 'active_id' is not defined? DO you have other idea on solving this? Thank you so much

Miel
on 3/16/15, 9:52 PM

Does the postgres version matters ? I'm using 9.1

Miel
on 3/16/15, 11:18 PM

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

0 follower(s)

Stats

Asked: 5/14/13, 5:48 AM
Seen: 2610 times
Last updated: 3/16/15, 8:10 AM