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

Using automated actions on event conditions


Business applications provide systems with records for business operations, but are also expected to support dynamic business rules that are specific to the organization use cases.

Carving these rules into custom addon modules can be inflexible and out of the reach of functional users. Automated actions triggered by event conditions can bridge this gap and provide a powerful tool to automate or enforce the organization procedures.

As an example, we will enforce a validation on Project tasks such that only the Project Manager can change Tasks to the Done stage.

Getting ready

To follow this recipe, you will need to have the Project Management app already installed. 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 create an automated action with an event condition on tasks, follow these steps:

  1. In the Settings top menu, select the Technical | Automation | Automated Actions menu item,...