Installing from the source code

Sooner or later, your server will need upgrades and patches. A version control repository can be of great help when the time comes. We use git to get our code from a repository, just like we did to install the development environment.

Next, we will impersonate the odoo user and download the code into its home directory:

$ sudo su odoo$ git clone https://github.com/odoo/odoo.git /home/odoo/odoo-11.0 \-b 11.0 --depth=1

The -b option ensures that we get the right branch, and the --depth=1 option ignores the change history and retrieves only the latest code revision, making the download much smaller and faster.

Git will surely be an invaluable tool to manage the versions of your Odoo deployments. We just scratched ...

Get Odoo 11 Development Essentials - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.