Book Image

Odoo Development Cookbook

By : Holger Brunn, Alexandre Fayolle, Daniel Reis
Book Image

Odoo Development Cookbook

By: Holger Brunn, Alexandre Fayolle, Daniel Reis

Overview of this book

Odoo is a full-featured open source ERP with a focus on extensibility. The flexibility and sustainability of open source is also a key selling point of Odoo. It is built on a powerful framework for rapid application development, both for back-end applications and front-end websites. The book starts by covering Odoo installation and administration, and provides a gentle introduction to application development. It then dives deep into several of the areas that an experienced developer will need to use. You’ll learn implement business logic, adapt the UI, and extend existing features.
Table of Contents (23 chapters)
Odoo Development Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Inspecting built-in workflows


Odoo includes a built in workflow engine used to manage business document flows and interaction. However, this engine has been gradually replaced by Python business logic and automated actions. As an example of this, one of the most important workflows used to be the one linking sales orders, invoices, and deliveries, but since version 9.0, it has been removed.

But, there are a few workflows still used by some apps, so there may be cases where a developer will need to work with them. So it's still relevant to have some basic understanding of how they work.

The Marketing Campaigns app still uses a simple workflow, and we will use it to provide this brief overview on them.

Getting ready

We will need an Odoo instance with demo data and the Marketing Campaign's addon module installed (not that it's not an app). We also need to have the Developer Mode activated. If it's not, activate it in the Odoo About dialog.

How to do it...

To inspect the workflow defined on a model...