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 3. Your First Odoo Application

Developing in Odoo usually means creating our own modules. In this chapter, we will create our first Odoo application and learn the steps needed to make it available to Odoo and install it.

We will get started by learning the basics of the development workflow—we'll create and install a new module, and update it to apply the changes we make throughout the development iterations.

Odoo follows a Model-View-Controller (MVC)-like architecture, and we will go through the different layers to implement a library application.

In this chapter, we will cover the following topics:

  • Creating a new module, where the features will be implemented
  • Adding an app's characteristic features, the top menu item, and security groups
  • Adding automated tests that will initially fail, but should run with success before we finish
  • Implementing the model layer, defining the app's data structures, and corresponding access security definitions
  • Implementing the backend view layer, describing...