Se rendre au contenu
Menu
Cette question a été signalée
3 Réponses
18163 Vues

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
Ignorer
Meilleure réponse

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

Avatar
Ignorer
Meilleure réponse

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
Ignorer
Meilleure réponse

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
Ignorer

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

Publications associées Réponses Vues Activité
1
juin 24
11069
1
mars 15
7076
2
mars 15
7378
2
mai 24
6134
1
mai 24
2267