Skip to Content
Menu
This question has been flagged
2 Replies
10609 Views

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?

Avatar
Discard
Best Answer

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.

 

Avatar
Discard

Good answer, I would like to add that always can be done offline then send after the database to server in production which is already upgraded to new version too.

There's post talking about branch here: https://www.odoo.com/forum/help-1/question/odoo-v8-vs-saas-6-vs-ocb-v8-whats-the-difference-58606

Best Answer

if you are using gihtub repository, saas-5, master or 8.0 are all seperate braches.

git checkout 8.0

will switch the source files to 8.0 version. 

thats it.

to merge latest additions to your local copy use

git pull

 

 

 

Avatar
Discard

I think this question is more related to upgrade the database not only about code upgrade.

Related Posts Replies Views Activity
2
Mar 15
7173
2
May 24
6392
0
Apr 21
4152
1
Jan 20
6060
2
Jul 17
7386