Book description
Become a proficient Odoo developer and increase your productivity while building Odoo business applications
Key Features
- Set up the Odoo development environment and learn how to test and debug your code
- Use the ORM framework to work with data and implement business logic supporting business rules
- Design user interfaces, web pages, and business reports using the Odoo framework's web components
Book Description
Odoo is fast becoming the reference open source platform for business applications thanks to the fact that it provides the infrastructure needed for developers to deliver software solutions for any business process quickly. Odoo's layered module approach makes it particularly effective for combining and extending features. This updated fifth edition is a tutorial-style introduction to essential Odoo development topics.
The book starts by covering the development essentials for building business applications and takes you through Odoo installation and configuration, gradually transitioning from having no specific knowledge of Odoo to being ready for application development. You'll then learn how to develop your first Odoo application, while covering topics such as models and views. Later chapters will get you up to speed with using server APIs to add business logic, helping you lay a solid foundation for advanced topics. As you progress, you’ll get equipped to build and customize your applications and explore the new features available in Odoo 12 and beyond, such as in-memory ORM and computed writable fields. Finally, you’ll gain insights into building business logic and using the Odoo API to integrate with various applications.
By the end of this book, you’ll be able to build business apps from scratch using the latest version of Odoo.
What you will learn
- Install Odoo from source and organize the development environment
- Create your first Odoo app from scratch
- Understand the application components available in Odoo
- Structure the application’s data model using ORM features
- Use the ORM API to implement the business logic layer
- Design a graphical user interface (GUI) for the web client and website
- Use the Odoo External API to interface with external systems
- Deploy and maintain your application in production environments
Who this book is for
This book is for developers who want to learn Odoo application development and quickly become productive while creating business applications. Teachers, trainers, and Odoo team managers will also find the book useful for helping their students or trainees to learn Odoo development skills. Basic knowledge of Python programming is required to get started with the book
Table of contents
- Odoo 15 Development Essentials Fifth Edition
- Foreword
- Contributors
- About the author
- About the reviewers
- Preface
- Section 1: Introduction to Odoo Development
-
Chapter 1: Quick Start Using the Developer Mode
- Technical requirements
- Introducing the to-do list project
- Understanding basic Odoo concepts
- Using an Odoo SaaS trial database
- Installing Odoo in your workstation
- Enabling the developer tools
- Adding a custom field to a model
- Creating a new model
- Creating menu items and actions
- Configuring access control security
- Creating views
- Summary
- Chapter 2: Preparing the Development Environment
-
Chapter 3: Your First Odoo Application
- Technical requirements
- Overview of the library project
- Step 1 – Creating a new addon module
- Step 2 – Creating a new application
- Step 3 – Adding automated tests
- Step 4 – Implementing the model layer
- Step 5 – Setting up access security
- Step 6 – Implementing the backend view layer
- Step 7 – Implementing the business logic layer
- Step 8 – Implementing the website UI
- Quick reference
- Summary
- Chapter 4: Extending Modules
- Section 2: Models
- Chapter 5: Importing, Exporting, and Module Data
- Chapter 6: Models – Structuring the Application Data
- Section 3: Business Logic
- Chapter 7: Recordsets – Working with Model Data
-
Chapter 8: Business Logic – Supporting Business Processes
- Technical requirements
- Learning project – the book checkout module
- Exploring ways to trigger business logic
- Understanding ORM method decorators for recordsets
- Exploring useful data model patterns
- Using the ORM built-in methods
- Adding onchange user interface logic
- The message and activity features
- Creating a wizard
- Raising exceptions
- Writing unit tests
- Using log messages
- Learning about the available developer tools
- Summary
- Further reading
- Chapter 9: External API – Integrating with Other Systems
- Section 4: Views
-
Chapter 10: Backend Views – Designing the User Interface
- Technical requirements
- Adding menu items
- Understanding window actions
- Adding options to the Action context menu
- Exploring the form view structure
- Using fields
- Using buttons
- Adding dynamic view elements
- Exploring list views
- Exploring search views
- Understanding the other available view types
- Summary
- Further reading
-
Chapter 11: Kanban Views and Client-Side QWeb
- Technical requirements
- Introducing kanban boards
- Designing kanban views
- Designing kanban cards
-
Exploring the QWeb template language
- Understanding the QWeb JavaScript evaluation context
- Using t-out to render values
- Using t-set to assign values to variables
- Using t-attf- for string substitution of dynamic attributes
- Using t-att- for expressions calculated by dynamic attributes
- Using t-foreach for loops
- Using t-if to apply conditions
- Using t-call to call and reuse templates
- Using dictionaries and lists to dynamically set attributes
- Extending kanban views
- Adding CSS and JavaScript assets
- Summary
- Further reading
- Chapter 12: Creating Printable PDF Reports with Server-Side QWeb
- Chapter 13: Creating Web and Portal Frontend Features
- Section 5: Deployment and Maintenance
-
Chapter 14: Understanding Odoo Built-In Models
- Technical requirements
- Understanding the contacts data model
- Understanding the users and companies data model
- Understanding the security-related information repository
- Understanding the database structure models
- Understanding the UI-related information repository
- Understanding the configuration properties and company parameters
- Understanding messaging data models
- Summary
- Chapter 15: Deploying and Maintaining Production Instances
- Other Books You May Enjoy
Product information
- Title: Odoo 15 Development Essentials - Fifth Edition
- Author(s):
- Release date: February 2022
- Publisher(s): Packt Publishing
- ISBN: 9781800200067
You might also like
book
Odoo Development Cookbook - Fifth Edition
Take your Odoo development skills to the next level by following real-world examples to solve complex …
video
Microsoft Power BI - The Complete Masterclass [2023 EDITION]
Microsoft Power BI is an interactive data visualization software primarily focusing on business intelligence, part of …
book
Learning SQL, 3rd Edition
As data floods into your company, you need to put it to work right away—and SQL …
book
Quick Start Guide to Large Language Models: Strategies and Best Practices for Using ChatGPT and Other LLMs
The advancement of Large Language Models (LLMs) has revolutionized the field of Natural Language Processing in …