This question has been flagged
4 Replies
3832 Views

Hi i recently had a bug in the community version of odoo9 which was installed from the official site of odoo.

there is a bug fix from the git hub, i do not know how to update odoo9 from it, kindly give me some guidelines as to how i can proceed on this.

Thanks a google in advance    "please help me out"

Avatar
Discard
Best Answer

Hi Arun,

The easiest way is to update your whole Odoo environment at once. Open up a terminal and navigate to your Odoo server:

cd /odoo/odoo-server/

 Fetch the new code from Github, notice that 9.0 is for V9, 8.0 for V8 etc.

sudo git fetch origin 9.0

 Now apply these updates to your Odoo. Do notice that a git reset --hard will overwrite all files, so only use this is you didn't add code in default Odoo modules (which is against the rules anyways):

sudo git reset --hard origin/9.0

The new code has now been added to your Odoo, now restart your Odoo service and update all your modules to reload all the new code in your Odoo. Something along the lines of:

./odoo.py --xmlrpc-port=8080 -u all

You now have a fully updated Odoo.


Yenthe

Avatar
Discard
Author

Yenthe thank you so much for taking time and replying. do i have to install git for this, and would it be good to do so in the client environment? how is it for windows? anyidea ?

@Arun you're welcome, happy to help. I'm not sure about Windows, you should really consider installing your Odoo on an Ubuntu. A lot of the installations / implementations are done on Ubuntu and they behave a bit more stable on Ubuntu too. By default you can use the git commands on Linux.

Author

@yenthe if thats the case i should be installing git in ubuntu?

@Arun just use my automatic Odoo installation script (found at https://github.com/Yenthe666/InstallScript) if you ever want to install an Odoo, everything is setup fine by itself then. You should have acces to git by default on Ubuntu too. On a sidenote: why the sudden removal of my accepted answer? I'm assuming you've accepted it initially?

Author

@yenthe what ur suggesting me is with the repository it self but i want the update to happen with the officially installed file of odoo which happens to be from this url "https://www.odoo.com/documentation/9.0/setup/install.html" installing odoo from git will have access to git, agreed but the officially installed one does not have the access to the git... please help me out on this yenthe...

@Arun if I understand this correctly you have a Windows environment with the package installer? This will make things a lot more complicated since barely anybody uses this and there is no good information about this. Is that packaged installer an automatic windows install program? In this case what you could do is download the latest code from Github and replace the files wherever they are installed on your Windows with the newest files. I haven't done this myself yet, so try this on a demo environment for sure!

Author

@yenthe there is no directory named odoo-server in the installed one

@Arun not when you install it on Windows with the package. It will be named a little different. You should be in this directory on your Windows: https://github.com/odoo/odoo (you should see the file odoo.py for example)

Author

@yenthe with respect to the previous comment of yours, thats what i thought too, initially thought there might be a possibility to do an update from the patch made from git by converting it to some batch file etc... but i dont find any solution to it.... looks good to have an update than having to uninstall and reinstall the entire thing... i guess thats the only solution now :-(

Author

i mean replace the files that are installed on windows with the newest files.....

I don't really think you can easily do git updates on Windows, especially not when you used that installer. I'm not very experience with the Windows setup, since Linux is much better and more used. I'd suggest you to move to Linux for future upgrading and development, it'll be less hassle.