跳至内容
菜单
此问题已终结
3 回复
17933 查看

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.

形象
丢弃
最佳答案

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.

形象
丢弃
最佳答案

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

相关帖文 回复 查看 活动
1
6月 24
10836
1
3月 15
6764
2
3月 15
7155
2
5月 24
5863
1
5月 24
1970