Odoo Help


What is the right way to upgrade odoo-server from github (e.g. from odoo V8 saas-5 to master)

George Rodopoulos
on 7/15/14, 6:40 AM 6,173 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?


Leonardo Donelli

--Leonardo Donelli--
| 5 4 8
Roma, Italy
--Leonardo Donelli--

Physics student and part-time developer.

Leonardo Donelli
On 7/15/14, 11:35 AM

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.


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.

Rui Andrada
on 9/12/14, 2:38 PM

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

Rui Andrada
on 9/12/14, 2:43 PM

Ahmet Altinisik

--Ahmet Altinisik--
| 8 7 10
ANKARA, Turkey
--Ahmet Altinisik--


Ahmet Altinisik
On 7/24/14, 1:50 AM

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




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

Rui Andrada
on 9/12/14, 2:41 PM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 7/15/14, 6:40 AM
Seen: 6173 times
Last updated: 3/16/15, 8:10 AM