Odoo Help


how to update module in a production environment?

on 5/13/13, 6:32 PM 2,186 views

If you have your OpenERP system already working and you have to modify a module (let's say a module you've developped) how is the best way to do it in order to avoid:

  • troubles
  • too long waiting times without system

we do it with the /etc/init.d/openerp-server start -u NAMEMODULE

but some times things go wrong and me must to an total update -u all and this can be a very long process

Thanks in advance


you can update the module in settings > installed modules > and there is an upgrade button on the form view of the module.

Ray Carnes
On 5/13/13, 10:16 PM

The answers from @patrick and @patently give you the technical process.

What you may also want to consider is creating a virtual machine that exactly mimics your production environment, called Testing. Use the same operating system, version of PostgreSQL and OpenERP.

Use this environment to test any changes to the source: upgrades, patches, developed modules.

When you need to change anything on production, try it first on Testing.

This will help you

  1. Detect problems with the upgrade process
  2. Test for problems after the upgrade process
  3. Benchmark the time for the change

This way you can verify a problem free change to production, without interrupting users.

I have to support Ray in this. If you have a production server, always use a copy for testing. Using a VM for testing allows you to do the testing easily. And in case of a crash, just get back to the previous version of the VM (or reinstall it again).

on 5/14/13, 5:10 AM
On 5/13/13, 8:30 PM

What about the following steps:

  • upload the module

  • sudo service openerp restart

  • within openERP: Settings -> installed modules -> Click on your module and upgrade

The command to restart the service is needed for openERP to compile the code and know the differences.

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

1 follower(s)


Asked: 5/13/13, 6:32 PM
Seen: 2186 times
Last updated: 3/16/15, 8:10 AM