Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
10619 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit

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

Nejlepší odpověď

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
Zrušit

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

Related Posts Odpovědi Zobrazení Aktivita
2
bře 15
7188
2
kvě 24
6406
0
dub 21
4163
1
led 20
6076
2
čvc 17
7399