Overslaan naar inhoud
Odoo Menu
  • Aanmelden
  • Probeer het gratis
  • Apps
    Financiën
    • Boekhouding
    • Facturatie
    • Onkosten
    • Spreadsheet (BI)
    • Documenten
    • Ondertekenen
    Verkoop
    • CRM
    • Verkoop
    • Kassasysteem winkel
    • Kassasysteem Restaurant
    • Abonnementen
    • Verhuur
    Websites
    • Websitebouwer
    • E-commerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Bevoorradingsketen
    • Voorraad
    • Productie
    • PLM
    • Inkoop
    • Onderhoud
    • Kwaliteit
    Personeelsbeheer
    • Werknemers
    • Werving & Selectie
    • Verlof
    • Evaluaties
    • Aanbevelingen
    • Wagenpark
    Marketing
    • Social media Marketing
    • E-mailmarketing
    • SMS Marketing
    • Evenementen
    • Marketingautomatisering
    • Enquêtes
    Diensten
    • Project
    • Urenstaten
    • Buitendienst
    • Helpdesk
    • Planning
    • Afspraken
    Productiviteit
    • Chat
    • Goedkeuringen
    • IoT
    • VoIP
    • Kennis
    • WhatsApp
    Apps van derden Odoo Studio Odoo Cloud Platform
  • Bedrijfstakken
    Detailhandel
    • Boekhandel
    • kledingwinkel
    • Meubelzaak
    • Supermarkt
    • Bouwmarkt
    • Speelgoedwinkel
    Food & Hospitality
    • Bar en Pub
    • Restaurant
    • Fastfood
    • Gastenverblijf
    • Drankenhandelaar
    • Hotel
    Vastgoed
    • Makelaarskantoor
    • Architectenbureau
    • Bouw
    • Vastgoedbeheer
    • Tuinieren
    • Vereniging van eigenaren
    Consulting
    • Accountantskantoor
    • Odoo Partner
    • Marketingbureau
    • Advocatenkantoor
    • Talentenwerving
    • Audit & Certificering
    Productie
    • Textiel
    • Metaal
    • Meubels
    • Eten
    • Brewery
    • Relatiegeschenken
    Gezondheid & Fitness
    • Sportclub
    • Opticien
    • Fitnesscentrum
    • Wellness-medewerkers
    • Apotheek
    • Kapper
    Trades
    • Klusjesman
    • IT-hardware & support
    • Zonne-energiesystemen
    • Schoenmaker
    • Schoonmaakdiensten
    • HVAC-diensten
    Andere
    • Non-profitorganisatie
    • Milieuagentschap
    • Verhuur van Billboards
    • Fotograaf
    • Fietsleasing
    • Softwareverkoper
    Browse all Industries
  • Community
    Leren
    • Tutorials
    • Documentatie
    • Certificeringen
    • Training
    • Blog
    • Podcast
    Versterk het onderwijs
    • Onderwijs- programma
    • Scale Up! Business Game
    • Bezoek Odoo
    Download de Software
    • Downloaden
    • Vergelijk edities
    • Releases
    Werk samen
    • Github
    • Forum
    • Evenementen
    • Vertalingen
    • Word een Partner
    • Services for Partners
    • Registreer je accountantskantoor
    Diensten
    • Vind een partner
    • Vind een boekhouder
    • Een adviseur ontmoeten
    • Implementatiediensten
    • Klantreferenties
    • Ondersteuning
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Vraag een demo aan
  • Prijzen
  • Help

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

  • CRM
  • e-Commerce
  • Boekhouding
  • Voorraad
  • PoS
  • Project
  • MRP
All apps
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Help

Efficient way to migrate to production in Odoo.sh

Inschrijven

Ontvang een bericht wanneer er activiteit is op deze post

Deze vraag is gerapporteerd
migrationOdoo.shDatabase
1 Beantwoorden
5267 Weergaven
Avatar
Sonny

As a new Odoo user and developer, my set-up was the main branch is in the staging environment and production branch is in the production. I am actually developing locally then remotely push to the main/staging environment. I will run some test there and also change some configuration using the Studio.

After successful tests, I am now ready to move the code to production. What I do was backup the staging database, Exact dump and with firestore. Then in the local production branch, I merge the main branch. Then I will import the backup, basically the staging environment and production environment having the same code and database.

I am still in development mode so this is alright, but when it is really in production with data, this procedure is not correct since it will rewrite the live data.  What is the correct way to update the code and some database values? I import the database since the changes using in Studio are stored in the database.

0
Avatar
Annuleer
Avatar
Sunny Sheth
Beste antwoord

Hi,

  1. Understand How Odoo.sh Handles Environments:
    • Odoo.sh provides separate environments: Development, Staging, and Production.
    • Studio customizations, module changes, and configurations are stored in the Git repository or database backups managed within Odoo.sh.
  2. Workflow for Code and Studio Customization Deployment:
    • Develop Locally:
      • Continue developing and testing changes locally.
      • Push your code changes to the development branch in Odoo.sh for further validation.
    • Test in Staging:
      • Merge changes into the staging branch for testing. Odoo.sh will automatically deploy the code and create a new database from your production backup.
      • Apply Studio customizations and configurations directly in the staging environment.
  3. Export Studio Customizations as a Module:
    • After applying Studio changes:
      1. Go to Apps > Studio > Customizations > Export.
      2. Export the changes as a custom module.
      3. Commit the exported module to your Git repository in the staging branch.
    • This ensures Studio customizations are version-controlled and safely deployable.
  4. Deploy to Production:
    • Once changes are validated in staging:
      1. Merge the staging branch into the production branch.
      2. Odoo.sh will automatically deploy the updated code to production without overwriting the database.
      3. Install the custom Studio module in production to apply the Studio changes safely.
  5. Database Updates or Configurations:
    • If specific data or configuration changes need to be replicated:
      • Use data export/import tools in Odoo to transfer changes (e.g., configuration records, workflows).
      • Alternatively, use a custom data migration script if necessary and deploy it as part of the module.
  6. Backup Management:
    • Odoo.sh automatically handles backups. Ensure you download or schedule manual backups before significant updates as an additional safety net.
Advantages of Using Odoo.sh for Deployment
  1. Automated Deployment:
    • Odoo.sh automatically creates backups, deploys code, and handles environment setups during branch merges.
  2. Studio Customization Management:
    • Exporting Studio customizations as a module ensures these changes are portable and reproducible.
  3. Safe Testing:
    • The staging environment uses production data for realistic testing but remains isolated from live data.

Best Practices for Odoo.sh Deployment

  • Frequent Backups: Rely on Odoo.sh's backup system but download backups regularly for critical updates.
  • Use Branch Protections: Protect the production branch to avoid accidental changes.
  • Automate Tests: Add automated test scripts in the staging branch to validate functionality.
  • Monitor Logs: Use the Odoo.sh logs to identify and fix issues quickly during deployment.

Summary Workflow

  1. Develop locally → Push to staging branch on Odoo.sh.
  2. Test code and Studio changes in staging using a duplicate production database.
  3. Export Studio customizations as a module → Add to Git → Merge into staging branch for validation.
  4. Merge staging branch into production branch → Odoo.sh auto-deploys code and updates.
  5. Monitor logs and validate the production environment after deployment.


Best Regards,
Sunny Sheth (shethsunny555@gmail.com)

1
Avatar
Annuleer
ODOO_Aspirant

Good.. Thanks

Well Explained........Have Good Days!!1

Sunny Sheth

Thanks.

Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!

Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!

Aanmelden
Gerelateerde posts Antwoorden Weergaven Activiteit
Odoo V16: How to Transfer an Odoo.sh Project from One Partner Account to Another? Opgelost
migration Odoo.sh V16
Avatar
Avatar
Avatar
Avatar
3
mrt. 25
2488
Odoo sh db migration error from odoo 16 to Odoo 18
migration odoo Odoo.sh odoo16
Avatar
0
nov. 25
24
Odoo16E To Odoo18E Odoo.sh Test upgrade failed Opgelost
migration newsletter Odoo.sh Odoo18.0
Avatar
Avatar
1
okt. 25
841
Odoo version Migration through Odoo.sh - Can I keep my Existing staging branch ? Opgelost
migration odoo.sh staging Odoo.sh
Avatar
Avatar
Avatar
Avatar
3
aug. 24
3236
How to Add a User to Access the Database on Odoo.sh?
Odoo.sh
Avatar
Avatar
1
okt. 25
4025
Community
  • Tutorials
  • Documentatie
  • Forum
Open Source
  • Downloaden
  • Github
  • Runbot
  • Vertalingen
Diensten
  • Odoo.sh Hosting
  • Ondersteuning
  • Upgrade
  • Gepersonaliseerde ontwikkelingen
  • Onderwijs
  • Vind een boekhouder
  • Vind een partner
  • Word een Partner
Over ons
  • Ons bedrijf
  • Merkelementen
  • Neem contact met ons op
  • Vacatures
  • Evenementen
  • Podcast
  • Blog
  • Klanten
  • Juridisch • Privacy
  • Beveiliging
الْعَرَبيّة 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 is een suite van open source zakelijke apps die aan al je bedrijfsbehoeften voldoet: CRM, E-commerce, boekhouding, inventaris, kassasysteem, projectbeheer, enz.

Odoo's unieke waardepropositie is om tegelijkertijd zeer gebruiksvriendelijk en volledig geïntegreerd te zijn.

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