Skip to Content
Odoo Menu
  • Zaloguj się
  • Wypróbuj za darmo
  • Aplikacje
    Finanse
    • Księgowość
    • Fakturowanie
    • Wydatki
    • Arkusz kalkulacyjny (BI)
    • Dokumenty
    • Podpisy
    Sprzedaż
    • CRM
    • Sprzedaż
    • PoS Sklep
    • PoS Restauracja
    • Subskrypcje
    • Wypożyczalnia
    Strony Internetowe
    • Kreator Stron Internetowych
    • eCommerce
    • Blog
    • Forum
    • Czat na Żywo
    • eLearning
    Łańcuch dostaw
    • Magazyn
    • Produkcja
    • PLM
    • Zakupy
    • Konserwacja
    • Jakość
    Zasoby Ludzkie
    • Pracownicy
    • Rekrutacja
    • Urlopy
    • Ocena pracy
    • Polecenia Pracownicze
    • Flota
    Marketing
    • Marketing Społecznościowy
    • E-mail Marketing
    • SMS Marketing
    • Wydarzenia
    • Automatyzacja Marketingu
    • Ankiety
    Usługi
    • Projekt
    • Ewidencja czasu pracy
    • Usługi Terenowe
    • Helpdesk
    • Planowanie
    • Spotkania
    Produktywność
    • Dyskusje
    • Zatwierdzenia
    • IoT
    • VoIP
    • Baza wiedzy
    • WhatsApp
    Aplikacje trzecich stron Studio Odoo Odoo Cloud Platform
  • Branże
    Sprzedaż detaliczna
    • Księgarnia
    • Sklep odzieżowy
    • Sklep meblowy
    • Sklep spożywczy
    • Sklep z narzędziami
    • Sklep z zabawkami
    Żywienie i hotelarstwo
    • Bar i Pub
    • Restauracja
    • Fast Food
    • Pensjonat
    • Dystrybutor napojów
    • Hotel
    Agencja nieruchomości
    • Agencja nieruchomości
    • Biuro architektoniczne
    • Budowa
    • Zarządzanie nieruchomościami
    • Ogrodnictwo
    • Stowarzyszenie właścicieli nieruchomości
    Doradztwo
    • Biuro księgowe
    • Partner Odoo
    • Agencja marketingowa
    • Kancelaria prawna
    • Agencja rekrutacyjna
    • Audyt i certyfikacja
    Produkcja
    • Tekstylia
    • Metal
    • Meble
    • Jedzenie
    • Browar
    • Prezenty firmowe
    Zdrowie & Fitness
    • Klub sportowy
    • Salon optyczny
    • Centrum fitness
    • Praktycy Wellness
    • Apteka
    • Salon fryzjerski
    Transakcje
    • Złota rączka
    • Wsparcie Sprzętu IT
    • Systemy energii słonecznej
    • Szewc
    • Firma sprzątająca
    • Usługi HVAC
    Inne
    • Organizacja non-profit
    • Agencja Środowiskowa
    • Wynajem billboardów
    • Fotografia
    • Leasing rowerów
    • Sprzedawca oprogramowania
    Przeglądaj wszystkie branże
  • Community
    Ucz się
    • Samouczki
    • Dokumentacja
    • Certyfikacje
    • Szkolenie
    • Blog
    • Podcast
    Pomóż w nauce innym
    • Program Edukacyjny
    • Scale Up! Gra biznesowa
    • Odwiedź Odoo
    Skorzystaj z oprogramowania
    • Pobierz
    • Porównaj edycje
    • Wydania
    Współpracuj
    • Github
    • Forum
    • Wydarzenia
    • Tłumaczenia
    • Zostań partnerem
    • Usługi dla partnerów
    • Zarejestruj swoją firmę rachunkową
    Skorzystaj z usług
    • Znajdź partnera
    • Znajdź księgowego
    • Spotkaj się z doradcą
    • Usługi wdrożenia
    • Opinie klientów
    • Wsparcie
    • Aktualizacje
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Zaplanuj demo
  • Cennik
  • Pomoc

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

  • CRM
  • e-Commerce
  • Księgowość
  • Zapasy
  • PoS
  • Projekt
  • MRP
All apps
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
Wszystkie posty Osoby Odznaki
Tagi (Zobacz wszystko)
odoo accounting v14 pos v15
O tym forum
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
Wszystkie posty Osoby Odznaki
Tagi (Zobacz wszystko)
odoo accounting v14 pos v15
O tym forum
Pomoc

Custom modules when upgrading Odoo on Odoo.sh

Zaprenumeruj

Otrzymaj powiadomienie o aktywności w tym poście

To pytanie dostało ostrzeżenie
Odoo.shv15Upgrade
4 Odpowiedzi
7637 Widoki
Awatar
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
Awatar
Odrzuć
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

Awatar
Paresh Wagh
Najlepsza odpowiedź

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
Awatar
Odrzuć
Awatar
KEMA SK s.r.o
Najlepsza odpowiedź

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

1
Awatar
Odrzuć
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

Awatar
Eauzon
Najlepsza odpowiedź

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
Awatar
Odrzuć
Awatar
Demdoum Walid
Najlepsza odpowiedź

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
Awatar
Odrzuć
Podoba Ci się ta dyskusja? Dołącz do niej!

Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!

Zarejestruj się
Powiązane posty Odpowiedzi Widoki Czynność
FAILED UPGRADING DATABASE v.14 -> v.16 Rozwiązane
v14 Odoo.sh Upgrade
Awatar
Awatar
Awatar
3
wrz 25
2691
How to edit website.homepage(xml) in Odoo 15 Rozwiązane
homepage Odoo.sh v15
Awatar
Awatar
1
cze 22
6955
The record does not exist or has been deleted. (Record: sale.order(50,), User: 2)
error account.move Odoo.sh v15
Awatar
0
sty 24
1871
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 Rozwiązane
versions odoo Odoo.sh v15
Awatar
Awatar
1
gru 23
3182
How to Add a User to Access the Database on Odoo.sh?
Odoo.sh
Awatar
Awatar
1
paź 25
3953
Społeczność
  • Samouczki
  • Dokumentacja
  • Forum
Open Source
  • Pobierz
  • Github
  • Runbot
  • Tłumaczenia
Usługi
  • Hosting Odoo.sh
  • Wsparcie
  • Aktualizacja
  • Indywidualne rozwiązania
  • Edukacja
  • Znajdź księgowego
  • Znajdź partnera
  • Zostań partnerem
O nas
  • Nasza firma
  • Zasoby marki
  • Skontaktuj się z nami
  • Oferty pracy
  • Wydarzenia
  • Podcast
  • Blog
  • Klienci
  • Informacje prawne • Prywatność
  • Bezpieczeństwo Odoo
الْعَرَبيّة 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 to pakiet aplikacji biznesowych typu open source, które zaspokoją wszystkie potrzeby Twojej firmy: CRM, eCommerce, księgowość, inwentaryzacja, punkt sprzedaży, zarządzanie projektami itp.

Unikalną wartością Odoo jest to, że jest jednocześnie bardzo łatwe w użyciu i w pełni zintegrowane.

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