On an ubuntu server I have Odoo V8 saas-5 installed from github. Now I'd like to update to master but I already have some some databases working on this server.
Normally I would copy the 'odoo-server' directory for backup purposes and then replace everything in it with the updated source code. But, is there anything I have to consider when it comes to the database? All the databases were created with saas-5.
What is the best practice to update?
First of all you may not want to upgrade to master: it is now the development version, future version 9. If you want the "latest and greatest" version 8.0 branch, a new branch 8.0 has recently been created.
If you use the GitHub repository and don't have custom code, there is no need to copy and make a backup of the odoo directory: all the code in the repository is versioned, you can jump to any version and even to any revision/commit using git commands; or you can download the odoo code at any revision from github. Conversely, a backup of the database is, as always, essential.
Regarding the upgrade, the upgrade between different versions usually needs some work to be done to port the data in the database to the new data scheme in the new version. I don't know if this is the case for the switch from saas-5 to 8.0 (or master), you could try (after making sure you have a working db backup!).
All you have to do to upgrade your local clone of odoo is git pull (assuming you have the remote correctly configured) which updates the source code, and relaunch odoo with -u all, which updates all the modules.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 7/15/14, 6:40 AM|
|Seen: 5367 times|
|Last updated: 3/16/15, 8:10 AM|