Skip ke Konten
Odoo Menu
  • Login
  • Uji coba gratis
  • Aplikasi
    Keuangan
    • Akuntansi
    • Faktur
    • Pengeluaran
    • Spreadsheet (BI)
    • Dokumen
    • Tanda Tangan
    Sales
    • CRM
    • Sales
    • POS Toko
    • POS Restoran
    • Langganan
    • Rental
    Website
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Rantai Pasokan
    • Inventaris
    • Manufaktur
    • PLM
    • Purchase
    • Maintenance
    • Kualitas
    Sumber Daya Manusia
    • Karyawan
    • Rekrutmen
    • Cuti
    • Appraisal
    • Referensi
    • Armada
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Acara
    • Otomatisasi Marketing
    • Survei
    Layanan
    • Project
    • Timesheet
    • Layanan Lapangan
    • Meja Bantuan
    • Planning
    • Appointment
    Produktivitas
    • Diskusi
    • Approval
    • IoT
    • VoIP
    • Pengetahuan
    • WhatsApp
    Aplikasi pihak ketiga Odoo Studio Platform Odoo Cloud
  • Industri-Industri
    Retail
    • Toko Buku
    • Toko Baju
    • Toko Furnitur
    • Toko Kelontong
    • Toko Hardware
    • Toko Mainan
    Makanan & Hospitality
    • Bar dan Pub
    • Restoran
    • Fast Food
    • Rumah Tamu
    • Distributor Minuman
    • Hotel
    Real Estate
    • Agensi Real Estate
    • Firma Arsitektur
    • Konstruksi
    • Estate Management
    • Perkebunan
    • Asosiasi Pemilik Properti
    Konsultansi
    • Firma Akuntansi
    • Mitra Odoo
    • Agensi Marketing
    • Firma huku
    • Talent Acquisition
    • Audit & Sertifikasi
    Manufaktur
    • Tekstil
    • Logam
    • Perabotan
    • Makanan
    • Brewery
    • Corporate Gift
    Kesehatan & Fitness
    • Sports Club
    • Toko Kacamata
    • Fitness Center
    • Wellness Practitioners
    • Farmasi
    • Salon Rambut
    Perdagangan
    • Handyman
    • IT Hardware & Support
    • Sistem-Sistem Energi Surya
    • Pembuat Sepatu
    • Cleaning Service
    • Layanan HVAC
    Lainnya
    • Organisasi Nirlaba
    • Agen Lingkungan
    • Rental Billboard
    • Fotografi
    • Penyewaan Sepeda
    • Reseller Software
    Browse semua Industri
  • Komunitas
    Belajar
    • Tutorial-tutorial
    • Dokumentasi
    • Sertifikasi
    • Pelatihan
    • Blog
    • Podcast
    Empower Education
    • Program Edukasi
    • Game Bisnis 'Scale Up!'
    • Kunjungi Odoo
    Dapatkan Softwarenya
    • Download
    • Bandingkan Edisi
    • Daftar Rilis
    Kolaborasi
    • Github
    • Forum
    • Acara
    • Terjemahan
    • Menjadi Partner
    • Layanan untuk Partner
    • Daftarkan perusahaan Akuntansi Anda.
    Dapatkan Layanan
    • Temukan Mitra
    • Temukan Akuntan
    • Temui penasihat
    • Layanan Implementasi
    • Referensi Pelanggan
    • Bantuan
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dapatkan demo
  • Harga
  • Bantuan

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

  • CRM
  • e-Commerce
  • Akuntansi
  • Inventaris
  • PoS
  • Project
  • MRP
All apps
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Help

Efficient way to migrate to production in Odoo.sh

Langganan

Dapatkan notifikasi saat terdapat aktivitas pada post ini

Pertanyaan ini telah diberikan tanda
migrationOdoo.shDatabase
1 Balas
5263 Tampilan
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
Buang
Avatar
Sunny Sheth
Jawaban Terbai

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
Buang
ODOO_Aspirant

Good.. Thanks

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

Sunny Sheth

Thanks.

Menikmati diskusi? Jangan hanya membaca, ikuti!

Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!

Daftar
Post Terkait Replies Tampilan Aktivitas
Odoo V16: How to Transfer an Odoo.sh Project from One Partner Account to Another? Diselesaikan
migration Odoo.sh V16
Avatar
Avatar
Avatar
Avatar
3
Mar 25
2484
Odoo16E To Odoo18E Odoo.sh Test upgrade failed Diselesaikan
migration newsletter Odoo.sh Odoo18.0
Avatar
Avatar
1
Okt 25
838
Odoo version Migration through Odoo.sh - Can I keep my Existing staging branch ? Diselesaikan
migration odoo.sh staging Odoo.sh
Avatar
Avatar
Avatar
Avatar
3
Agu 24
3235
How to Add a User to Access the Database on Odoo.sh?
Odoo.sh
Avatar
Avatar
1
Okt 25
4025
How can one update/migrate a custom module from one versión to another in Odoo.sh?
migration analytic upgrade custom module Odoo.sh
Avatar
Avatar
Avatar
2
Mei 25
3673
Komunitas
  • Tutorial-tutorial
  • Dokumentasi
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Terjemahan
Layanan
  • Odoo.sh Hosting
  • Bantuan
  • Peningkatan
  • Custom Development
  • Pendidikan
  • Temukan Akuntan
  • Temukan Mitra
  • Menjadi Partner
Tentang Kami
  • Perusahaan kami
  • Aset Merek
  • Hubungi kami
  • Tugas
  • Acara
  • Podcast
  • Blog
  • Pelanggan
  • Hukum • Privasi
  • Keamanan
الْعَرَبيّة 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 adalah rangkaian aplikasi bisnis open source yang mencakup semua kebutuhan perusahaan Anda: CRM, eCommerce, akuntansi, inventaris, point of sale, manajemen project, dan seterusnya.

Mudah digunakan dan terintegrasi penuh pada saat yang sama adalah value proposition unik Odoo.

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