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

Odoo.sh upgrade test to v18 without touching production DB

Odoberať

Get notified when there's activity on this post

This question has been flagged
upgradeodoo.shv18
1 Odpoveď
1350 Zobrazenia
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šiť
Avatar
Christoph Farnleitner
Best Answer

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šiť
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
First Odoo.sh Upgrade Jitters
upgrade odoo.sh
Avatar
0
okt 21
2549
[odoo.sh ] Is there any option to upgrade module manually in odoo.sh? Solved
module upgrade odoo.sh
Avatar
Avatar
1
jan 24
17630
Upgrading from V14 to V15
upgrade upgrades odoo.sh v15
Avatar
Avatar
Avatar
Avatar
3
máj 22
9006
How to upgrade with a customized database? (odoo.sh) Solved
development upgrade quickstart odoo.sh
Avatar
1
feb 22
9803
Is it possible to sell on credit directly at the point of sale and leave the order pending payment?
v18
Avatar
Avatar
2
sep 25
681
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