Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

odoo.sh: 'NameError: name 'active_id' is not defined' from multiple places

Subscribe

Get notified when there's activity on this post

This question has been flagged
odoo11odoo.sh
2 Replies
9173 Views
Avatar
Bruce Letterle

When I get an email notification from a task in Odoo and click on the "View Task" button:


Which in this case, has a URL of: http://www.redlabmedia.com/mail/view?message_id=15367

I get the following error:

Error:
Error: NameError: name 'active_id' is not defined
https://www.redlabmedia.com/web/content/5997-87b8881/web.assets_backend.js:127
Traceback:
PY_ensurepy@https://www.redlabmedia.com/web/content/5997-87b8881/web.assets_backend.js:127:74
evaluate@https://www.redlabmedia.com/web/content/5997-87b8881/web.assets_backend.js:242:19
evaluate@https://www.redlabmedia.com/web/content/5997-87b8881/web.assets_backend.js:251:202
eval@https://www.redlabmedia.com/web/content/5997-87b8881/web.assets_backend.js:255:292
https://www.redlabmedia.com/web/content/5997-87b8881/web.assets_backend.js:351:114
iterator@https://www.redlabmedia.com/web/content/5472-9ba3160/web.assets_common.js:14:191
https://www.redlabmedia.com/web/content/5472-9ba3160/web.assets_common.js:17:16
https://www.redlabmedia.com/web/content/5472-9ba3160/web.assets_common.js:69:531
https://www.redlabmedia.com/web/content/5997-87b8881/web.assets_backend.js:351:266
iterator@https://www.redlabmedia.com/web/content/5472-9ba3160/web.assets_common.js:14:191
https://www.redlabmedia.com/web/content/5472-9ba3160/web.assets_common.js:17:16
https://www.redlabmedia.com/web/content/5472-9ba3160/web.assets_common.js:69:531
do_action@https://www.redlabmedia.com/web/content/5997-87b8881/web.assets_backend.js:408:272
https://www.redlabmedia.com/web/content/5472-9ba3160/web.assets_common.js:3819:376
[native code]
https://www.redlabmedia.com/web/content/5472-9ba3160/web.assets_common.js:802:686
fire@https://www.redlabmedia.com/web/content/5472-9ba3160/web.assets_common.js:796:304
fireWith@https://www.redlabmedia.com/web/content/5472-9ba3160/web.assets_common.js:801:202
https://www.redlabmedia.com/web/content/5472-9ba3160/web.assets_common.js:802:874
fire@https://www.redlabmedia.com/web/content/5472-9ba3160/web.assets_common.js:796:304
fireWith@https://www.redlabmedia.com/web/content/5472-9ba3160/web.assets_common.js:801:202
https://www.redlabmedia.com/web/content/5472-9ba3160/web.assets_common.js:802:874
fire@https://www.redlabmedia.com/web/content/5472-9ba3160/web.assets_common.js:796:304
fireWith@https://www.redlabmedia.com/web/content/5472-9ba3160/web.assets_common.js:801:202
https://www.redlabmedia.com/web/content/5472-9ba3160/web.assets_common.js:802:874
fire@https://www.redlabmedia.com/web/content/5472-9ba3160/web.assets_common.js:796:304
fireWith@https://www.redlabmedia.com/web/content/5472-9ba3160/web.assets_common.js:801:202
https://www.redlabmedia.com/web/content/5472-9ba3160/web.assets_common.js:802:874
fire@https://www.redlabmedia.com/web/content/5472-9ba3160/web.assets_common.js:796:304
fireWith@https://www.redlabmedia.com/web/content/5472-9ba3160/web.assets_common.js:801:202
done@https://www.redlabmedia.com/web/content/5472-9ba3160/web.assets_common.js:1192:106
callback@https://www.redlabmedia.com/web/content/5472-9ba3160/web.assets_common.js:1212:23

I get it  (name 'active_id' is not defined) in a few other places as well.  Like when Activating the Developer Mode.

I see people complaining about this error, but everyone answers that it's fixed.  I'm using odoo.sh.  Shouldn't this be fixed then?



1
Avatar
Discard
Avatar
Manh Nguyen
Best Answer

I have the same issue and solved it.

In my case, i have create a action which is incorrect and I restart the instance, then fix that action. But the first action still be saved in database.

Solved: Settings -> Technical -> Remove 2 actions then upgrade module.

0
Avatar
Discard
Avatar
Russ Schneider
Best Answer

Still an issue on odoo.sh.

This also happens when I login:

function PY_ensurepy(val, name) {
        switch (val) {
        case undefined:
            throw new Error("NameError: name '" + name + "' is not defined");
        case null:     /* ERROR IS HERE */
            return py.None;
        case true:
            return py.True;
        case false:
            return py.False;
        }
        var fn = function() {};
        fn.prototype = py.object;
        if (py.PY_isInstance(val, py.object) || py.PY_isSubclass(val, py.object)) {
            return val;
        }
        switch (typeof val) {
        case 'number':
            return py.float.fromJSON(val);
        case 'string':
            return py.str.fromJSON(val);
        case 'function':
            return py.PY_def.fromJSON(val);
        }
        switch (val.constructor) {
        case Object:
            var o = py.PY_call(py.object);
            for (var prop in val) {
                if (val.hasOwnProperty(prop)) {
                    o[prop] = val[prop];
                }
            }
            return o;
        case Array:
            return py.list.fromJSON(val);
        }
        throw new Error("Could not convert " + val + " to a pyval");
    }


[Error] Error: NameError: name 'active_id' is not defined
PY_ensurepy (web.assets_backend.js:127:120)
evaluate (web.assets_backend.js:242)
evaluate (web.assets_backend.js:251:203)
eval (web.assets_backend.js:255:293)
(anonymous function) (web.assets_backend.js:351:115)
iterator (web.assets_common.js:9:192)
(anonymous function) (web.assets_common.js:12)
(anonymous function) (web.assets_common.js:64:532)
(anonymous function) (web.assets_backend.js:351:267)
iterator (web.assets_common.js:9:192)
(anonymous function) (web.assets_common.js:12)
(anonymous function) (web.assets_common.js:64:532)
do_action (web.assets_backend.js:408:273)
(anonymous function) (web.assets_common.js:3712:377)
(anonymous function)
(anonymous function) (web.assets_common.js:788:687)
fire (web.assets_common.js:782:305)
fireWith (web.assets_common.js:787:203)
(anonymous function) (web.assets_common.js:788:875)
fire (web.assets_common.js:782:305)
fireWith (web.assets_common.js:787:203)
(anonymous function) (web.assets_common.js:788:875)
fire (web.assets_common.js:782:305)
fireWith (web.assets_common.js:787:203)
(anonymous function) (web.assets_common.js:788:875)
fire (web.assets_common.js:782:305)
fireWith (web.assets_common.js:787:203)
(anonymous function) (web.assets_common.js:788:875)
fire (web.assets_common.js:782:305)
fireWith (web.assets_common.js:787:203)
done (web.assets_common.js:1178:107)
callback (web.assets_common.js:1198)
0
Avatar
Discard
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Sign up
Related Posts Replies Views Activity
Where are custom modules,views, fields, etc. located on Odoo.sh Shell? Solved
shell odoo11 odoo.sh
Avatar
Avatar
Avatar
3
Jul 18
15398
Demande d'explication - odoo.sh | odoo online Solved
odoo.sh
Avatar
Avatar
1
Nov 25
186
create backorder odoo after validate purchase shipment ? Solved
odoo11
Avatar
Avatar
1
Oct 25
11856
Odoo.sh initiating shutdown every 5-10 mins
odoo.sh
Avatar
Avatar
1
Jul 25
2844
Odoo 11: How to edit odoo.conf file in odoo.sh for queue jobs?
odoo.sh
Avatar
Avatar
Avatar
Avatar
Avatar
4
Apr 25
13464
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now