Odoo Deployment

🇹🇭 ภาษาไทย

Odoo มีตัวเลือก deployment หลายแบบ ตั้งแต่ SaaS บน Odoo Cloud, PaaS บน Odoo.sh, ไปจนถึง Self-hosted บน server ของตัวเอง และมี upgrade path ชัดเจนทุกรูปแบบ

→ กลับไปหน้าหลัก Odoo


Deployment Options เปรียบเทียบ

ตัวเลือกราคาจัดการโดยเหมาะกับ
Odoo Online (SaaS)รวมใน Enterprise (~$13.50/user/เดือน)Odoo ทั้งหมดSME ที่ต้องการเร็ว ง่าย
Odoo.sh (PaaS)$0 + ค่า Odoo licenseOdoo.sh platform (Devops) + ผู้ใช้ดูแล codeนักพัฒนา / custom module
Self-hostedค่า server + licenseผู้ใช้ทั้งหมดองค์กรที่ต้องการ control เต็มที่
Communityฟรีผู้ใช้ทั้งหมดทดลอง / SME งบจำกัด

Odoo.sh — GitHub-Integrated PaaS

Odoo.sh คือ Platform-as-a-Service อย่างเป็นทางการของ Odoo ที่ integrate กับ GitHub โดยตรง

Branch Types

Branchคำอธิบาย
Productionสาขา live จริง; deploy โดย git push
Stagingทดสอบ production clone; รีเฟรชจาก production อัตโนมัติ
Developmentสาขาทดลอง; สร้างใหม่ได้ไม่จำกัด

Features หลัก

  • Deploy by git pushgit push origin main → Odoo.sh build + deploy อัตโนมัติ
  • SSH access — เข้าถึง shell ของ container ได้โดยตรง
  • One-click duplicate — clone production เป็น staging ในคลิกเดียว
  • Automatic backup — incremental backup ทุกวัน เก็บบน 3 data centers
  • 24/7 monitoring — Odoo.sh monitor uptime และ health ตลอดเวลา
  • Custom domains — กำหนด domain ของตัวเองได้
  • Outgoing email — ตั้งค่า SMTP เอง หรือใช้ Odoo Mail Gateway
  • Build logs — ดู log การ build และ deploy ได้ real-time

Tech Stack

GitHub Repository
  → Odoo.sh Webhook
  → Container Build (Docker-based)
  → PostgreSQL Database
  → Nginx + SSL
  → Odoo App Server

ข้อดี/ข้อเสีย

ข้อดี:

  • Deploy ผ่าน git push — workflow นักพัฒนา
  • Test บน production clone ได้ฟรี
  • Backup อัตโนมัติ ไม่ต้องดูแลเอง
  • SSH access — debug ได้โดยตรง

ข้อเสีย:

  • ค่าใช้จ่ายสูงกว่า Online สำหรับ simple use case
  • ต้องมีความรู้ Git

Odoo Upgrade — 4 วิธี

วิธีที่ 1: Command Line (CLI)

python <(curl -s https://upgrade.odoo.com/upgrade) test \
  --d <database_name> \
  --t <target_version>

ขั้นตอน:

  1. รัน script ทดสอบบน staging ก่อน
  2. ตรวจสอบผลลัพธ์และ resolve errors
  3. รัน production upgrade:
    python <(curl -s https://upgrade.odoo.com/upgrade) production \
      --d <database_name> \
      --t <target_version>

เหมาะกับ: Self-hosted / Odoo.sh


วิธีที่ 2: Upload Form (upgrade.odoo.com)

  1. ไปที่ upgrade.odoo.com
  2. อัปโหลด database backup
  3. เลือก target version
  4. รอ Odoo ประมวลผล (อาจใช้เวลาหลายชั่วโมง)
  5. ได้ upgraded database กลับมา — ระยะ Testing: 3 วัน
  6. ทดสอบใน testing instance
  7. เมื่อ confirm → request Production upgrade

หมายเหตุ: มีหน้าต่าง Testing 3 วันก่อน commit เป็น Production


วิธีที่ 3: Odoo.sh UPGRADE Tab

  1. ไปที่ Odoo.sh Dashboard
  2. เลือก Branch ที่ต้องการ upgrade
  3. คลิก tab UPGRADE
  4. เลือก target version
  5. Odoo.sh จะสร้าง staging branch ของ upgraded database อัตโนมัติ
  6. ทดสอบ → merge เข้า production

วิธีที่ 4: Odoo Online (My Subscription)

  1. Log in Odoo Online
  2. ไปที่ My SubscriptionOdoo Apps
  3. คลิก Upgrade บน plan
  4. เลือก target version
  5. Odoo จัดการทุกอย่างอัตโนมัติ (downtime สั้น)

เหมาะกับ: Odoo Online (SaaS) users เท่านั้น


Backup & Recovery

Odoo OnlineOdoo.shSelf-hosted
Backupอัตโนมัติโดย OdooIncremental daily + 3 DCต้องทำเอง
Recoveryผ่าน SupportOne-click ใน dashboardpg_restore
Retentionหลายสัปดาห์ตามแผนขึ้นกับ storage

Security (Odoo Online / Odoo.sh)

  • SSL/TLS — ทุก connection บังคับ HTTPS
  • IP Filtering — จำกัด access ตาม IP ได้
  • Two-Factor Authentication — รองรับ 2FA สำหรับ user
  • LDAP/Active Directory — Enterprise รองรับ SSO
  • Audit Log — บันทึก user actions

  • Odoo — หน้าหลัก Odoo ERP
  • Odoo User Management — การจัดการ user และสิทธิ์
  • Proxmox VE — platform สำหรับ self-host Odoo บน VM

🇬🇧 English

Odoo offers multiple deployment options: SaaS on Odoo Cloud, PaaS on Odoo.sh, and self-hosted on your own infrastructure. Each tier has a corresponding upgrade path.

→ Return to Odoo main page


Deployment Comparison

OptionCostManaged ByBest For
Odoo Online (SaaS)Included in Enterprise (~$13.50/user/month)Odoo fullySMEs wanting fast, simple setup
Odoo.sh (PaaS)$0 platform + Odoo licenseOdoo.sh + you manage codeDevelopers / custom modules
Self-hostedServer cost + licenseYou fullyFull control, custom infra
CommunityFreeYou fullyTesting / budget-constrained

Odoo.sh — GitHub-Integrated PaaS

Odoo.sh is Odoo’s official PaaS platform with native GitHub integration.

Branch Types

BranchDescription
ProductionLive branch; deploy via git push
StagingProduction clone for testing; auto-refreshed from production
DevelopmentExperimental branches; unlimited creations

Key Features

  • Deploy by git pushgit push origin main triggers auto build + deploy on Odoo.sh
  • SSH access — Direct shell access to the container
  • One-click duplicate — Clone production to staging in one click
  • Automatic backup — Daily incremental backups stored across 3 data centers
  • 24/7 monitoring — Odoo.sh monitors uptime and health continuously
  • Custom domains — Configure your own domain name
  • Build logs — View real-time build and deployment logs

Odoo Upgrade — 4 Methods

Method 1: Command Line (CLI)

python <(curl -s https://upgrade.odoo.com/upgrade) test \
  --d <database_name> \
  --t <target_version>

Steps: Run test mode on staging → review and resolve errors → run production upgrade.

Method 2: Upload Form (upgrade.odoo.com)

  1. Go to upgrade.odoo.com and upload a database backup
  2. Choose target version → wait for processing
  3. Receive upgraded database — 3-day Testing window
  4. Test, then request Production promotion

Method 3: Odoo.sh UPGRADE Tab

  1. Open Odoo.sh Dashboard → select branch → click UPGRADE tab
  2. Select target version → Odoo.sh auto-creates a staging branch with the upgraded database
  3. Test → merge to production

Method 4: Odoo Online (My Subscription)

  1. Navigate to My Subscription → Odoo Apps → Upgrade
  2. Select target version → Odoo handles everything automatically

Backup & Recovery

Odoo OnlineOdoo.shSelf-hosted
BackupAutomatic by OdooDaily incremental + 3 DCsManual
RecoveryVia supportOne-click in dashboardpg_restore