Skip to Content
Odoo Menu
  • Log ind
  • Prøv gratis
  • Apps
    Økonomi
    • Bogføring
    • Fakturering
    • Udgifter
    • Regneark (BI)
    • Dokumenter
    • e-Signatur
    Salg
    • CRM
    • Salg
    • POS Butik
    • POS Restaurant
    • Abonnementer
    • Udlejning
    Hjemmeside
    • Hjemmesidebygger
    • e-Handel
    • Blog
    • Forum
    • LiveChat
    • e-Læring
    Forsyningskæde
    • Lagerbeholdning
    • Produktion
    • PLM
    • Indkøb
    • Vedligeholdelse
    • Kvalitet
    HR
    • Medarbejdere
    • Rekruttering
    • Fravær
    • Medarbejdersamtaler
    • Anbefalinger
    • Flåde
    Marketing
    • Markedsføring på sociale medier
    • E-mailmarketing
    • SMS-marketing
    • Arrangementer
    • Automatiseret marketing
    • Spørgeundersøgelser
    Tjenester
    • Projekt
    • Timesedler
    • Udkørende Service
    • Kundeservice
    • Planlægning
    • Aftaler
    Produktivitet
    • Dialog
    • Godkendelser
    • IoT
    • VoIP
    • Vidensdeling
    • WhatsApp
    Tredjepartsapps Odoo Studio Odoo Cloud-platform
  • Brancher
    Detailhandel
    • Boghandel
    • Tøjforretning
    • Møbelforretning
    • Dagligvarebutik
    • Byggemarked
    • Legetøjsforretning
    Mad og værtsskab
    • Bar og pub
    • Restaurant
    • Fastfood
    • Gæstehus
    • Drikkevareforhandler
    • Hotel
    Ejendom
    • Ejendomsmægler
    • Arkitektfirma
    • Byggeri
    • Ejendomsadministration
    • Havearbejde
    • Boligejerforening
    Rådgivning
    • Regnskabsfirma
    • Odoo-partner
    • Marketingbureau
    • Advokatfirma
    • Rekruttering
    • Audit & certificering
    Produktion
    • Tekstil
    • Metal
    • Møbler
    • Fødevareproduktion
    • Bryggeri
    • Firmagave
    Heldbred & Fitness
    • Sportsklub
    • Optiker
    • Fitnesscenter
    • Kosmetolog
    • Apotek
    • Frisør
    Håndværk
    • Handyman
    • IT-hardware og support
    • Solenergisystemer
    • Skomager
    • Rengøringsservicer
    • VVS- og ventilationsservice
    Andet
    • Nonprofitorganisation
    • Miljøagentur
    • Udlejning af billboards
    • Fotografi
    • Cykeludlejning
    • Softwareforhandler
    Gennemse alle brancher
  • Community
    Få mere at vide
    • Tutorials
    • Dokumentation
    • Certificeringer
    • Oplæring
    • Blog
    • Podcast
    Bliv klogere
    • Udannelselsesprogram
    • Scale Up!-virksomhedsspillet
    • Besøg Odoo
    Få softwaren
    • Download
    • Sammenlign versioner
    • Udgaver
    Samarbejde
    • Github
    • Forum
    • Arrangementer
    • Oversættelser
    • Bliv partner
    • Tjenester til partnere
    • Registrér dit regnskabsfirma
    Modtag tjenester
    • Find en partner
    • Find en bogholder
    • Kontakt en rådgiver
    • Implementeringstjenester
    • Kundereferencer
    • Support
    • Opgraderinger
    Github Youtube Twitter LinkedIn Instagram Facebook Spotify
    +1 (650) 691-3277
    Få en demo
  • Prissætning
  • Hjælp

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

  • CRM
  • e-Commerce
  • Bogføring
  • Lager
  • PoS
  • Projekt
  • MRP
All apps
Du skal være registreret for at interagere med fællesskabet.
All Posts People Emblemer
Tags (View all)
odoo accounting v14 pos v15
Om dette forum
Du skal være registreret for at interagere med fællesskabet.
All Posts People Emblemer
Tags (View all)
odoo accounting v14 pos v15
Om dette forum
Hjælp

Is there a need to restart OpenERP-Server when we update a custom module

Tilmeld

Få besked, når der er aktivitet på dette indlæg

Dette spørgsmål er blevet anmeldt
servermodulecustomupdateopenerprestart
4 Besvarelser
14544 Visninger
Avatar
CHARPENTIER

I am developing new modules for real estate on my Synology DS412+, when i modify one of my new modules:

- if for example, i add a new field : "basement"  in the .py file and in the .xml file

when i click to update the modified module, OpenERP  check the coherence of the modified module and say that the new fields dont exist in the model: 

Error message: 

except_orm: ('View error', u"Can't find field 'basement' in the following view parts composing the view of object model 'apartment':\n * apartment.formb\n * apartment.form\n\nEither you wrongly customized this view, or some modules bringing those views are not compatible with your current data model")

As if OpenERP did not complile the modified module and dont create the new field....

I have read on this forum that i have to restart the OpenERP Server so that the modified module is recompiled. But it is not enough, the same error occurs.

To resolve the problem i have created a new module who inherit from the object i want to modifiy and inserted the new field in the second module by heritage. It works but it is not very acceptable to do this...

Could you please say me what is wrong in my approach????

0
Avatar
Kassér
Avatar
Sajad KK
Bedste svar

You need to restart OpenERP if you make changes in .py files, and you only need to update your module if you make changes in xml. You will need to do both if you add  or remove fields in a model or create a new model.
 

EDIT:
You are still getting the same error because you have already tried to upgrade your module before restarting the server.
To solve that remove your .xml view from the __opernerp__.py file, restart the server, update the module list and the module, add the .xml view again to __openerp__.py and update the module again.
This might help.

4
Avatar
Kassér
Avatar
Roel Adriaans
Bedste svar

Restart openerp with the flags -d <database> -u <moduleName> .

These flags update the xml views and create new fields in the database. It does not delete old fields that are no longer needed from the database.

1
Avatar
Kassér
Avatar
CHARPENTIER
Forfatter Bedste svar

Thank you for your answers, i understand i have to restart when i modify the .py

But i have restarted and i always have the same error!!!

Could you help more precisely? For example do i have to uninstall the modified module before réinstall?

 

Thank you Sajad KK it is clear now i have made many updates in the .xml without restarting and one update in the .py with resart of OpenERP and it is clear for me the good strategy is to write directly the exact needed .py 

I genraly itarated the object structure and with OpenERP it is not a good approach. Thank you.

 

0
Avatar
Kassér
Avatar
Jagdish Panchal
Bedste svar

Hi,

When change in .Py file you need to restart server.

Restart server then upgrade your module

Thanks

 

0
Avatar
Kassér
Enjoying the discussion? Don't just read, join in!

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

Tilmeld dig
Related Posts Besvarelser Visninger Aktivitet
restart openerp 7 server on Xubuntu
service update openerp restart
Avatar
0
mar. 15
6072
Openerp server does not stop properly (SOLVED) Løst
server openerp stop restart
Avatar
Avatar
Avatar
Avatar
4
jan. 24
17212
openerp update Apps
module apps update openerp
Avatar
Avatar
2
mar. 15
5558
manifest file not updated after restart the server
server update summary manifest restart
Avatar
Avatar
1
aug. 23
7416
Custom Module Not Populating in Apps List Løst
module custom
Avatar
Avatar
4
okt. 20
9962
Community
  • Tutorials
  • Dokumentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Oversættelser
Tjenester
  • Odoo.sh-hosting
  • Support
  • Opgradere
  • Individuelt tilpasset udvikling
  • Uddannelse
  • Find en bogholder
  • Find en partner
  • Bliv partner
Om os
  • Vores virksomhed
  • Brandaktiver
  • Kontakt os
  • Stillinger
  • Arrangementer
  • Podcast
  • Blog
  • Kunder
  • Juridiske dokumenter • Privatlivspolitik
  • Sikkerhedspolitik
الْعَرَبيّة 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 er en samling open source-forretningsapps, der dækker alle dine virksomhedsbehov – lige fra CRM, e-handel og bogføring til lagerstyring, POS, projektledelse og meget mere.

Det unikke ved Odoo er, at systemet både er brugervenligt og fuldt integreret.

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