Book Image

Odoo 12 Development Essentials - Fourth Edition

By : Daniel Reis
Book Image

Odoo 12 Development Essentials - Fourth Edition

By: Daniel Reis

Overview of this book

Odoo is one of the best platforms for open source ERP and CRM. Its latest version, Odoo 12, brings with it new features and updates in Python packages to develop more customizable applications with additional cloud capabilities. The book begins by covering the development essentials for building business applications. You will start your journey by learning how to install and configure Odoo, and then transition from having no specific knowledge of Odoo to being ready for application development. You will develop your first Odoo application and understand topics such as models and views. Odoo 12 Development Essentials will also guide you in using server APIs to add business logic, helping you lay a solid foundation for advanced topics. As you progress through the chapters, you will be equipped to build and customize your applications and explore the new features in Odoo 12, such as cloud integration, to scale your business applications. You will get insights into building business logic and integrating various APIs into your application. By the end of the book, you will be able to build a business application from scratch by using the latest version of Odoo.
Table of Contents (22 chapters)
Title Page
Packt Upsell
Foreword
Contributors
Preface
Index

Chapter 1. Quick Start Using the Developer Mode

Odoo provides a rapid application development framework that's particularly suited to building business applications. This type of application is usually concerned with keeping business records, centered around create, read, update, and delete (CRUD) operations. Not only does Odoo makes it easy to build this type of application, it also provides rich components to create compelling user interfaces, such as kanban, calendar, and graph views.

This book is organized into five parts. We start by providing an overview of the Odoo framework, setting up a development environment, and building our first Odoo application. Being generally familiar with the main Odoo components, we will dive, in more detail, into each of the three main application layers—models, business logic, and views. Finally, our application will need to be deployed to a production environment and maintained. That's what is covered in the final chapter of the book.

In this chapter, we will quickly get into the action, exploring the Odoo internals directly from the web user interface, even before having set up our local development environment.

In this chapter, we will do the following:

  • Introduce the learning project used in this chapter, the to-do application.
  • Understand the Odoo architecture, editions, and releases, to have the essential context and insights relevant to working with Odoo.
  • Prepare a basic Odoo work environment, so that we can work on an example project and learn by experience. Several options are proposed:
    • Using Odoo online
    • Using the Windows all-in-one installer
    • Using Docker
  • Enable the developer mode, to make available in the user interface the tools we will be using.
  • Modify an existing model to add a field, a quick introduction to a common customization.
  • Create a custom data model, to add new data structures for your applications.
  • Configure access security, to allow specific user groups to access the application features.
  • Create menu items, to make the new data model available in the user interface.
  • Create list, form, and search views, the basic building blocks for the user interface.

We will learn by example, and the next section will introduce the project we will use for this.