Book Image

Odoo Development Essentials

Book Image

Odoo Development Essentials

Overview of this book

Table of Contents (17 chapters)
Odoo Development Essentials
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

To-do wizard


With the wizards, we can ask users to input information to be used in some processes. Suppose our to-do app users regularly need to set deadlines and the responsible persons for a large number of tasks. We could use an assistant to help them with this. It should allow them to pick the tasks to be updated and then choose the deadline date and/or the responsible user to set on them.

We will start by creating a new module for this feature: todo_wizard. Our module will have a Python file and an XML file, so the todo_wizard/__openerp__.py description will be as shown in the following code:

{ 'name': 'To-do Tasks Management Assistant',
  'description': 'Mass edit your To-Do backlog.',
  'author': 'Daniel Reis',
  'depends': ['todo_user'],
  'data': ['todo_wizard_view.xml'], }

The todo_wizard/__init__.py file to load our code is just one line, as follows:

from . import todo_wizard_model

Next, we need to describe the data model supporting our wizard.

Wizard model

A wizard displays a form view...