This question has been flagged
3 Replies
14930 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

Avatar
Discard
Best Answer

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

Avatar
Discard
Best Answer

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.

Avatar
Discard
Best Answer

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.

Avatar
Discard

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).