Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Validacions
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Immobiliari
    • Agència immobiliària
    • Estudi d'arquitectura
    • Construcció
    • Gestió immobiliària
    • Jardineria
    • Associació de propietaris de béns immobles
    Consultoria
    • Empresa comptable
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Mobles
    • Menjar
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Sistemes d'energia solar
    • Shoe Maker
    • Serveis de neteja
    • Instal·lacions HVAC
    Altres
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda

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

  • CRM
  • e-Commerce
  • Comptabilitat
  • Inventari
  • PoS
  • Projectes
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

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

Subscriure's

Get notified when there's activity on this post

This question has been flagged
odoo11odoo.sh
2 Respostes
9180 Vistes
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
Descartar
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
Descartar
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
Descartar
Enjoying the discussion? Don't just read, join in!

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

Registrar-se
Related Posts Respostes Vistes Activitat
Where are custom modules,views, fields, etc. located on Odoo.sh Shell? Solved
shell odoo11 odoo.sh
Avatar
Avatar
Avatar
3
de jul. 18
15412
Demande d'explication - odoo.sh | odoo online Solved
odoo.sh
Avatar
Avatar
1
de nov. 25
215
create backorder odoo after validate purchase shipment ? Solved
odoo11
Avatar
Avatar
1
d’oct. 25
11862
Odoo.sh initiating shutdown every 5-10 mins
odoo.sh
Avatar
Avatar
1
de jul. 25
2847
Odoo 11: How to edit odoo.conf file in odoo.sh for queue jobs?
odoo.sh
Avatar
Avatar
Avatar
Avatar
Avatar
4
d’abr. 25
13473
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة 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 és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

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