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

Custom modules when upgrading Odoo on Odoo.sh

Subscriure's

Get notified when there's activity on this post

This question has been flagged
Odoo.shv15Upgrade
4 Respostes
7625 Vistes
Avatar
Alexander Olivares

Hello,
We are performing upgrade tests from version 12.0 to version 15.0 for a database hosted on Odoo.sh and we are getting the following error message:



In this particular database we have several custom modules that are no longer necessary in the new version to which we want to move, so before sending the database to the upgrade service we proceeded to uninstall them and remove them from the repository (all this in a staging branch ).


According to the documentation:

Custom modules in the upgraded database are set to be updated. If the modules are missing in the code, the update fails.


Indeed, although the modules were uninstalled and removed, when the database is imported again after the upgrade process, they are still present and marked as To be upgraded:




And due to the sources were previously removed we are getting the following error message:


2023-01-11 14:40:55,043 14 ERROR pentagonia-testing-6899333 odoo.modules.loading: Some modules have inconsistent states, some dependencies may be missing: ['deltatech_alternative', ...]


My question is: Is there a way to mark custom modules as To be removed to avoid the update attempt after the database import process?


Thanks in advance


3
Avatar
Descartar
Alexander Olivares
Autor

Hello Paresh,

Although I didn't mention it, I certainly also removed the modules from the app list right after uninstalling and removing them from the repository.

Regards

Avatar
Paresh Wagh
Best Answer

Hi Alexander: One step is missing in the module cleanup steps listed. In addition to uninstalling and removing from the repository, you also need to go to Apps and delete the module from the list of apps listed. That should ensure that it will not get picked up by the upgrade process.

1
Avatar
Descartar
Avatar
KEMA SK s.r.o
Best Answer

Alexander, did you find any answer? We're running into the same situation and scratching our heads...

1
Avatar
Descartar
Alexander Olivares
Autor

Hi, according to the documentation:
"The latest production daily automatic backup is sent to the upgrade platform to start the upgrade test process."

Therefore, regardless of what you do on the staging branch, the backup that is sent to the upgrade service is the latest available daily backup.

In our particular case, we had many modules that were already deprecated, so we chose to do the process by sending the database manually from upgrade.odoo.com

https://www.odoo.com/documentation/master/administration/upgrade/odoo_sh.html#upgrade-your-database-on-a-staging-branch

Regards

Avatar
Eauzon
Best Answer

Same issue here ...

As on odoo.sh it always starts from a nightly backup from your production database, you have to include the uninstall in your upgrade scripts:


Like i used this:

import logging
from odoo.upgrade import util


_logger = logging.getLogger(__name__)


def migrate(cr, version):
   
    modules_to_uninstall = [
        'mollie_account_sync',
        'payment_mollie_official',
        'product_harmonized_system',
        'product_harmonized_system_delivery',
        'product_harmonized_system_stock'
    ]

    for candidate in modules_to_uninstall:
        _logger.info("About to uninstall module %s", candidate)
        util.remove_module(cr,candidate)


Read more about update utils here:

https://www.odoo.com/documentation/17.0/developer/reference/upgrade_utils.html

0
Avatar
Descartar
Avatar
Demdoum Walid
Best Answer

Make a copy of database of the same original version(12),uninstall those modules there,then import this database to odoo15,this will ensure those modules will not be installed in the new odoo15 database.
NOTE : make sure other modules don't have dependencies.

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
FAILED UPGRADING DATABASE v.14 -> v.16 Solved
v14 Odoo.sh Upgrade
Avatar
Avatar
Avatar
3
de set. 25
2690
How to edit website.homepage(xml) in Odoo 15 Solved
homepage Odoo.sh v15
Avatar
Avatar
1
de juny 22
6953
The record does not exist or has been deleted. (Record: sale.order(50,), User: 2)
error account.move Odoo.sh v15
Avatar
0
de gen. 24
1869
want to change odoo version on odoo.sh of my instance to the version which is recently removed from the available versions lists e.g 15.0.20230918 Solved
versions odoo Odoo.sh v15
Avatar
Avatar
1
de des. 23
3176
How to Add a User to Access the Database on Odoo.sh?
Odoo.sh
Avatar
Avatar
1
d’oct. 25
3949
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