Transferred from: Http://vivianyw.blog.163.com/blog/static/13454742220142114422130/?latestBlog
OpenERP code upgrade needs to upgrade the data, or just replace the purchase, you will encounter a lot of unexpected problems. Here is a record of the process of the upgrade operation (here is a manual source installation based on the change-in instructions:
1. You need to stop openerp services, depending on the specific startup script at the time of installation may be:
Sudo/etc/init.d/openerp stop
Or
Sudo/etc/init.d/openerp-server stop
2. Replace the code, first back up the existing code, here is simply to modify the directory name
sudo mv/opt/openerp/server/opt/openerp/server.old
Install new code to/opt/openerp/server, the specific method is not repeated here, please refer to the "Ubuntu 12 server on the source installation OpenERP 8.0" The 6th step of the instructions, complete and then go to the next step.
3. Updating the database
First you need to use the OpenERP user's shell,
sudo su-openerp-s/bin/bash
Update the database under OPENERP user shell
/opt/openerp/server/openerp-server-d Dbname-u All
The dbname is the name of the database you need to update, and if you have multiple databases, you need to execute the above command for each database.
This time may be longer, need patience and so on.
If you want to confirm that the above command is executing, use the following command to see if the user process is executing:
Top-u Opene
Wait until the "... werkzeug:127.0.0.1 ..." appears. When the upgrade is complete, press CTRL-C to exit the upgrade. Exit the OpenERP user shell.
4. After completing the database update, restart the Open
Sudo/etc/init.d/openerp-server start
Web Client connection OE, complete the upgrade!