Creating a wizard
Suppose our To-Do app users regularly need to set the deadlines and person responsible for a large number of tasks. They could use an assistant to help 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 for them.
Wizards are forms that get input from users, then use it for further processing. They can be used for simple tasks, such as asking for a few parameters and running a report, or for complex data manipulations, such as the use case we just described. Other more complex cases can involve several chained forms, where finishing a form opens up the next one where we can proceed a step further into the process.
For our case, this is what the wizard will look like:
We will implement this feature in a new module, todo_wizard
.
We should start by creating the corresponding directory, and the todo_wizard/__manifest__.py
description, with the following code:
{ 'name': 'To-do Tasks Management Assistant...