تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
10616 أدوات العرض

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.

 

الصورة الرمزية
إهمال

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

أفضل إجابة

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.

المنشورات ذات الصلة الردود أدوات العرض النشاط
2
مارس 15
7186
2
مايو 24
6402
0
أبريل 21
4158
1
يناير 20
6069
2
يوليو 17
7396