Odoo is an all-in-one management software that offers a range of business applications that form a complete suite of enterprise management applications targeting companies of all sizes. Odoo is an all-in-one business software including CRM, Website/e-Commerce, billing, accounting, manufacturing, warehouse- and project management, and inventory.
For installing Odoo in Ubuntu 16.04 LTS, we need following requirements.
Ubuntu 16.04 LTS
You can download the Ubuntu server from there official page.Then install it with the additional tools you needed like openssh-server(used for ssh access)
Setting Up Server
We have to make the server more secure before we install anything like enabling the firewall in the ubuntu server.We can use UFW firewall for this purpose.
Installing Python and PostgreSQL
Ubuntu 16.04 comes with python 3.x as default but for odoo 10 we need Python 2.x. Following are the steps needed for configuring python.It is better to use a ssh client like PuTTY for further configuration.
Cloning Odoo and configuration
To install Odoo we can use the git repository of the Odoo 10 community version. Using a version control application like git. will let us stay up to date with the latest changes.We will be cloning it to the /opt/odoo directory. And will configure the Odoo run parameters also. After cloning Odoo we may need additional python packages to run Odoo properly, which are located in the paths /opt/odoo/doc/requirements.txt and /opt/odoo/requirements.txt
Simple configuration of the Odoo config file is as shown below. For getting the full list of config parameters, we can use the help flag with odoo-bin (odoo10) like
odoo-bin --save --config odoo.cfg --stop-after-init will save all the flags that we can use with Odoo to a file. If no configuration is supplied odoo will use its default parameters to run the application.
Setting Up New System User
Creating a new system user for handling the Odoo process because it is safe to run Odoo as non superuser.We will be installing the odoo in the /opt/odoo directory. You can install it in a different directory if you want. and make that directory as the home directory of the new user with group odoo. We will also create a log directory in the /var/log/odoo
Changing the ownership of the Odoo directories to the newly created user.
Installing Extra Dependencies
For Odoo to run smoothly we need some extra application like nodejs for less css and wkhtmltopdf for pdf rendering.
Creating A Service For Odoo
To execute odoo as a service so it can be controlled easily, we have to create a service in systemd as follows. Create a new file at /lib/systemd/system/odoo-server.service.Edit the file and add following.
For staring the service and checking the status
Once all these done we can check the fully running Odoo in the server ip http://[your_domain_or_IP_address]/:8069.Here the 8069 is the default xmlrpc port.