Skip to Content
Odoo Menu
  • Prihlásiť sa
  • Vyskúšajte zadarmo
  • Aplikácie
    Financie
    • Účtovníctvo
    • Fakturácia
    • Výdavky
    • Tabuľka (BI)
    • Dokumenty
    • Podpis
    Predaj
    • CRM
    • Predaj
    • POS Shop
    • POS Restaurant
    • Manažment odberu
    • Požičovňa
    Webstránky
    • Tvorca webstránok
    • eShop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Supply Chain
    • Sklad
    • Výroba
    • Správa životného cyklu produktu
    • Nákup
    • Údržba
    • Manažment kvality
    Ľudské zdroje
    • Zamestnanci
    • Nábor zamestnancov
    • Voľné dni
    • Hodnotenia
    • Odporúčania
    • Vozový park
    Marketing
    • Marketing sociálnych sietí
    • Email marketing
    • SMS marketing
    • Eventy
    • Marketingová automatizácia
    • Prieskumy
    Služby
    • Projektové riadenie
    • Pracovné výkazy
    • Práca v teréne
    • Helpdesk
    • Plánovanie
    • Schôdzky
    Produktivita
    • Tímová komunikácia
    • Schvalovania
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Priemyselné odvetvia
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Reštaurácia
    • Fast Food
    • Guest House
    • Beverage distributor
    • Hotel
    Reality
    • Real Estate Agency
    • Architecture Firm
    • Konštrukcia
    • Estate Managament
    • Gardening
    • Property Owner Association
    Poradenstvo
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Výroba
    • Textile
    • Metal
    • Furnitures
    • Jedlo
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware and Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Iní
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Komunita
    Vzdelávanie
    • Tutoriály
    • Dokumentácia
    • Certifikácie
    • Školenie
    • Blog
    • Podcast
    Empower Education
    • Vzdelávací program
    • Scale Up! Business Game
    • Visit Odoo
    Softvér
    • Stiahnuť
    • Porovnanie Community a Enterprise vierzie
    • Releases
    Spolupráca
    • Github
    • Fórum
    • Eventy
    • Preklady
    • Staň sa partnerom
    • Services for Partners
    • Register your Accounting Firm
    Služby
    • Nájdite partnera
    • Nájdite účtovníka
    • Meet an advisor
    • Implementation Services
    • Zákaznícke referencie
    • Podpora
    • Upgrades
    ​Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Získajte demo
  • Cenník
  • Pomoc

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

  • CRM
  • e-Commerce
  • Účtovníctvo
  • Sklady
  • PoS
  • Projektové riadenie
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
Pomoc

Getting Error like 'Name "active_id' is not defined"

Odoberať

Get notified when there's activity on this post

This question has been flagged
purchasesalescrmERPv15
1 Odpoveď
5855 Zobrazenia
Avatar
Neelabh Singh

I am getting following issue only when I add action for Menu (id="menu_incoming_buyer_rfq"
name="Incoming Buyer RFQ")

action="sale_crm.sale_action_quotations_new" However if I change it some other action it working. Is there any issue with CRM module.

UncaughtPromiseError 

UncaughtPromiseError > EvaluationError

Uncaught Promise > Name 'active_id' is not defined

EvaluationError: Name 'active_id' is not defined
    EvaluationError@http://localhost:8069/web/assets/615-a1c5608/web.assets_backend.min.js:803:430
    _evaluate@http://localhost:8069/web/assets/615-a1c5608/web.assets_backend.min.js:838:232
    _evaluate@http://localhost:8069/web/assets/615-a1c5608/web.assets_backend.min.js:840:106
    evaluate@http://localhost:8069/web/assets/615-a1c5608/web.assets_backend.min.js:849:8
    evaluateExpr@http://localhost:8069/web/assets/615-a1c5608/web.assets_backend.min.js:702:109
    makeContext@http://localhost:8069/web/assets/615-a1c5608/web.assets_backend.min.js:164:375
    _preprocessAction@http://localhost:8069/web/assets/615-a1c5608/web.assets_backend.min.js:2231:108
    doAction@http://localhost:8069/web/assets/615-a1c5608/web.assets_backend.min.js:2311:170
    
I am creating menu structure, like "Expora ERP" has sub menu "Buyer RFQ" and "Supplier RFQ" and it has sub menu "Incoming Buyer RFQ" for "Buyer RFQ". However getting error like active_id is not defined What would be reason for it, 

custom_addon/expora_erp/views/menu.xml

id="menu_expora_erp_root"
name="Expora ERP"
sequence="0"/>
id="menu_buyer_rfq_master"
name="Buyer RFQ"
parent="menu_expora_erp_root"
sequence="0"/>
id="menu_supplier_rfq_master"
name="Supplier RFQ"
parent="menu_expora_erp_root"
sequence="1"/>

id="menu_buyer_rfq"
name="Incoming Buyer RFQ"
action="sale_crm.sale_action_quotations_new"
parent="menu_buyer_rfq_master"
sequence="0"/>

id="menu_supplier_rfq"
name="Supplier RFQ"
action="purchase.purchase_rfq"
parent="menu_supplier_rfq_master"
sequence="0"/>



0
Avatar
Zrušiť
Avatar
Niyas Raphy (Walnut Software Solutions)
Best Answer

Hi,

If you check the action, in its context, you can see active_id is used, so when you are calling it from menu, there is no active_id and thus it return the error.

If you need to call this action from menu, remove the context from the action(make sure it wont break any other existing functionalities, seems it will break) or create a new action by copying this action and remove context.


Thanks

0
Avatar
Zrušiť
Neelabh Singh
Autor

How to remove context, can you suggest any link

Niyas Raphy (Walnut Software Solutions)

See: https://www.youtube.com/watch?v=8aGOHkee7i4

Enjoying the discussion? Don't just read, join in!

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

Registrácia
Related Posts Replies Zobrazenia Aktivita
How to call create method of Purchase.Order from create method of Sale.Order?
purchase sales crm odoo v15
Avatar
0
sep 22
4361
Make a default dashboard for all the users
sales hr crm dashboards v15
Avatar
Avatar
1
feb 22
4989
Generate CRM opportunity from sales quotation
sales crm
Avatar
Avatar
Avatar
2
aug 25
4859
How to add products up to the available stock quantity in my store?
purchase sales
Avatar
Avatar
Avatar
2
aug 25
2487
Multi Company Transfer Solved
purchase sales
Avatar
Avatar
1
júl 25
1500
Komunita
  • Tutoriály
  • Dokumentácia
  • Fórum
Open Source
  • Stiahnuť
  • Github
  • Runbot
  • Preklady
Služby
  • Odoo.sh hosting
  • Podpora
  • Vyššia verzia
  • Custom Developments
  • Vzdelávanie
  • Nájdite účtovníka
  • Nájdite partnera
  • Staň sa partnerom
O nás
  • Naša spoločnosť
  • Majetok značky
  • Kontaktujte nás
  • Pracovné ponuky
  • Eventy
  • Podcast
  • Blog
  • Zákazníci
  • Právne dokumenty • Súkromie
  • Bezpečnosť
الْعَرَبيّة 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 je sada podnikových aplikácií s otvoreným zdrojovým kódom, ktoré pokrývajú všetky potreby vašej spoločnosti: CRM, e-shop, účtovníctvo, skladové hospodárstvo, miesto predaja, projektový manažment atď.

Odoo prináša vysokú pridanú hodnotu v jednoduchom použití a súčasne plne integrovanými biznis aplikáciami.

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