Wizards - Defining and
Launching in Odoo 16
● This slide explains about the Wizards: Defining and Launching in Odoo.
Wizards describe interactive sessions with the user(or dialog boxes)
through dynamic forms.
● A wizard is simply a model that extends the class Transient Model
instead of Model. Wizard records are not meant to be persistent;they
are automatically deleted from the database after a certain time. This is
why they are called Transient.
● Wizard models do not require explicit access rights: users have all
permissions on wizard records.
● Wizard records may refer to regular records or wizard records through
many2one fields, but regular records cannot refer to wizard records
through a many2one field.
Transient Models:
● It’s based on models. TransientModel class. Data stored in
the database is temporary in this class. It periodically clears
the data from the database table.
● Data in the wizard requires only temporary storage so Odoo
uses a transient model, where data is stored temporarily.
Characteristics of the transient model:
● Records in the wizard require only temporary storage, so they are
deleted after some time from the database.
● Users have all permissions on wizard records, they don’t require
explicit access rights.
● Records in the wizard can refer through many2one fields or to
regular records, but regular records cannot refer through
many2one fields or to wizard records.
Define a wizard
Define the view
Define an action
● res_model :Model of the wizard that has to appear.
● view_id: xml view of the wizard
● view_mode : wizard appears in the form view so it is
form.
UI of the wizard
Check our company website
for related blogs and Odoo book.
Check our YouTube channel for
functional and technical videos in Odoo.

Wizards - Defining and Launching in Odoo 16

  • 1.
    Wizards - Definingand Launching in Odoo 16
  • 2.
    ● This slideexplains about the Wizards: Defining and Launching in Odoo. Wizards describe interactive sessions with the user(or dialog boxes) through dynamic forms. ● A wizard is simply a model that extends the class Transient Model instead of Model. Wizard records are not meant to be persistent;they are automatically deleted from the database after a certain time. This is why they are called Transient. ● Wizard models do not require explicit access rights: users have all permissions on wizard records. ● Wizard records may refer to regular records or wizard records through many2one fields, but regular records cannot refer to wizard records through a many2one field.
  • 3.
    Transient Models: ● It’sbased on models. TransientModel class. Data stored in the database is temporary in this class. It periodically clears the data from the database table. ● Data in the wizard requires only temporary storage so Odoo uses a transient model, where data is stored temporarily.
  • 4.
    Characteristics of thetransient model: ● Records in the wizard require only temporary storage, so they are deleted after some time from the database. ● Users have all permissions on wizard records, they don’t require explicit access rights. ● Records in the wizard can refer through many2one fields or to regular records, but regular records cannot refer through many2one fields or to wizard records.
  • 5.
  • 6.
  • 7.
  • 8.
    ● res_model :Modelof the wizard that has to appear. ● view_id: xml view of the wizard ● view_mode : wizard appears in the form view so it is form.
  • 9.
    UI of thewizard
  • 10.
    Check our companywebsite for related blogs and Odoo book. Check our YouTube channel for functional and technical videos in Odoo.