Přejít na obsah
Odoo Menu
  • Přihlásit se
  • Vyzkoušejte zdarma
  • Aplikace
    Finance
    • Účetnictví
    • Fakturace
    • Výdaje
    • Spreadsheet (BI)
    • Dokumenty
    • Podpisy
    Prodej
    • CRM
    • Prodej
    • POS Obchod
    • POS Restaurace
    • Předplatné
    • Pronájem
    Webové stránky
    • Webové stránky
    • E-shop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Dodavatelský řetězec
    • Sklad
    • Výroba
    • PLM
    • Nákup
    • Údržba
    • Kvalita
    Lidské zdroje
    • Zaměstnanci
    • Nábor
    • Volno
    • Hodnocení zaměstnanců
    • Doporučení
    • Vozový park
    Marketing
    • Marketing sociálních sítí
    • Emailový marketing
    • SMS Marketing
    • Události
    • Marketingová automatizace
    • Dotazníky
    Služby
    • Projekt
    • Časové výkazy
    • Práce v terénu
    • Helpdesk
    • Plánování
    • Schůzky
    Produktivita
    • Diskuze
    • Schvalování
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Aplikace třetích stran Odoo Studio Odoo cloudová platforma
  • Branže
    Maloobchod
    • Knihkupectví
    • Obchod s oblečením
    • Obchod s nábytkem
    • Potraviny
    • Obchod s hardwarem
    • Hračkářství
    Food & Hospitality
    • Bar a Pub
    • Restaurace
    • Fast Food
    • Guest House
    • Distributor nápojů
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architektonická firma
    • Stavba
    • Správa nemovitostí
    • Zahradnictví
    • Asociace vlastníků nemovitosti
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketingová agentura
    • Právník
    • Akvizice talentů
    • Audit a certifikace
    Výroba
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Korporátní dárky
    Zdraví a fitness
    • Sportovní klub
    • Prodejna brýli
    • Fitness Centrum
    • Wellness praktikové
    • Lékárna
    • Kadeřnictví
    Trades
    • Údržbář
    • IT hardware a podpora
    • Solar Energy Systems
    • Výrobce obuvi
    • Úklidové služby
    • HVAC Services
    Others
    • Nonprofit Organization
    • Agentura pro životní prostředí
    • Pronájem billboardů
    • Fotografování
    • Leasing jízdních kol
    • Prodejce softwaru
    Browse all Industries
  • Komunita
    Edukační program
    • Tutoriály
    • Dokumentace
    • Certifikace
    • Vzdělávání
    • Blog
    • Podcast
    Podpora vzdělávání
    • Vzdělávací program
    • Scale Up! Hra na firmu
    • Navštivte Odoo
    Získat software
    • Stáhnout
    • Porovnejte edice
    • Verze
    Spolupráce
    • Github
    • Fórum
    • Události
    • Překlady
    • Stát se partnerem
    • Services for Partners
    • Registrujte svou účetní firmu
    Získat služby
    • Najít partnera
    • Najít účetní
    • Setkejte se s poradcem
    • Implementační služby
    • Zákaznické reference
    • Podpora
    • Upgrady
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dohodnout demo
  • Ceník
  • Pomoc

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

  • CRM
  • e-Commerce
  • Účetnictví
  • Sklad
  • PoS
  • Projekty
  • MRP
All apps
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
Pomoc

Odoo.sh upgrade test to v18 without touching production DB

Odebírat

Get notified when there's activity on this post

This question has been flagged
upgradeodoo.shv18
1 Odpovědět
1340 Zobrazení
Avatar
David Dozois

Hi,

I'm wondering how to manage an upgrade with odoo.sh while having legacy code on my production database.

Context

  • Odoo.sh project. Production is on Odoo 15.
  • I prepared an upgrade test to v18 in a staging/upgrade branch.
  • The production database still contains legacy modules that will no longer be use. I cannot uninstall them on production right now, and I don’t want to port them to v18 just for the test.
  • Odoo.sh upgrade branches restore from the latest production backup, so those legacy modules (and their records/views) are pulled into the upgrade build and cause registry/view errors.

Question

What’s the supported way on Odoo.sh to run a test upgrade without affecting production and without uninstalling those legacy modules on prod?

Specifically:

  1. Can I point the upgrade branch to a specific sanitized dump (where I’ve already uninstalled/disabled the legacy modules) instead of always restoring “latest production”? 
  2. If DB pointing isn’t available, is it acceptable to ship a temporary v18 “dummy” module (same technical name as the legacy one) that simply neutralizes its views/records (or provides shim fields) so the upgrade can proceed—any official guidance on this pattern? Although it will most likely break as old code will not follow the new guidelines...

Thanks!

0
Avatar
Zrušit
Avatar
Christoph Farnleitner
Nejlepší odpověď

Your actual production database is not being touched when upgrading a staging branch.

However, odoo.sh performs an upgrade, when executed on a staging branch, in a copy of the latest, automatically created backup of production (i.e. the backup of yesterday night) always.
Note: odoo.sh (as per now) will not use a manually created database backup, neither live nor staging.

There is no option to change this behavior in odoo.sh nor can you select a specific database to run the test upgrade on.


If you want full control about what database is being upgraded you have to run the upgrade locally. For this, you can utilize Odoo's upgrade service described at https://upgrade.odoo.com/#onpremise. Here, essentially, you upload a dump of a database and in return receive the upgraded one, after a while (duration depends on the versions to cover and modules installed).

See also https://www.odoo.com/documentation/18.0/administration/upgrade.html


Furthermore it should be mentioned, that none of the above is actually necessary, when properly utilizing the Odoo upgrade utilities described here: https://www.odoo.com/documentation/18.0/developer/reference/upgrades/upgrade_utils.html
This set of tool allows you to specify how your modules are supposed to be upgraded, what migration actions are supposed to be performed - or even uninstall unwanted/obsolete modules in that process (which sounds like exactly what you should aim for).
One reason, why this is the suggested approach, is because you usually do not want to have an upgrade process that involves several manual steps that might also need to be performed in a specific order. Also, you definitely want to have a test of the upgrade on the latest possible (as is) database available to take actions according to issues that may arise while still in staging.


Alternatively (or in combination with above), as you've stated in point 2 - correct: you could just have a dummy module (original module name) in your upgrade commit (on the staging branch) that doesn't hold much more than a __manifest__.py and an (empty) __init__.py. This way, the upgrade process of odoo.sh won't complain about missing modules, even if the provided module doesn't do anything.
Note: This approach can still cause troubles, for example with records or views, that would not necessarily be removed even if not defined any longer.

1
Avatar
Zrušit
Enjoying the discussion? Don't just read, join in!

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

Přihlásit se
Related Posts Odpovědi Zobrazení Aktivita
First Odoo.sh Upgrade Jitters
upgrade odoo.sh
Avatar
0
říj 21
2547
[odoo.sh ] Is there any option to upgrade module manually in odoo.sh? Vyřešeno
module upgrade odoo.sh
Avatar
Avatar
1
led 24
17627
Upgrading from V14 to V15
upgrade upgrades odoo.sh v15
Avatar
Avatar
Avatar
Avatar
3
kvě 22
9006
How to upgrade with a customized database? (odoo.sh) Vyřešeno
development upgrade quickstart odoo.sh
Avatar
1
úno 22
9799
Is it possible to sell on credit directly at the point of sale and leave the order pending payment?
v18
Avatar
Avatar
2
zář 25
681
Komunita
  • Tutoriály
  • Dokumentace
  • Fórum
Open Source
  • Stáhnout
  • Github
  • Runbot
  • Překlady
Služby
  • Odoo.sh hostování
  • Podpora
  • Upgrade
  • Nestandardní vývoj
  • Edukační program
  • Najít účetní
  • Najít partnera
  • Stát se partnerem
O nás
  • Naše společnost
  • Podklady značky
  • Kontakujte nás
  • Práce
  • Události
  • Podcast
  • Blog
  • Zákazníci
  • Právní dokumenty • Soukromí
  • Zabezpečení
الْعَرَبيّة 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 balíček open-source aplikací, které pokrývají všechny potřeby vaší společnosti: CRM, e-shop, účetnictví, sklady, kasy, projektové řízení a další.

Unikátní nabídka od Odoo poskytuje velmi jednoduché uživatelské rozhraní a vše je integrované na jednom místě.

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