Siirry sisältöön
Odoo Menu
  • Kirjaudu sisään
  • Kokeile ilmaiseksi
  • Sovellukset
    Talous
    • Kirjanpito
    • Laskutus
    • Kulut
    • Datataulukot (BI)
    • Asiakirjat
    • Allekirjoita
    Myynti
    • CRM
    • Myynti
    • Kassajärjestelmä myymälään
    • Kassajärjestelmä ravintolaan
    • Tilaukset
    • Vuokraus
    Verkkosivut
    • Verkkosivun Rakennustyökalu
    • Verkkokauppa
    • Blogi
    • Foorumi
    • Livechat
    • Verkko-oppiminen
    Toimitusketju
    • Varastointi
    • Tuotanto
    • Tuotteen elinkaaren hallinta (PLM)
    • Ostot
    • Huolto
    • Laatu
    Henkilöstöhallinto
    • Työntekijät
    • Rekrytointi
    • Vapaat
    • Arvioinnit
    • Suositukset
    • Kuljetuskalusto
    Markkinointi
    • Somemarkkinointi
    • Sähköpostimarkkinointi
    • Tekstiviestimarkkinointi
    • Tapahtumat
    • Markkinoinnin automaatio
    • Kyselyt
    Palvelut
    • Projekti
    • Työaikakirjaukset
    • Kenttähuolto
    • Asiakaspalvelu
    • Suunnittelu
    • Ajanvaraukset
    Tuottavuus
    • Viestintä
    • Hyväksynnät
    • IoT
    • IP-puhe
    • Tietokirjasto
    • WhatsApp
    Kolmannen osapuolen sovellukset Odoo-Studio Odoo-Pilvialusta
  • Toimialat
    Vähittäiskauppa
    • Kirjakauppa
    • Vaatekauppa
    • Huonekaluliike
    • Ruokakauppa
    • Laitteistokauppa
    • Lelukauppa
    Ruoka & Majoitus
    • Baari ja Pubi
    • Ravintola
    • Pikaruoka
    • Majatalo
    • Juomien jakelija
    • Hotelli
    Kiinteistöt
    • Kiinteistönvälitystoimisto
    • Arkkitehtitoimisto
    • Rakentaminen
    • Kiinteistönhallinta
    • Puutarhanhoito
    • Kiinteistön omistajien yhdistys
    Konsultointi
    • Tilitoimisto
    • Odoo-kumppani
    • Markkinointitoimisto
    • Lakitoimisto
    • Osaajahankinta
    • Tilintarkastus & sertifiointi
    Tuotanto
    • Tekstiili
    • Metalli
    • Huonekalut
    • Ruoka
    • Panimo
    • Yrityslahjat
    Terveys & Liikunta
    • Urheiluseura
    • Silmälasiliike
    • Kuntokeskus
    • Hyvinvointialan ammattilaiset
    • Apteekki
    • Kampaamo
    Kaupat
    • Yleismies
    • IT-laitteisto & Tuki
    • Aurinkoenergiajärjestelmät
    • Suutari
    • Siivouspalvelut
    • LVI-palvelut
    Muut
    • Voittoa tavoittelematon järjestö
    • Ympäristötoimisto
    • Mainostaulujen vuokraus  
    • Valokuvaus
    • Leasing-pyörät
    • Ohjelmistojen jälleenmyyjä
    Selaa kaikkia toimialoja
  • Yhteisö
    Opi
    • Kurssit
    • Dokumentaatio
    • Todistukset
    • Koulutus
    • Blogi
    • Podcast
    Kannusta kouluttautumaan
    • Koulutusohjelmat
    • Scale Up! Liiketoimintapeli
    • Vieraile Odoolla
    Hanki ohjelmisto
    • Lataa
    • Vertaile versioita
    • Julkaisut
    Tee yhteistyötä
    • Github
    • Foorumi
    • Tapahtumat
    • Käännökset
    • Ryhdy kumppaniksi
    • Kumppanipalvelut
    • Rekisteröi tilitoimistosi
    Hanki palveluja
    • Löydä kumppani
    • Löydä kirjanpitäjä
    • Varaa asiantuntijatapaaminen
    • Implementaatiopalvelut
    • Asiakasreferenssit
    • Tuki
    • Versionkorotukset
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Varaa demo
  • Hinnoittelu
  • Asiakaspalvelu

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

  • CRM
  • e-Commerce
  • Kirjanpito
  • Varastointi
  • PoS
  • Projekti
  • MRP
All apps
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Kaikki kirjoitukset Ihmiset Merkit
Tunnisteet (Näytä kaikki)
odoo accounting v14 pos v15
Tietoa tästä foorumista
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Kaikki kirjoitukset Ihmiset Merkit
Tunnisteet (Näytä kaikki)
odoo accounting v14 pos v15
Tietoa tästä foorumista
Apua

How do I setup an update script for Odoo?

Tilaa

Saat ilmoituksen, kun tähän viestiin ilmaantuu aktiviteettia

Tämä kysymys on merkitty
v8
1 Vastaa
11833 Näkymät
Avatar
Bruce Letterle

I am running Odoo v8 on Ubuntu 14.04. Has anyone developed an auto update script that I can run with cron to do regular updates of the software and apps/modules?

1
Avatar
Hylkää
Avatar
Daniel Kauffman
Paras vastaus

I would not recommend doing automatic updates on a production database.

However, for performing scheduled updates or for spinning up new servers, the following configuration may be useful:

  1. Configure a production server running Debian stable plus nginx-light, odoo, postgresql, and any other dependencies, for example, cups and python-cups for printing.
  2. Configure a build server running Debian stable plus git and bzr.  ($5 server from Digital Ocean works for me.)
  3. On the build server, use git and bzr to download sources for Odoo to an Odoo repository and for various community modules to their respective repositories. See script below.
  4. On the build server, configure ~/.ssh/config to allow easy connections to your production server.  Alternatively, configure this on your production server to allow easy connections to your build server.  In either case, also configure ~/.ssh/authorized_keys on the opposite end of the connection.
  5. On the build server, use a script to rsync the Odoo sources and community module sources to your production server. Alternatively, run rsync from your production server to pull from your build server.
  6. Restart the Odoo server. Either start the server using --update=all or upgrade the modules manually from the web interface.

Here are the scripts:

# Initialize repositories on build server.

git clone https://github.com/odoo/odoo.git
cd odoo
git checkout 7.0
cd ..
bzr checkout lp:~ruchir.shukla/+junk/misc_modules_7.0 BizzAppDev

# Update repositories on build server.
cd odoo
git pull
cd ..
bzr update BizzAppDev

# Synchronize to production server oodo.example.com.
rsync --archive --delete --rsh ssh odoo/openerp root@odoo.example.com:/opt/odoo/odoo-server/
rsync --archive --delete --rsh ssh odoo/openerp-server root@odoo.example.com:/opt/odoo/odoo-server/
rsync --archive --delete --rsh ssh odoo/addons/* root@odoo.example.com:/opt/odoo/odoo-addons/official/
rsync --archive --delete --rsh ssh BizzAppDev/oerp_no_phoning_home root@odoo.example.com:/opt/odoo/odoo-addons/community/
rsync --archive --delete --rsh ssh local/my_local_module root@odoo.example.com:/opt/odoo/odoo-addons/local/

# Restart the Odoo server. Either configure the init script to use --update=all or upgrade the modules manually from the web interface.
ssh root@odoo.example.com service odoo restart

A few additional notes:

  • The scripts are for Odoo 7 so some minor adjustments would be necessary for Odoo 8.
  • The rsync commands require odoo.conf addons_path to be configured accordingly: addons_path = /opt/odoo/odoo-addons/official,/opt/odoo/odoo-addons/community,/opt/odoo/odoo-addons/local
  • Python oerplib can be very helpful for setting up new databases.  This can be scripted and run from your build server.
1
Avatar
Hylkää
Bruce Letterle
Tekijä

Besides updating the sources, aren't there other steps to update the database? I saw somewhere in the docs that you also have to restart the odoo server with --update=all

Daniel Kauffman

You are correct, the modules would still need to be upgraded. I use the above process mostly during development, so I typically upgrade my local modules manually using the web interface, so that I can see any errors. But if you were not developing a module, using --update=all when restarting the Odoo server would definitely be easier.

Nautitko keskustelusta? Älä vain lue, vaan osallistu!

Luo tili jo tänään nauttiaksesi yksinoikeusominaisuuksista ja osallistuaksesi mahtavaan yhteisöömme!

Rekisteröidy
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
How do you implement the Associations: Members website module? Ratkaistu
v8
Avatar
Avatar
Avatar
3
heinäk. 25
9850
How to Integrate a Full-Screen Color Testing Tool with Odoo Website Builder?
v8
Avatar
Avatar
1
toukok. 25
2070
Odoo V8 integrate with Microsoft O365 Email
v8
Avatar
0
tammik. 24
2678
What is the use of __init__() and init() in odoo ?When We can use them ? Ratkaistu
v8
Avatar
Avatar
1
helmik. 22
25210
Message attachment size limit Ratkaistu
v8
Avatar
Avatar
Avatar
5
jouluk. 21
17768
Yhteisö
  • Kurssit
  • Dokumentaatio
  • Foorumi
Avoin lähdekoodi
  • Lataa
  • Github
  • Runbot
  • Käännökset
Palvelut
  • Odoo.sh hosting
  • Tuki
  • Versionkorotus
  • Räätälöidyt kehitykset
  • Koulutus
  • Löydä kirjanpitäjä
  • Löydä kumppani
  • Ryhdy kumppaniksi
Meistä
  • Yrityksemme
  • Brändiominaisuudet
  • Ota yhteyttä
  • Työpaikat
  • Tapahtumat
  • Podcast
  • Blogi
  • Asiakkaat
  • Oikeudellinen ilmoitus • Yksityisyys
  • Tietoturva
الْعَرَبيّة 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 on kokoelma avoimen lähdekoodin yrityssovelluksia, jotka kattavat kaikki yrityksesi tarpeet: asiakkuudenhallinta eli CRM, verkkokauppa, kirjanpito, varastointi, kassajärjestelmä, projektinhallinta, jne.

Odoon uniikki arvolupaus on olla samanaikaisesti erittäin helppokäyttöinen ja täysin integroitu.

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