Odoo
Hizbul Bahar
Lead Software Engineer, Syncoria
What is odoo?
❏ All-in-one management software.
❏ Developers: Odoo S.A., Community
❏ Original authors: Fabien Pinckaers
❏ Stable Release 11.0 / October 4, 2017
❏ OS: Linux, Unix-like, OS X, Windows, iOS, Android
❏ Written in: Python3, JS, XML
❏ Database: Postgresql
Why Odoo?
❏ Cost Effective
❏ All-in-one Management Software
❏ Open Source
❏ Implementation & Integration
Learning Curve
❏ Functional
❏ Technical
Odoo Installation
● Download as zip or clone Odoo 11 community version from github: https://github.com/odoo/odoo
● Open terminal and create Development/Projects/Python directories in your home directory and
extract odoo 11 into Python directory and rename it odoo-dev.
● Go into odoo directory, $ cd Development/Projects/Python/odoo-dev and create vritualenv for the
project $ virtualenv venv -p python3 . Then activate this environment for this project: $ source
venv/bin/activate
● Now install all of the dependencies using: (venv)$ pip install -r requirements.txt. This command will
install all of the project dependencies.
● Open odoo.conf from odoo/debian/odoo.conf and put following info:
db_host = 127.0.0.1
db_port = 5432
db_user = postgres
db_password = root
● It is time to run your odoo project. (venv)$ ./odoo-bin -c debian/odoo.conf
Module Development
Directory Structure
About Manifest File
Model
Views
❏ Form View
❏ Tree/List View
❏ Search View
❏ Kanban View
❏ Calendar View
Common ORM methods
❏ Search
self.search([('is_company', '=', True), ('customer', '=', True)])
res.partner(7, 18, 12, 14, 17, 19, 8, 31, 26, 16, 13, 20, 30, 22, 29, 15, 23, 28,
74)
❏ Create
>>> self.create({'name': "New Name"})
res.partner(78)
❏ Browse
self.browse([7, 18, 12])
res.partner(7, 18, 12)
Common ORM methods
❏ Write
self.write({'name': "Newer Name"})
Live Project
❏ http://playground.ergov.com/
Any Question?
Thanks

Odoo presentation

  • 1.
  • 2.
    What is odoo? ❏All-in-one management software. ❏ Developers: Odoo S.A., Community ❏ Original authors: Fabien Pinckaers ❏ Stable Release 11.0 / October 4, 2017 ❏ OS: Linux, Unix-like, OS X, Windows, iOS, Android ❏ Written in: Python3, JS, XML ❏ Database: Postgresql
  • 3.
    Why Odoo? ❏ CostEffective ❏ All-in-one Management Software ❏ Open Source ❏ Implementation & Integration
  • 4.
  • 5.
    Odoo Installation ● Downloadas zip or clone Odoo 11 community version from github: https://github.com/odoo/odoo ● Open terminal and create Development/Projects/Python directories in your home directory and extract odoo 11 into Python directory and rename it odoo-dev. ● Go into odoo directory, $ cd Development/Projects/Python/odoo-dev and create vritualenv for the project $ virtualenv venv -p python3 . Then activate this environment for this project: $ source venv/bin/activate ● Now install all of the dependencies using: (venv)$ pip install -r requirements.txt. This command will install all of the project dependencies. ● Open odoo.conf from odoo/debian/odoo.conf and put following info: db_host = 127.0.0.1 db_port = 5432 db_user = postgres db_password = root ● It is time to run your odoo project. (venv)$ ./odoo-bin -c debian/odoo.conf
  • 6.
  • 7.
  • 8.
  • 9.
    Views ❏ Form View ❏Tree/List View ❏ Search View ❏ Kanban View ❏ Calendar View
  • 10.
    Common ORM methods ❏Search self.search([('is_company', '=', True), ('customer', '=', True)]) res.partner(7, 18, 12, 14, 17, 19, 8, 31, 26, 16, 13, 20, 30, 22, 29, 15, 23, 28, 74) ❏ Create >>> self.create({'name': "New Name"}) res.partner(78) ❏ Browse self.browse([7, 18, 12]) res.partner(7, 18, 12)
  • 11.
    Common ORM methods ❏Write self.write({'name': "Newer Name"})
  • 12.
  • 13.
  • 14.