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

How to update and upgrade odoo custom module using docker-compose

Langganan

Dapatkan notifikasi saat terdapat aktivitas pada post ini

Pertanyaan ini telah diberikan tanda
odooCybrosysv17odoomateV16
2 Replies
9243 Tampilan
Avatar
BITITI Fabrone


I created a custom module and it worked alright. However, I'm unable to update it using docker command  .

 l do not want to go the  odoo web interface go to app update the list check the app upgrade the app .

any command or any docker configuration will be welcomed

Thank you 


here is my docker-compose.yml

version: '3.1'

services: 

​odoo17: 

​ ​build: 

​ ​ ​context: ./odoo/ 

​ ​image: odoo:17 

​ ​container_name: odoo_fab17 

​ ​command: -- --dev=reload 

​ ​depends_on: - db 

​ ​ports: - "8099:8069" 

​ ​volumes: 

​ ​ ​- odoo-web-data:/var/lib/odoo

​ ​ ​ - ./odoo/addons:/mnt/extra-addons:rw 

​ ​ ​- ./odoo/entreprise:/mnt/entreprise

​ ​adminer: 

​ ​ ​image: adminer 

​ ​ ​restart: always 

​ ​ ​ports: - 8080:8080 

​ ​db: 

​ ​ ​image: postgres:15.0 

​ ​ ​container_name: fab_odoo_17 

​ ​ ​environment: 

​ ​ ​ ​- POSTGRES_DB=postgres 

​ ​ ​ ​- POSTGRES_PASSWORD=odoo 

​ ​ ​ ​- POSTGRES_USER=odoo 

​ ​ ​ ​- PGDATA=/var/lib/postgresql/data/pgdata 

​ ​ ​volumes: 

​ ​ ​ ​- odoo-db-data:/var/lib/postgresql/data/pgdata ​ ​

volumes: 

​odoo-web-data:

​ odoo-db-data:

0
Avatar
Buang
Avatar
Gracious Joseph
Jawaban Terbai

To update and upgrade an Odoo custom module using Docker and avoid using the web interface, you can achieve it by running the necessary commands directly on the Odoo container using docker exec. Here's a step-by-step guide:

1. Updating the Module with Docker

Use the following steps to update your custom module:

Step 1: Locate the Module

Make sure your custom module is located in the directory specified in your docker-compose.yml under:

- ./odoo/addons:/mnt/extra-addons:rw

Ensure the module's updated files are saved in this folder.

Step 2: Run the Upgrade Command

To update the module, use the docker exec command to access the Odoo container and run the -u flag to upgrade the module.

Here’s the command:

docker exec -it odoo_fab17 odoo --dev=reload -d <database_name> -u <module_name>
  • Replace <database_name> with the name of your database.
  • Replace <module_name> with the technical name of your module.

For example:

docker exec -it odoo_fab17 odoo --dev=reload -d my_db -u my_custom_module

2. Automating Module Updates with docker-compose

If you want the custom module to automatically update when you rebuild or restart your containers, you can add the upgrade command to your docker-compose.yml.

Modify docker-compose.yml

Update the command section in your Odoo service:

command: >
  -- --dev=reload
  -d <database_name>
  -u <module_name>

Example:

command: >
  -- --dev=reload
  -d my_db
  -u my_custom_module

Whenever you restart your containers, the module will automatically be upgraded.

3. Restart the Odoo Container

After making changes to your module or docker-compose.yml, restart your containers:

docker-compose down
docker-compose up -d

This ensures the latest module files are loaded and the upgrade command is executed.

4. Rebuilding Assets (Optional)

If your module includes JavaScript or CSS changes, you may need to rebuild Odoo assets. Run the following command:

docker exec -it odoo_fab17 odoo --dev=reload -d <database_name> -u <module_name> --load=web.assets_backend

5. Verifying the Update

  1. After running the command or restarting the container, log in to Odoo.
  2. Check if the custom module has been updated with the latest changes.

6. Debugging Tips

If the module does not update or errors occur:

  • Check the Odoo logs for issues:
    docker logs odoo_fab17
    
  • Ensure the custom module is correctly located in the addons folder.
  • Verify the module's manifest file (__manifest__.py) for any syntax issues.

This process avoids using the Odoo web interface and allows you to manage custom module updates directly from the command line using Docker. Let me know if you have further questions or encounter issues!

0
Avatar
Buang
Avatar
Sujata
Jawaban Terbai

Hello BITITI Fabrone, 

Here's how you can update your custom module using Docker Compose:

  1. Update your docker-compose.yml file:
    • Your Odoo service is named odoo17 based on your configuration. Ensure that the custom module path ./odoo/addons is correctly mounted inside the container at /mnt/extra-addons.
  2. Run the command to update the module:
    • You can update your custom module without using the web interface by running the following command:
    docker-compose run --rm odoo17 odoo -u  -d  --stop-after-init
    
    • Replace with the technical name of your custom module and with your Odoo database name.
  3. Rebuild the Docker image (optional):
    • If you've made any changes to your Docker configuration or want to ensure everything is up to date, you can rebuild the Docker image by running:
    docker-compose build
    
  4. Restart your services (optional):
    • After rebuilding, bring the services back up by running:
    docker-compose up -d
    

This process updates your custom module and ensures your Docker containers are correctly configured and running. Let me know if it helps :)

0
Avatar
Buang
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
how to run Odoo test cases with custom module in odoo.sh
odoo odoosh v17 odoo16 V16
Avatar
0
Mei 24
1789
Since 17.0, the "attrs" and "states" attributes are no longer used. Diselesaikan
odoo v17
Avatar
Avatar
Avatar
Avatar
Avatar
7
Okt 25
31520
How to Remove powered by odoo from online invoice footer ?
odoo v17
Avatar
Avatar
Avatar
2
Jul 25
2854
UncaughtPromiseError after insert and apply embeded code in the footer
odoo v17
Avatar
0
Mar 25
1816
[FR/EN]Problème pour envoyer des mails dans les factures/devis / Problem sending emails in invoices/quotes
odoo v17
Avatar
1
Jul 24
2651
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