Odoo Help


active_id error when i login into OpenERP 7.0

on 5/14/13, 5:48 AM 2,829 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?


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

on 3/16/15, 9:52 PM

Does the postgres version matters ? I'm using 9.1

on 3/16/15, 11:18 PM

About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)


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