Odoo Help


What Are The Steps To Update A Custom Module?

Alex Gallien
on 6/25/14, 8:04 PM 4,801 views

I have been noticing inconsistant behavior when trying to update my custom modules. I have been restarting the OpenERP server each time (/etc/init.d/openerp restart) and selecting upgrade from Settings: Installed Modules: Module Name, but some of my changes aren't going through. I have even tried installing the module on a differnt database, but it still had the original configuration. These are mostly changes to the .py file, sometimes to the .xml. Any idea what is going on here? Am I missing something? I definitely have made and seen changes like this before, I don't know what is going on here. Thanks!

Thanks Ray. The phrasing 'Upgrade' was confusing to me. Could you elaborate on the second bit - about restarting the duplicate? Is there any way to check which one you are restarting? I am still getting inconsistent update results. For example, I added one more choice to a drop down menu (just a single python line change), restarted my server via '/etc/init.d/openerp restart', and clicked 'Upgrade' on my module, but the new menu item still isn't showing up.

Alex Gallien
on 6/26/14, 4:57 PM

Ray Carnes

--Ray Carnes--
| 9 7 9
Keyport, United States
--Ray Carnes--

Senior ERP Analyst

OpenERP 6.1, 7.0; Odoo 8.0, 9.0, 10.0 and 11.0.

Completed Odoo Functional and Technical Training.

Functional Areas:

  • CRM/Sales

  • Inventory

  • Manufacturing

  • Accounting

  • Purchasing

Major Skills:

  • Business Process Reengineering

  • Efficiency Consulting

  • User Needs and GAP Analysis;

  • Functional and Technical Design;

  • Prototyping and Proof of Concepts;

  • Requirements Specifications;

  • Agile Implementation;

  • Data Migration;

  • Configuration & Customization (UI and code);

  • Integration - Odoo and non Odoo Applications and Services;

  • Training and Knowledge Transfer;

  • Go Live Support;

  • Helpdesk;

  • Version Upgrades and Migration.

  • Accounting Expert.

I have over 20 years of experience empowering and enabling users with enterprise information systems that make a real and measurable difference in their ability to proactively manage their businesses and organizations. 

I am a skilled Communicator and I only take the serious things seriously!

Ray Carnes
On 6/25/14, 10:28 PM

Python changes are seen by the server once rebooted, not before (this is just how Python works).  The parts that define objects (models) will not be 'applied' unless you update the module, but other changes don't require you to update the module.  BUT - the best practice is to update the module every time you make Python changes.

XML changes are seen as soon as they are saved (no restart required), but never loaded until you update the module. The best practice is to update the module every time there is a change to an XML file.

In Summary: the best practice:  Restart the server and update the module every time you change either type of file.

Also - check that you haven't started the server twice, as the restart could be restarting the duplicate, not the one you are using to update the module.

By update the module, do you mean selecting 'Update Modules List' or going to the module in question and clicking 'Upgrade'?

Alex Gallien
on 6/26/14, 2:00 PM

The second. Updating Modules List simply scans the addons folders for modules that have been copied there since the last time that command was run and adds the to the list of modules that can be installed.

Ray Carnes
on 6/26/14, 2:02 PM

It definitely was the duplicate server error. I did a ps command and was able to find and kill the other openerp server. Do you have any other resources on why this happens? I couldn't find any information about it, and it had been causing lots of trouble.

Alex Gallien
on 6/26/14, 4:59 PM

Is there some code that automates this? I.e. a script that checks if files are changed and upgrades/restarts when needed?

Kasper Souren
on 9/16/14, 9:19 AM

I have created a command-line alias 'bounce' which restarts the server when needed. I think it is overkill to have a script that monitors every python file in the system (there are over 1,000). You and your developers know when you make a source code change, since you are logged into the system when you do it, so the last step is to type 'bounce' with my method.

Ray Carnes
on 9/17/14, 1:51 PM



| 6 6 8


On 6/26/14, 3:59 AM

changes in:

  • XML -> update module
  • Python -> restart server
  • JS,CSS -> reload webpage

Ludo - 21South

--Ludo - 21South--
| 2 2 5
Zwijndrecht, Netherlands
--Ludo - 21South--


Ludo - 21South
On 6/26/14, 3:44 AM

you may try to update via command line like "./openerp-server -u module_name -d db_name"

[EDIT] - Removed typo

can you specify what or where this file is? "./operp-server.py"

on 6/26/14, 7:30 AM

Ah, seems I made a type. It is the file openerp-server and it is the main executable when running OpenERP under linux. It should be in the root directory of the OpenERP installation. (normally somewhere under /opt/openerp ). The linux deamon points to this file when you start it.

21south, Ludo - 21South
on 6/26/14, 9:29 AM

In my (Linux) installation, it can be found at /usr/bin/

Alex Gallien
on 6/26/14, 2:00 PM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

3 follower(s)


Asked: 6/25/14, 8:04 PM
Seen: 4801 times
Last updated: 2/2/18, 3:02 AM