İçereği Atla
Odoo Menü
  • Portal
  • Ücretsiz deneyin
  • Uygulamalar
    Finans
    • Muhasebe
    • Faturalama
    • Masraf Yönetimi
    • Elektronik Çizelge (BI)
    • Belgeler
    • İmza
    Satış
    • Müşteri İlişkileri Yönetimi (CRM)
    • Satış
    • Satış Noktası Mağaza
    • Satış Noktası Restoran
    • Abonelikler
    • Kiralama
    Web Sitesi
    • Web Sitesi Oluşturucu
    • eTicaret
    • Blog
    • Forum
    • Canlı Sohbet
    • eÖğrenme
    Tedarik Zinciri
    • Envanter
    • Üretim
    • Ürün Yaşam Döngüsü Yönetimi
    • Satın Alma
    • Bakım
    • Kalite
    İnsan Kaynakları
    • Çalışanlar
    • İşe Alım
    • İzin
    • Değerlendirme
    • Referans
    • Filo Yönetimi
    Pazarlama
    • Sosyal Medyada Pazarlama
    • E-posta ile Pazarlama
    • SMS ile Pazarlama
    • Etkinlikler
    • Pazarlama Otomasyonu
    • Anket
    Hizmetler
    • Proje Yönetimi
    • Çalışma Çizelgeleri
    • Saha Hizmeti
    • Yardım Masası
    • Planlama
    • Randevular
    Verimlilik
    • Sohbet
    • Onay
    • Nesnelerin İnterneti
    • VoIP
    • Bilgi Bankası
    • WhatsApp
    Üçüncü taraf uygulamalar Odoo Stüdyo Odoo Bulut Platformu
  • Sektörler
    Perakende satış
    • Kitapçı
    • Giyim Mağazası
    • Mobilya Mağazası
    • Gıda Marketi
    • Hırdavat Dükkanı
    • Oyuncak Dükkanı
    Gıda ve Konaklama
    • Bar ve Pub
    • Restoran
    • Fast Food Restoranı
    • Konuk Evi
    • İçecek Distribütörü
    • Otel
    Gayrimenkul
    • Emlak Acentesi
    • Mimarlık Firması
    • İnşaat
    • Emlak Yönetimi
    • Bahçe Tasarımı
    • Mülk Sahipleri Derneği
    Uzmanlık
    • Muhasebe Firması
    • Odoo Partner
    • Pazarlama Ajansı
    • Hukuk Firması
    • Yetenek Kazanımı
    • Denetim ve Belgelendirme
    Üretim
    • Tekstil
    • Metal
    • Mobilyalar
    • Gıda
    • Bira fabrikası
    • Kurumsal Hediye
    Sağlık ve Spor
    • Spor Kulübü
    • Optik Mağazası
    • Fitness Merkezi
    • Sağlıklı Yaşam Merkezi
    • Eczane
    • Kuaför Salonu
    Ticaret
    • Tamirci
    • BT Donanım & Destek
    • Güneş Enerjisi Sistemleri
    • Ayakkabı İmalatçısı
    • Temizlik Hizmetleri
    • HVAC Hizmetleri
    Diğerleri
    • Kar Amacı Gütmeyen Kuruluş
    • Çevre Ajansı
    • Reklam Panosu Kiralama
    • Fotoğrafçılık
    • Bisiklet Kiralama
    • Yazılım Bayisi
    Tüm Sektörlere Göz Atın
  • Topluluk
    Öğrenim
    • Eğitim Araçları
    • Dokümantasyon
    • Sertifikasyonlar
    • Eğitim Etkinlikleri
    • Blog
    • Podcast
    Eğitim ve Gelişim
    • Eğitim Programı
    • Scale Up! İşletme Oyunu
    • Odoo'yu Ziyaret Edin
    Yazılım
    • İndirin
    • Sürümleri Kıyaslayın
    • Sürümler
    İş Birliği
    • Github
    • Forum
    • Etkinlikler
    • Çeviriler
    • Partner Olun
    • Partnerler için Hizmetler
    • Muhasebe Firmanızı Kaydettirin
    Hizmetler
    • Partner Bulun
    • Muhasebeci Bulun
    • Bir danışmanla görüşün
    • Kurulum Hizmetleri
    • Müşteri Referansları
    • Destek
    • Sürüm Yükseltme
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Demo randevusu alın
  • Fiyatlandırma
  • Yardım

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

  • Müşteri İlişkileri Yönetimi
  • e-Commerce
  • Muhasebe
  • Envanter
  • PoS
  • Proje Yönetimi
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiketler (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiketler (View all)
odoo accounting v14 pos v15
About this forum
Yardım

Odoo 8+: how to restart server when python has been changed?

Abone Ol

Get notified when there's activity on this post

Bu soru işaretlendi
developmentrestartodoo8
2 Cevaplar
18138 Görünümler
Avatar
Kasper Souren

Python is a nice language. But it's annoying to have to restart the server for every little code change when developing. I've worked with Meteor which even reloads pages on the clients, that's really amazing, will take a long time before Odoo will get there. Now the first step to get a nicer dev experience would have some optional way to restart the server whenever a file has been updated.

Related questions:

From 2012: http://stackoverflow.com/questions/12597164/force-python-interpreter-to-reload-a-code-module

From 2013: https://www.odoo.com/forum/help-1/question/must-you-really-restart-openerp-all-the-time-to-develop-a-module-30394

Is there a good solution for Odoo 8 to restart the server when Python code in a module has been changed?

1
Avatar
Vazgeç
Madura

Restart the server.

Avatar
juan delgado
En İyi Yanıt

hi friend you have a solution now, i have the same problem, my change not take a effect

0
Avatar
Vazgeç
Avatar
Temur
En İyi Yanıt

Hi, 

 

I do not think that odoo should include automatic restarting, as it is NOT necessary on production server. instead you can adapt your development tools. How you'll make it, depends on your favorite development tool. If you're using some IDE, most probably there will be possibility to add a shortcut to the IDE for server restart, even make it automatically restarted upon file save... so take a closer look of your favorite development tool. You do not specified what tools you're using for editing code, but if you're using vim, there is how. else you can set up similar behavior in other tools that you're using.

For me restarting of openerp is just 2 keystrokes and I do not find it annoying. I hit F5 for restart it, then I hit Enter to return to editing in VIM. After F5 keystroke I can either wait 2 seconds if I want to see feedback of restart command (success/failure) or hit Enter immediately to continue editing. 

For have such a possibility in Vim, I've set shortcut for F5 key by adding following line to VIM's config file:

map  <F5>  :!  service openerp restart   <CR>

-where 'map' is VIM's command that adds mapping, '<F5>' - stands for F5 keystroke, ':!' - means "calling external command", 
'service openerp restart' - is an actual command that restarts openerp server from command-line. it may differ from OS to OS and from openerp version to version. for v8 it may be  'service odoo restart', for v7 it may same as above or 'service openerp-server restart' or something else. You can adapt this command according your environment and you've to check in command line if the command actually restarts openerp in your system before putting it in Vim's configfile. and finally <CR> at the end, stends for Enter keystroke (Carriage Return), it avoids necessity of hitting Enter for invoke restart command. You can even add another <CR> for second Enter keystroke, that'll return you to editing  without necessity to  hit Enter after F5, i.e. you'll restart openerp just in 1 keystroke (by pressing F5): 

map  <F5>  :!  service openerp restart   <CR> <CR>

- but in this case you'll miss posibility to get feedback of command, as sometimes restart fails, I prefer to have only one <CR> and hit Enter either in 2 seconds for waiting feedback from restart command or hit Enter imediately after F5 and continue editing, according my needs for the moment.

 

regards,

0
Avatar
Vazgeç
Temur

AFAIK it's not too complicated make some actions upon file save in Eclipse.
So IF you're using Eclipse you can accomplish exactly what you want quite easily, i.e. restart openerp on file save. You have to do just few steps for set up it as needed and then eclipse will restart openerp on every file save for you.

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Üye Ol
İlgili Gönderiler Cevaplar Görünümler Aktivite
Can someone explain me the xpath? Çözüldü
development module odoo8
Avatar
Avatar
2
Eki 15
7477
Odoo OpenERP Server Error Traceback (most recent call last):
development installation database odoo8
Avatar
0
Haz 16
11595
How to stop or restrict creating more than 2 users in odoo? Çözüldü
development postgresql openerp odoo8
Avatar
Avatar
1
Nis 15
6034
Sales Order not confirmed and Invoice not closed using paypal in odoo8
development paypal ecommerce odoo8
Avatar
0
Mar 15
6877
Oddo Integration with Intune
development
Avatar
0
Ara 25
1585
Topluluk
  • Eğitim Araçları
  • Dokümantasyon
  • Forum
Açık Kaynak
  • İndirin
  • Github
  • Runbot
  • Çeviriler
Hizmetler
  • Odoo.sh Hosting
  • Destek
  • Sürüm Yükseltme
  • Özel Geliştirmeler
  • Eğitim
  • Muhasebeci Bulun
  • Partner Bulun
  • Partner Olun
Hakkında
  • Şirketimiz
  • Pazarlama Gereçleri
  • İletişim
  • Kariyer
  • Etkinlikler
  • Podcast
  • Blog
  • Müşteriler
  • Hukuki • Gizlilik
  • Güvenlik
الْعَرَبيّة 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, müşteri ilişkileri yönetimi, eTicaret, muhasebe, envanter, satış noktası, proje yönetimi gibi şirketinizin tüm ihtiyaçlarını karşılayan bir açık kaynak işletme uygulamaları paketidir.

Odoo’nun eşsiz değer önermesi, aynı anda hem kullanımının çok kolay olup hem de tamamen entegre olmasıdır.

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