Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Validacions
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Immobiliari
    • Agència immobiliària
    • Estudi d'arquitectura
    • Construcció
    • Gestió immobiliària
    • Jardineria
    • Associació de propietaris de béns immobles
    Consultoria
    • Empresa comptable
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Mobles
    • Menjar
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Sistemes d'energia solar
    • Shoe Maker
    • Serveis de neteja
    • Instal·lacions HVAC
    Altres
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda

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

  • CRM
  • e-Commerce
  • Comptabilitat
  • Inventari
  • PoS
  • Projectes
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

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

Subscriure's

Get notified when there's activity on this post

This question has been flagged
servermodulecustomupdateopenerprestart
4 Respostes
14539 Vistes
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
Descartar
Avatar
Sajad KK
Best Answer

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
Descartar
Avatar
Roel Adriaans
Best Answer

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
Descartar
Avatar
CHARPENTIER
Autor Best Answer

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
Descartar
Avatar
Jagdish Panchal
Best Answer

Hi,

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

Restart server then upgrade your module

Thanks

 

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

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

Registrar-se
Related Posts Respostes Vistes Activitat
restart openerp 7 server on Xubuntu
service update openerp restart
Avatar
0
de març 15
6059
Openerp server does not stop properly (SOLVED) Solved
server openerp stop restart
Avatar
Avatar
Avatar
Avatar
4
de gen. 24
17186
openerp update Apps
module apps update openerp
Avatar
Avatar
2
de març 15
5543
manifest file not updated after restart the server
server update summary manifest restart
Avatar
Avatar
1
d’ag. 23
7389
Custom Module Not Populating in Apps List Solved
module custom
Avatar
Avatar
4
d’oct. 20
9941
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة 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 és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

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