Skip to Content
Odoo Meniu
  • Autentificare
  • Try it free
  • Aplicații
    Finanțe
    • Contabilitate
    • Facturare
    • Cheltuieli
    • Spreadsheet (BI)
    • Documente
    • Semn
    Vânzări
    • CRM
    • Vânzări
    • POS Shop
    • POS Restaurant
    • Abonamente
    • Închiriere
    Site-uri web
    • Constructor de site-uri
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Lanț Aprovizionare
    • Inventar
    • Producție
    • PLM
    • Achiziție
    • Maintenance
    • Calitate
    Resurse Umane
    • Angajați
    • Recrutare
    • Time Off
    • Evaluări
    • Referințe
    • Flotă
    Marketing
    • Social Marketing
    • Marketing prin email
    • SMS Marketing
    • Evenimente
    • Automatizare marketing
    • Sondaje
    Servicii
    • Proiect
    • Foi de pontaj
    • Servicii de teren
    • Centru de asistență
    • Planificare
    • Programări
    Productivitate
    • Discuss
    • Aprobări
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Aplicații Terțe Odoo Studio Platforma Odoo Cloud
  • Industrii
    Retail
    • Book Store
    • Magazin de îmbrăcăminte
    • Magazin de Mobilă
    • Magazin alimentar
    • Magazin de materiale de construcții
    • Magazin de jucării
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Distribuitor de băuturi
    • Hotel
    Proprietate imobiliara
    • Real Estate Agency
    • Firmă de Arhitectură
    • Construcție
    • Estate Managament
    • Grădinărit
    • Asociația Proprietarilor de Proprietăți
    Consultanta
    • Firma de Contabilitate
    • Partener Odoo
    • Agenție de marketing
    • Law firm
    • Atragere de talente
    • Audit & Certification
    Producție
    • Textil
    • Metal
    • Mobilier
    • Mâncare
    • Brewery
    • Cadouri corporate
    Health & Fitness
    • Club Sportiv
    • Magazin de ochelari
    • Centru de Fitness
    • Wellness Practitioners
    • Farmacie
    • Salon de coafură
    Trades
    • Handyman
    • IT Hardware and Support
    • Asigurare socială de stat
    • Cizmar
    • Servicii de curățenie
    • HVAC Services
    Altele
    • Organizație nonprofit
    • Agenție de Mediu
    • Închiriere panouri publicitare
    • Fotografie
    • Închiriere biciclete
    • Asigurare socială
    Browse all Industries
  • Comunitate
    Învăță
    • Tutorials
    • Documentație
    • Certificări
    • Instruire
    • Blog
    • Podcast
    Empower Education
    • Program Educațional
    • Scale Up! Business Game
    • Visit Odoo
    Obține Software-ul
    • Descărcare
    • Compară Edițiile
    • Lansări
    Colaborați
    • Github
    • Forum
    • Evenimente
    • Translations
    • Devino Partener
    • Services for Partners
    • Înregistrează-ți Firma de Contabilitate
    Obține Servicii
    • Găsește un Partener
    • Găsiți un contabil
    • Meet an advisor
    • Servicii de Implementare
    • Referințe ale clienților
    • Suport
    • Actualizări
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obține un demo
  • Prețuri
  • Ajutor

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

  • CRM
  • e-Commerce
  • Contabilitate
  • Inventar
  • PoS
  • Proiect
  • MRP
All apps
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Suport

Upgrading From Odoo17 to Odoo18 test fails

Abonare

Primiți o notificare când există activitate la acestă postare

Această întrebare a fost marcată
testdatabaseupgradingupgradetestingodooV17Odoov18
4 Răspunsuri
566 Vizualizări
Imagine profil
samual

Hello, 


I am trying to upgrade from odoo17 to odoo18 on odoo.sh the upgrade is on the last stage awaiting a commit so it works the problem is that it is showing the following error

odoo.modules.loading: Some modules have inconsistent states, some dependencies may be missing: ['module-x', 'module-y'] "i used fake names for the modules".

the thing is both these modules are not part of the modules i added nor they exists in the original odoo addons i tried looking every possible reference of them using grep in the shell but there is no reference of them anyware except in the log entry and they dont exist in the custom code files. Is there a way to force the update to work despite this error?

0
Imagine profil
Abandonează
Imagine profil
Cybrosys Techno Solutions Pvt.Ltd
Cel mai bun răspuns

Hi,


The error occurs because Odoo still detects modules in the database (ir_module_module) that are marked as installed or present, even though they no longer exist in your code. These leftover references can happen if a module was removed without proper uninstallation, or if branches or upgrades changed the addons path. Odoo reads these database records before the upgrade, which is why it reports missing dependencies even though the code doesn’t contain them.


Searching your codebase with grep won’t help because the problem resides in the database metadata, not the files. Tables like ir_module_module, ir_module_module_dependency, and ir_model_data store module states, dependencies, and module-specific data. Missing modules in these tables can block upgrades.


The recommended solution is to mark the missing modules as uninstalled directly in the database, for example by updating ir_module_module or removing leftover dependency and data entries. Alternatively, you could temporarily add dummy modules with the same names to satisfy Odoo and then uninstall them properly. After these steps, running an update (-u all) will allow the upgrade to proceed.


Direct SQL manipulation should be done carefully with a backup, as it ensures database integrity and prevents upgrade failures. Once the database no longer references the missing modules, the upgrade to Odoo 18 should complete successfully.


Hope it helps

1
Imagine profil
Abandonează
samual
Autor

Hi
Thanks for the reply adding dummy modules worked
but now the upgrade is always waiting for user commit if i exit upgrade mode the branch reverts back to odoo17 is this normal?

Imagine profil
Dhara
Cel mai bun răspuns

Some of the most common issues that can make a test fail while upgrading from Odoo 17 to Odoo 18 are compatibility problems with custom modules, database schema changes, or missing dependencies. Some functionality or features are deprecated from Odoo 17 that might not work exactly as in Odoo 17 after the migration because the core system was updated. Check errors in the logs, make necessary modifications to your custom modules to be compatible with Odoo 18, and ensure all the required dependencies related to Python or JS are installed. Testing at each step will help you identify and fix the problem.


Any Other information, you will contact us at our Email id: odoo@devintellecs.com and  contact number: +91 87805 43446

0
Imagine profil
Abandonează
Imagine profil
johncina
Cel mai bun răspuns

wow

0
Imagine profil
Abandonează
Imagine profil
Bloopark systems GmbH & Co. KG
Cel mai bun răspuns

Hello,

The reason for such error could be that, the database still expects these modules exist (their records are in ir_module_module), But the actual source code for these modules doesn’t exist anymore in your repo or Odoo core. During upgrade, Odoo tries to check dependencies and can’t find those that fails to proceed.


How did that happened , following could be the cases:

- This could happen due to the module used to exist in your custom addons in v17 but was deleted/renamed before upgrading.

- The module was part of another dependency (e.g., website_*, crm_*, pos_*) that changed structure in v18.

- The module was referenced as a dependency (depends in __manifest__.py) of another module, but that dependency module was removed in v18.

- The module entries remain in ir_module_module table, even though the code is gone.


What you could still check:

Run the below query in the database of v17,

SELECT id, state name FROM ir_module_module where name::text in ('module_x', 'module_y');

If the modules exist in the db then ,if you get records you can safely mark them as uninstalled manually before restarting the upgrade, using the query below:

UPDATE ir_module_module SET state = 'uninstalled' WHERE id in (id_x, id_y);

Once updated, try again your upgrade.

Hope it helps


0
Imagine profil
Abandonează
Enjoying the discussion? Don't just read, join in!

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

Înscrie-te
Related Posts Răspunsuri Vizualizări Activitate
Upgrade Odoo 13e to 16e
database upgrading
Imagine profil
0
aug. 23
2002
Why native test fails? Rezolvat
test testing
Imagine profil
Imagine profil
2
iun. 20
7309
Override test
test testing
Imagine profil
0
nov. 19
4973
Upgrading without uploading database to Odoo?
database upgrade
Imagine profil
Imagine profil
Imagine profil
2
nov. 19
3589
upgrade one module for all database in odoo 10
database upgrade
Imagine profil
0
mai 17
3800
Comunitate
  • Tutorials
  • Documentație
  • Forum
Open Source
  • Descărcare
  • Github
  • Runbot
  • Translations
Servicii
  • Hosting Odoo.sh
  • Suport
  • Actualizare
  • Custom Developments
  • Educație
  • Găsiți un contabil
  • Găsește un Partener
  • Devino Partener
Despre Noi
  • Compania noastră
  • Active de marcă
  • Contactați-ne
  • Locuri de muncă
  • Evenimente
  • Podcast
  • Blog
  • Clienți
  • Aspecte juridice • Confidențialitate
  • Securitate
الْعَرَبيّة 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 este o suită de aplicații de afaceri open source care acoperă toate nevoile companiei dvs.: CRM, comerț electronic, contabilitate, inventar, punct de vânzare, management de proiect etc.

Propunerea de valoare unică a Odoo este să fie în același timp foarte ușor de utilizat și complet integrat.

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