In this article, we will learn how to setup odoo in our local system and make our first odoo application.
Note: in this tutorial we will discuss on odoo 16.
1 .go to official github repo ( github.com/odoo) and then clone repo on your local ystem as below
git clone --depth 1 --branch 16.0 https://github.com/odoo/odoo.git
Let's break down the command:
git clone: This command is used to clone a repository.--depth 1: This option ensures that only the latest commit history is cloned, saving time and disk space.--branch 16.0: This specifies that you want to clone the 16.0 branch of the repository.https://github.com/odoo/odoo.git: This is the URL of the Odoo repository on GitHub.2.Then setup all you database configuration and other necessary setup to run the project
first you need to setup postgres database like
sudo su postgres
#to create user or role in postgresql
CREATE USER odoo16 WITH PASSWORD 'odoo16';
#if you want to create user/role as a superuser
CREATE USER odoo16 WITH PASSWORD 'odoo16' SUPERUSER;
#create database in postgresql
CREATE DATABASE odoo16;
#grant priviliges for user to particular database
GRANT ALL PRIVILEGES ON DATABASE odoo16 TO odoo16;
#odoo.conf
db_host=localhost
db_user=odoo16
db_password=odoo16
db_port=5432
addons_path=/home/dev/odoo16/odoo/addons (absolute path)
http_port=8069
admin_passwd=admin
3.make virtual environment and install all dependency (which yopu can find in setup folder)
4.Then run the command to run the odoo on local system.
python odoo-bin -w odoo16 -r odoo16 --addons-path /home/user/odoo/addons,/home/user/odoo/custom_addons
# -w odoo16: Sets the database password to odoo16.
# -r odoo16: Sets the database user to odoo16
After that you can access odoo through url : localhost:8086 on any web browser. you can see interface like below

note: you can run odoo application in debugging mode directly through url like below (or you can change configuration of debuging through setting)
http://localhost:8069/?debug=assets
Enabling debug mode allows you to:
Debugging mode is useful for troubleshooting issues, inspecting server responses, and debugging custom code and modules in Odoo. Make sure to disable debug mode in production environments for security and performance reasons.
How to make new module in odoo 16
1. make a directory inside addons folder and name it as estate
A module must contain at least 2 files: the __manifest__.py file and a __init__.py file. write detail of your module in manifest.py file. if you want to set icon of your module then add icon.pnh image inside description directory as shown below. (note: name must be icon.png)
![]()
2.mention the path of your module on addon_path.
3.then open odoo on your browser, go to App section , click on update App List to update app, then search for the module that you just created. you will see their , estate as below.
make sure the estate module is installed, i.e. it must appear as “Installed” in the Apps list.(if you want ot activate module then click on activate button.)
Congratulation you have successfully created your first app (module) in odoo.
Amanda Martines 5 days ago
Exercitation photo booth stumptown tote bag Banksy, elit small batch freegan sed. Craft beer elit seitan exercitation, photo booth et 8-bit kale chips proident chillwave deep v laborum. Aliquip veniam delectus, Marfa eiusmod Pinterest in do umami readymade swag. Selfies iPhone Kickstarter, drinking vinegar jean.
ReplyBaltej Singh 5 days ago
Drinking vinegar stumptown yr pop-up artisan sunt. Deep v cliche lomo biodiesel Neutra selfies. Shorts fixie consequat flexitarian four loko tempor duis single-origin coffee. Banksy, elit small.
ReplyMarie Johnson 5 days ago
Kickstarter seitan retro. Drinking vinegar stumptown yr pop-up artisan sunt. Deep v cliche lomo biodiesel Neutra selfies. Shorts fixie consequat flexitarian four loko tempor duis single-origin coffee. Banksy, elit small.
Reply