{"id":10193,"date":"2026-11-29T15:34:03","date_gmt":"2026-11-29T12:34:03","guid":{"rendered":"https:\/\/machinser.com\/?p=10193"},"modified":"2026-11-29T15:34:03","modified_gmt":"2026-11-29T12:34:03","slug":"creating-custom-wizards-in-odoo-20","status":"publish","type":"post","link":"https:\/\/machinser.com\/ar\/creating-custom-wizards-in-odoo-20\/","title":{"rendered":"One Click, Multiple Updates: Building Custom Wizards in Odoo 20"},"content":{"rendered":"<p data-pm-slice=\"1 3 []\">Have you ever needed to perform an operation on multiple records without creating a permanent database record? Or wanted to collect a few details from a user before executing a specific business operation?<\/p>\n<p>This is where custom wizards in Odoo 20 become useful. Wizards provide temporary forms that let users enter information, review selections and run an operation without navigating through multiple screens. They are commonly used for bulk updates, data imports, confirmation dialogs, report generation and other workflow operations.<\/p>\n<p>In this guide we build a practical wizard from scratch with Odoo 20\u2019s Python framework and XML views. Our example is a Bulk Course Fee Update Wizard: the user selects several training courses, enters a percentage increase and updates all their fees in one operation. The guide also uses Odoo 20\u2019s new security file, <code dir=\"ltr\">security\/ir.access.csv<\/code>, which replaces the older <code dir=\"ltr\">ir.model.access.csv<\/code>.<\/p>\n<h2>1. Understanding Wizards in Odoo<\/h2>\n<p>An Odoo wizard is a temporary model-based form used to collect information and perform an operation. Unlike a regular business model, a wizard is generally not meant to store permanent business data. Its records are stored temporarily and periodically cleaned up by Odoo. Odoo provides the <code dir=\"ltr\">models.TransientModel<\/code> class for this purpose.<\/p>\n<h3>Model types in Odoo<\/h3>\n<table>\n<tbody>\n<tr>\n<th>Model type<\/th>\n<th>Purpose<\/th>\n<\/tr>\n<tr>\n<td><code dir=\"ltr\">models.Model<\/code><\/td>\n<td>Stores regular, persistent business records<\/td>\n<\/tr>\n<tr>\n<td><code dir=\"ltr\">models.TransientModel<\/code><\/td>\n<td>Stores temporary records that are periodically cleaned<\/td>\n<\/tr>\n<tr>\n<td><code dir=\"ltr\">models.AbstractModel<\/code><\/td>\n<td>Defines reusable model functionality without creating a regular database table<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>For example, <code dir=\"ltr\">res.partner<\/code> stores customers and contacts, <code dir=\"ltr\">sale.order<\/code> stores sales orders, and a custom wizard model can temporarily store the percentage a user wants to apply to selected course fees.<\/p>\n<h3>How long does wizard data remain?<\/h3>\n<p>Transient records are not deleted immediately after a wizard closes. Odoo cleans them according to its configured limits. In Odoo 20, the cleanup runs at most once every five minutes. The default idle lifetime is commonly one hour, but the effective value is controlled by the <code dir=\"ltr\">transient_age_limit<\/code> configuration setting, which administrators can change. Do not use a wizard to store information that must be kept permanently.<\/p>\n<p>Important: a <code dir=\"ltr\">TransientModel<\/code> is subject to the same access control as any other model. In Odoo 20 that control is defined through the unified <code dir=\"ltr\">ir.access<\/code> model, which replaces the separate access control lists (<code dir=\"ltr\">ir.model.access<\/code>) and record rules (<code dir=\"ltr\">ir.rule<\/code>) of Odoo 19 and earlier. A custom wizard therefore needs an access rule of its own (see section 8). The older idea that users can only see their own transient records does not describe Odoo 20 behaviour.<\/p>\n<h2>2. Understanding the Example<\/h2>\n<p>Imagine a training institute that manages several courses in Odoo and wants to raise the fees of selected courses by a percentage. Updating every course one by one takes time. Instead, a wizard lets the user:<\/p>\n<ol start=\"1\" data-spread=\"false\">\n<li>Open the Training Courses list.<\/li>\n<li>Select multiple courses.<\/li>\n<li>Open the Actions control and choose Update Course Fees.<\/li>\n<li>Enter a percentage increase.<\/li>\n<li>Apply the update to all selected courses.<\/li>\n<\/ol>\n<p>In the screenshots used in this guide, the institute has three courses and raises each fee by 50%:<\/p>\n<table>\n<tbody>\n<tr>\n<th>Course<\/th>\n<th>Current fee<\/th>\n<th>Increase<\/th>\n<th>New fee<\/th>\n<\/tr>\n<tr>\n<td>AI training<\/td>\n<td>\u20b933,000.00<\/td>\n<td>50%<\/td>\n<td>\u20b949,500.00<\/td>\n<\/tr>\n<tr>\n<td>cloud computing<\/td>\n<td>\u20b938,500.00<\/td>\n<td>50%<\/td>\n<td>\u20b957,750.00<\/td>\n<\/tr>\n<tr>\n<td>Basic computer programming<\/td>\n<td>\u20b911,000.00<\/td>\n<td>50%<\/td>\n<td>\u20b916,500.00<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>The amounts are shown in rupees because the example database uses the Indian rupee as its company currency; the course fee follows the currency of each course. The same approach works for discounts, price adjustments, status changes and other bulk operations.<\/p>\n<h2>3. Creating the Custom Module<\/h2>\n<p>Create a custom module named <code dir=\"ltr\">training_management<\/code> with this structure:<\/p>\n<pre><code class=\"language-text\">training_management\/\r\n\u251c\u2500\u2500 __init__.py\r\n\u251c\u2500\u2500 __manifest__.py\r\n\u251c\u2500\u2500 models\/\r\n\u2502   \u251c\u2500\u2500 __init__.py\r\n\u2502   \u2514\u2500\u2500 training_course.py\r\n\u251c\u2500\u2500 wizard\/\r\n\u2502   \u251c\u2500\u2500 __init__.py\r\n\u2502   \u2514\u2500\u2500 course_fee_wizard.py\r\n\u251c\u2500\u2500 security\/\r\n\u2502   \u2514\u2500\u2500 ir.access.csv\r\n\u251c\u2500\u2500 views\/\r\n\u2502   \u251c\u2500\u2500 training_course_views.xml\r\n\u2502   \u2514\u2500\u2500 course_fee_wizard_views.xml\r\n\u2514\u2500\u2500 tests\/\r\n    \u251c\u2500\u2500 __init__.py\r\n    \u2514\u2500\u2500 test_course_fee_wizard.py<\/code><\/pre>\n<p>The module contains a regular model for courses, a transient model for the wizard, XML views for both, an access-rule file and a test for the wizard\u2019s main operation. Note the security file name: in Odoo 20 it is <code dir=\"ltr\">ir.access.csv<\/code>, not <code dir=\"ltr\">ir.model.access.csv<\/code>.<\/p>\n<h2>4. Creating the Training Course Model<\/h2>\n<p>First, create the regular model that stores course information in <code dir=\"ltr\">models\/training_course.py<\/code>:<\/p>\n<pre><code class=\"language-python\">from odoo import models, fields\r\n\r\n\r\nclass TrainingCourse(models.Model):\r\n    _name = 'training.course'\r\n    _description = 'Training Course'\r\n\r\n    name = fields.Char(\r\n        string='Course Name',\r\n        required=True\r\n    )\r\n\r\n    duration = fields.Integer(\r\n        string='Duration (Days)'\r\n    )\r\n\r\n    currency_id = fields.Many2one(\r\n        'res.currency',\r\n        string='Currency',\r\n        default=lambda self: self.env.company.currency_id,\r\n        required=True\r\n    )\r\n\r\n    fee = fields.Monetary(\r\n        string='Course Fee',\r\n        currency_field='currency_id',\r\n        required=True\r\n    )\r\n\r\n    description = fields.Text(\r\n        string='Description'\r\n    )\r\n\r\n    active = fields.Boolean(\r\n        default=True\r\n    )<\/code><\/pre>\n<p><code dir=\"ltr\">training.course<\/code> is a regular Odoo model: its records stay in the database until they are archived or deleted. We use <code dir=\"ltr\">fields.Monetary<\/code> for the fee instead of a plain Float because the value represents money. The <code dir=\"ltr\">currency_id<\/code> field tells Odoo which currency and rounding rules apply.<\/p>\n<p>Import the model in <code dir=\"ltr\">models\/__init__.py<\/code>:<\/p>\n<pre><code class=\"language-python\">from . import training_course<\/code><\/pre>\n<p>And import both packages in the module\u2019s root <code dir=\"ltr\">__init__.py<\/code>:<\/p>\n<pre><code class=\"language-python\">from . import models\r\nfrom . import wizard<\/code><\/pre>\n<h2>5. Creating the Training Course Views<\/h2>\n<p>Before configuring the manifest, create the course views that it will load. Create <code dir=\"ltr\">views\/training_course_views.xml<\/code>:<\/p>\n<pre><code class=\"language-xml\">&lt;odoo&gt;\r\n\r\n    &lt;record id=\"view_training_course_list\" model=\"ir.ui.view\"&gt;\r\n        &lt;field name=\"name\"&gt;training.course.list&lt;\/field&gt;\r\n        &lt;field name=\"model\"&gt;training.course&lt;\/field&gt;\r\n        &lt;field name=\"arch\" type=\"xml\"&gt;\r\n            &lt;list string=\"Training Courses\"&gt;\r\n                &lt;field name=\"name\"\/&gt;\r\n                &lt;field name=\"duration\"\/&gt;\r\n                &lt;field name=\"fee\"\/&gt;\r\n                &lt;field name=\"currency_id\" optional=\"hide\"\/&gt;\r\n                &lt;field name=\"active\"\/&gt;\r\n            &lt;\/list&gt;\r\n        &lt;\/field&gt;\r\n    &lt;\/record&gt;\r\n\r\n    &lt;record id=\"view_training_course_form\" model=\"ir.ui.view\"&gt;\r\n        &lt;field name=\"name\"&gt;training.course.form&lt;\/field&gt;\r\n        &lt;field name=\"model\"&gt;training.course&lt;\/field&gt;\r\n        &lt;field name=\"arch\" type=\"xml\"&gt;\r\n            &lt;form string=\"Training Course\"&gt;\r\n                &lt;sheet&gt;\r\n                    &lt;group&gt;\r\n                        &lt;field name=\"name\"\/&gt;\r\n                        &lt;field name=\"duration\"\/&gt;\r\n                        &lt;field name=\"fee\"\/&gt;\r\n                        &lt;field name=\"currency_id\"\/&gt;\r\n                        &lt;field name=\"active\"\/&gt;\r\n                    &lt;\/group&gt;\r\n\r\n                    &lt;group&gt;\r\n                        &lt;field name=\"description\"\/&gt;\r\n                    &lt;\/group&gt;\r\n                &lt;\/sheet&gt;\r\n            &lt;\/form&gt;\r\n        &lt;\/field&gt;\r\n    &lt;\/record&gt;\r\n\r\n    &lt;record id=\"action_training_courses\" model=\"ir.actions.act_window\"&gt;\r\n        &lt;field name=\"name\"&gt;Training Courses&lt;\/field&gt;\r\n        &lt;field name=\"res_model\"&gt;training.course&lt;\/field&gt;\r\n        &lt;field name=\"view_mode\"&gt;list,form&lt;\/field&gt;\r\n    &lt;\/record&gt;\r\n\r\n    &lt;menuitem\r\n        id=\"menu_training_root\"\r\n        name=\"Training Management\"\r\n        sequence=\"10\"\r\n    \/&gt;\r\n\r\n    &lt;menuitem\r\n        id=\"menu_training_courses\"\r\n        name=\"Training Courses\"\r\n        parent=\"menu_training_root\"\r\n        action=\"action_training_courses\"\r\n        sequence=\"10\"\r\n    \/&gt;\r\n\r\n&lt;\/odoo&gt;<\/code><\/pre>\n<p>This creates the list and form views and adds the menu. Once the module is installed and a few courses are created, Training Management \u2023 Training Courses looks like Figure 1: the list shows each course\u2019s name, duration, fee and active status, with the currency column hidden by default. The checkboxes in front of each row let users select several courses before opening the wizard.<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter wp-image-10196 size-large\" src=\"https:\/\/machinser.com\/wp-content\/uploads\/2026\/11\/1-3-e1795955009191-1024x221.png\" alt=\"\" width=\"1024\" height=\"221\" srcset=\"https:\/\/machinser.com\/wp-content\/uploads\/2026\/11\/1-3-e1795955009191-1024x221.png 1024w, https:\/\/machinser.com\/wp-content\/uploads\/2026\/11\/1-3-e1795955009191-300x65.png 300w, https:\/\/machinser.com\/wp-content\/uploads\/2026\/11\/1-3-e1795955009191-768x166.png 768w, https:\/\/machinser.com\/wp-content\/uploads\/2026\/11\/1-3-e1795955009191-1536x332.png 1536w, https:\/\/machinser.com\/wp-content\/uploads\/2026\/11\/1-3-e1795955009191-18x4.png 18w, https:\/\/machinser.com\/wp-content\/uploads\/2026\/11\/1-3-e1795955009191.png 1806w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/>Figure 1: The Training Courses list under Training Management, showing three courses with their duration, fee and Active status.<\/p>\n<h2>6. Creating the Wizard Using TransientModel<\/h2>\n<p>Now create the wizard itself in <code dir=\"ltr\">wizard\/course_fee_wizard.py<\/code>:<\/p>\n<pre><code class=\"language-python\">from odoo import models, fields, api, _\r\nfrom odoo.exceptions import UserError, ValidationError\r\n\r\n\r\nclass CourseFeeWizard(models.TransientModel):\r\n    _name = 'training.course.fee.wizard'\r\n    _description = 'Bulk Course Fee Update Wizard'\r\n\r\n    course_ids = fields.Many2many(\r\n        'training.course',\r\n        string='Selected Courses',\r\n        readonly=True\r\n    )\r\n\r\n    percentage = fields.Float(\r\n        string='Increase Percentage',\r\n        required=True,\r\n        default=10.0\r\n    )\r\n\r\n    @api.model\r\n    def default_get(self, fields_list):\r\n        res = super().default_get(fields_list)\r\n\r\n        if 'course_ids' in fields_list:\r\n            if self.env.context.get('active_model') == 'training.course':\r\n                active_ids = self.env.context.get('active_ids', [])\r\n                courses = self.env['training.course'].browse(\r\n                    active_ids\r\n                ).exists()\r\n\r\n                res['course_ids'] = [\r\n                    fields.Command.set(courses.ids)\r\n                ]\r\n\r\n        return res\r\n\r\n    @api.constrains('percentage')\r\n    def _check_percentage(self):\r\n        for wizard in self:\r\n            if wizard.percentage &lt;= 0:\r\n                raise ValidationError(\r\n                    _(\"The increase percentage must be greater than zero.\")\r\n                )\r\n\r\n    def action_apply(self):\r\n        self.ensure_one()\r\n\r\n        if not self.course_ids:\r\n            raise UserError(\r\n                _(\"Please select at least one training course.\")\r\n            )\r\n\r\n        if self.percentage &lt;= 0:\r\n            raise UserError(\r\n                _(\"The increase percentage must be greater than zero.\")\r\n            )\r\n\r\n        for course in self.course_ids:\r\n            new_fee = course.fee * (\r\n                1 + self.percentage \/ 100\r\n            )\r\n\r\n            course.write({\r\n                'fee': course.currency_id.round(new_fee)\r\n            })\r\n\r\n        return {\r\n            'type': 'ir.actions.client',\r\n            'tag': 'display_notification',\r\n            'params': {\r\n                'title': _('Success'),\r\n                'message': _(\r\n                    'Course fees have been updated successfully.'\r\n                ),\r\n                'type': 'success',\r\n                'sticky': False,\r\n                'next': {'type': 'ir.actions.act_window_close'},\r\n            },\r\n        }<\/code><\/pre>\n<p>Let us go through the important parts.<\/p>\n<h3>6.1 Inheriting TransientModel<\/h3>\n<p><code dir=\"ltr\">class CourseFeeWizard(models.TransientModel)<\/code> tells Odoo that the model is meant for temporary records. The wizard stores the user\u2019s input while the operation runs, and its records are cleaned up later by Odoo\u2019s transient-record vacuum.<\/p>\n<h3>6.2 Defining the fields<\/h3>\n<p><code dir=\"ltr\">course_ids<\/code> is a Many2many field that stores the selected courses; a Many2many is needed because one wizard works on several courses. <code dir=\"ltr\">percentage<\/code> collects the increase from the user. It is required and starts at 10, which the user can change (the screenshots later use 50).<\/p>\n<h3>6.3 Understanding default_get()<\/h3>\n<p>The wizard must be filled automatically with the courses selected in the list. Odoo calls <code dir=\"ltr\">default_get()<\/code> to compute default values for a new record. When an action is launched from a list view, Odoo puts information about the selection in the context:<\/p>\n<table>\n<tbody>\n<tr>\n<th>Context key<\/th>\n<th>Purpose<\/th>\n<\/tr>\n<tr>\n<td><code dir=\"ltr\">active_model<\/code><\/td>\n<td>Name of the model from which the action was launched<\/td>\n<\/tr>\n<tr>\n<td><code dir=\"ltr\">active_id<\/code><\/td>\n<td>ID of the active record, when applicable<\/td>\n<\/tr>\n<tr>\n<td><code dir=\"ltr\">active_ids<\/code><\/td>\n<td>IDs of the selected records<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>The code checks that the action was launched from <code dir=\"ltr\">training.course<\/code>, reads <code dir=\"ltr\">active_ids<\/code>, and uses <code dir=\"ltr\">browse(...).exists()<\/code> to build a recordset that skips records that no longer exist.<\/p>\n<p><code dir=\"ltr\">fields.Command.set(courses.ids)<\/code> then replaces the Many2many relation with those records. This is how a wizard can work on records selected in another view.<\/p>\n<h3>6.4 Validating the percentage<\/h3>\n<p>A wizard should validate user input before it changes business data. The <code dir=\"ltr\">@api.constrains<\/code> method rejects zero or negative percentages by raising a <code dir=\"ltr\">ValidationError<\/code>. The message is wrapped in <code dir=\"ltr\">_()<\/code> so Odoo can translate it for users.<\/p>\n<h3>6.5 Applying the fee update<\/h3>\n<p><code dir=\"ltr\">action_apply()<\/code> is the button method. <code dir=\"ltr\">ensure_one()<\/code> states that it works on a single wizard record. It checks the selection and the percentage again on the server (never rely only on the form), then calculates each new fee and rounds it with the course\u2019s currency (<code dir=\"ltr\">course.currency_id.round(...)<\/code>). Financial values should follow the currency\u2019s rounding rules instead of raw floating-point results; for example, 7000 \u00d7 1.1 in floating point is 7700.000000000001.<\/p>\n<p>Finally the method returns a <code dir=\"ltr\">display_notification<\/code> client action. The <code dir=\"ltr\">next<\/code> entry in <code dir=\"ltr\">params<\/code> is important: it runs <code dir=\"ltr\">ir.actions.act_window_close<\/code> after the notification, so the wizard dialog closes and the list behind it reloads with the new fees. Without <code dir=\"ltr\">next<\/code>, Odoo shows the notification but leaves the dialog open, and a second click on Apply would raise the fees again. Figure 5 later in this guide shows that behaviour.<\/p>\n<h3>6.6 Importing the wizard<\/h3>\n<p>Inside <code dir=\"ltr\">wizard\/__init__.py<\/code>:<\/p>\n<pre><code class=\"language-python\">from . import course_fee_wizard<\/code><\/pre>\n<p>The root <code dir=\"ltr\">__init__.py<\/code> already imports the wizard package, so Odoo can load the model.<\/p>\n<h2>7. Creating the Wizard XML View and Window Action<\/h2>\n<p>The Python model defines fields and behaviour; an XML form lets users interact with it. Create <code dir=\"ltr\">views\/course_fee_wizard_views.xml<\/code>:<\/p>\n<pre><code class=\"language-xml\">&lt;odoo&gt;\r\n\r\n    &lt;record id=\"view_course_fee_wizard_form\" model=\"ir.ui.view\"&gt;\r\n        &lt;field name=\"name\"&gt;training.course.fee.wizard.form&lt;\/field&gt;\r\n        &lt;field name=\"model\"&gt;training.course.fee.wizard&lt;\/field&gt;\r\n        &lt;field name=\"arch\" type=\"xml\"&gt;\r\n            &lt;form string=\"Bulk Course Fee Update\"&gt;\r\n\r\n                &lt;group&gt;\r\n                    &lt;field\r\n                        name=\"course_ids\"\r\n                        widget=\"many2many_tags\"\r\n                        readonly=\"1\"\r\n                        force_save=\"1\"\r\n                    \/&gt;\r\n\r\n                    &lt;field name=\"percentage\"\/&gt;\r\n                &lt;\/group&gt;\r\n\r\n                &lt;footer&gt;\r\n                    &lt;button\r\n                        name=\"action_apply\"\r\n                        string=\"Apply\"\r\n                        type=\"object\"\r\n                        class=\"btn-primary\"\r\n                    \/&gt;\r\n\r\n                    &lt;button\r\n                        string=\"Cancel\"\r\n                        special=\"cancel\"\r\n                        class=\"btn-secondary\"\r\n                    \/&gt;\r\n                &lt;\/footer&gt;\r\n\r\n            &lt;\/form&gt;\r\n        &lt;\/field&gt;\r\n    &lt;\/record&gt;\r\n\r\n    &lt;record id=\"action_course_fee_wizard\" model=\"ir.actions.act_window\"&gt;\r\n        &lt;field name=\"name\"&gt;Update Course Fees&lt;\/field&gt;\r\n        &lt;field name=\"res_model\"&gt;training.course.fee.wizard&lt;\/field&gt;\r\n        &lt;field name=\"view_mode\"&gt;form&lt;\/field&gt;\r\n        &lt;field name=\"view_id\" ref=\"view_course_fee_wizard_form\"\/&gt;\r\n        &lt;field name=\"target\"&gt;new&lt;\/field&gt;\r\n\r\n        &lt;field name=\"binding_model_id\" ref=\"model_training_course\"\/&gt;\r\n        &lt;field name=\"binding_view_types\"&gt;list&lt;\/field&gt;\r\n\r\n        &lt;field name=\"context\"&gt;{'default_percentage': 10}&lt;\/field&gt;\r\n    &lt;\/record&gt;\r\n\r\n&lt;\/odoo&gt;<\/code><\/pre>\n<h3>Understanding the XML components<\/h3>\n<ul data-spread=\"false\">\n<li>Form view: the <code dir=\"ltr\">&lt;form&gt;<\/code> element defines the wizard\u2019s interface.<\/li>\n<li>Many2many field: the <code dir=\"ltr\">many2many_tags<\/code> widget shows the selected courses as tags. The field is read-only because the selection comes from the list. <code dir=\"ltr\">force_save=\"1\"<\/code> is a safeguard for the read-only field; it does not replace checking that <code dir=\"ltr\">default_get()<\/code> really supplies the courses.<\/li>\n<li>Apply button: <code dir=\"ltr\">type=\"object\"<\/code> makes Odoo call the Python method <code dir=\"ltr\">action_apply()<\/code>.<\/li>\n<li>Cancel button: <code dir=\"ltr\">special=\"cancel\"<\/code> closes the wizard without running anything and needs no Python method.<\/li>\n<li>Window action: <code dir=\"ltr\">target=\"new\"<\/code> opens the form in a dialog. The dialog title comes from the action\u2019s name, which is why the dialog in the screenshots reads \u201cUpdate Course Fees\u201d and not the form\u2019s string.<\/li>\n<\/ul>\n<h3>Understanding the contextual action binding<\/h3>\n<p>The two fields <code dir=\"ltr\">binding_model_id<\/code> and <code dir=\"ltr\">binding_view_types<\/code> bind the action to the list view of the Training Course model, so users can reach it from the Actions control after selecting records. The context shows how to pass a default from XML: keys that start with <code dir=\"ltr\">default_<\/code> fill the matching wizard field. Here it repeats the Python default of 10; use it when different actions need different defaults.<\/p>\n<h2>8. Configuring Access Rules and the Manifest<\/h2>\n<h3>8.1 Access rules with ir.access<\/h3>\n<p>Odoo 19 and earlier defined model access in <code dir=\"ltr\">security\/ir.model.access.csv<\/code> and record rules in XML (<code dir=\"ltr\">ir.rule<\/code>). Odoo 20 replaces both with a single model, <code dir=\"ltr\">ir.access<\/code>, loaded from <code dir=\"ltr\">security\/ir.access.csv<\/code>.<\/p>\n<p>Create <code dir=\"ltr\">security\/ir.access.csv<\/code>:<\/p>\n<pre><code class=\"language-csv\">id,name,model_id,group_id\/id,operation,domain\r\naccess_training_course_user,training.course user,training.course,base.group_user,crud,\r\naccess_course_fee_wizard_user,course fee wizard user,training.course.fee.wizard,base.group_user,crud,<\/code><\/pre>\n<p>For comparison, this is the old Odoo 19 format that the same two rules would have used. Do not use it in Odoo 20:<\/p>\n<pre><code class=\"language-csv\">id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink\r\naccess_training_course_user,training.course user,model_training_course,base.group_user,1,1,1,1\r\naccess_course_fee_wizard_user,course fee wizard user,model_training_course_fee_wizard,base.group_user,1,1,1,1<\/code><\/pre>\n<p>The columns of the new file are:<\/p>\n<table>\n<tbody>\n<tr>\n<th>Column<\/th>\n<th>Meaning<\/th>\n<\/tr>\n<tr>\n<td><code dir=\"ltr\">id<\/code><\/td>\n<td>External ID of the rule, for example <code dir=\"ltr\">access_training_course_user<\/code><\/td>\n<\/tr>\n<tr>\n<td><code dir=\"ltr\">name<\/code><\/td>\n<td>A readable name<\/td>\n<\/tr>\n<tr>\n<td><code dir=\"ltr\">model_id<\/code><\/td>\n<td>The technical model name, such as <code dir=\"ltr\">training.course<\/code>. It is not the old XML ID <code dir=\"ltr\">model_training_course<\/code>, and the header has no <code dir=\"ltr\">:id<\/code> suffix.<\/td>\n<\/tr>\n<tr>\n<td><code dir=\"ltr\">group_id\/id<\/code><\/td>\n<td>XML ID of the security group the rule applies to, such as <code dir=\"ltr\">base.group_user<\/code><\/td>\n<\/tr>\n<tr>\n<td><code dir=\"ltr\">operation<\/code><\/td>\n<td>The permitted operations as letters: <code dir=\"ltr\">c<\/code> create, <code dir=\"ltr\">r<\/code> read, <code dir=\"ltr\">u<\/code> write (update) and <code dir=\"ltr\">d<\/code> delete, for example <code dir=\"ltr\">crud<\/code> or <code dir=\"ltr\">r<\/code><\/td>\n<\/tr>\n<tr>\n<td><code dir=\"ltr\">domain<\/code><\/td>\n<td>An optional Python domain that limits which records the rule covers. Leave it empty for no restriction; this is the role the old record rules played.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>One behaviour to remember: a row that has a group grants permission to that group, while a row with an empty <code dir=\"ltr\">group_id\/id<\/code> acts as a restriction that applies to everyone, much like a global record rule. Always fill the group on permission rows such as the two above.<\/p>\n<p>The first row gives internal users full rights on training courses and the second lets them create and use wizard records. This is convenient for a demonstration, but a real module should give permissions according to organisational roles, for example read-only rights for most users and full rights for a training manager group. After installing the module you can review the imported rows from the Access Rights list under the Technical menu in developer mode.<\/p>\n<h3>8.2 Manifest file<\/h3>\n<p>Now configure <code dir=\"ltr\">__manifest__.py<\/code>. The data file list names <code dir=\"ltr\">security\/ir.access.csv<\/code>:<\/p>\n<pre><code class=\"language-python\">{\r\n    'name': 'Training Management',\r\n    'version': '1.0',\r\n    'category': 'Education',\r\n    'summary': 'Training Course Management with Custom Wizards',\r\n    'description': \"\"\"\r\n        Manage training courses and update multiple course fees\r\n        using a custom wizard.\r\n    \"\"\",\r\n    'depends': ['base'],\r\n    'data': [\r\n        'security\/ir.access.csv',\r\n        'views\/training_course_views.xml',\r\n        'views\/course_fee_wizard_views.xml',\r\n    ],\r\n    'installable': True,\r\n    'application': True,\r\n    'license': 'LGPL-3',\r\n}<\/code><\/pre>\n<p>The order matters for the views: the form view must be loaded before the window action that refers to it with <code dir=\"ltr\">view_id<\/code>. In this example both are in the same file and the form comes first.<\/p>\n<h2>9. Testing the Wizard<\/h2>\n<p>Install or upgrade the module: restart the server if required, activate developer mode, open Apps, update the Apps list if the module is new, search for Training Management and install it (or upgrade it if it is already installed so that the new files are loaded). Then test the full workflow:<\/p>\n<ol start=\"1\" data-spread=\"true\">\n<li>Open Training Management \u2023 Training Courses and create a few courses. Figure 1 shows three: AI training (\u20b933,000), cloud computing (\u20b938,500) and Basic computer programming (\u20b911,000).<\/li>\n<li>Select two or more courses with the list checkboxes. Figure 2 shows all three selected: the control panel then displays \u201c3 selected\u201d and the Actions control (highlighted).\n<p><img decoding=\"async\" class=\"aligncenter wp-image-10197 size-large\" src=\"https:\/\/machinser.com\/wp-content\/uploads\/2026\/11\/2-3-1024x234.png\" alt=\"\" width=\"1024\" height=\"234\" srcset=\"https:\/\/machinser.com\/wp-content\/uploads\/2026\/11\/2-3-1024x234.png 1024w, https:\/\/machinser.com\/wp-content\/uploads\/2026\/11\/2-3-300x68.png 300w, https:\/\/machinser.com\/wp-content\/uploads\/2026\/11\/2-3-768x175.png 768w, https:\/\/machinser.com\/wp-content\/uploads\/2026\/11\/2-3-1536x351.png 1536w, https:\/\/machinser.com\/wp-content\/uploads\/2026\/11\/2-3-18x4.png 18w, https:\/\/machinser.com\/wp-content\/uploads\/2026\/11\/2-3.png 1792w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/>Figure 2: All three courses are selected and the Actions control (highlighted) appears in the control panel.<\/li>\n<li>Open Actions. Beside the standard Export, Duplicate, Archive, Unarchive and Delete entries, Odoo lists our Update Course Fees action (Figure 3), because the window action is bound to this model\u2019s list view.\n<p><img decoding=\"async\" class=\"aligncenter wp-image-10198 size-large\" src=\"https:\/\/machinser.com\/wp-content\/uploads\/2026\/11\/3-1-1024x234.png\" alt=\"\" width=\"1024\" height=\"234\" srcset=\"https:\/\/machinser.com\/wp-content\/uploads\/2026\/11\/3-1-1024x234.png 1024w, https:\/\/machinser.com\/wp-content\/uploads\/2026\/11\/3-1-300x68.png 300w, https:\/\/machinser.com\/wp-content\/uploads\/2026\/11\/3-1-768x175.png 768w, https:\/\/machinser.com\/wp-content\/uploads\/2026\/11\/3-1-1536x351.png 1536w, https:\/\/machinser.com\/wp-content\/uploads\/2026\/11\/3-1-18x4.png 18w, https:\/\/machinser.com\/wp-content\/uploads\/2026\/11\/3-1.png 1792w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/>Figure 3: The Actions menu with the custom Update Course Fees action (highlighted) below the standard actions.<\/li>\n<li>The wizard opens in a dialog (Figure 4). The three selected courses are already shown as tags, thanks to <code dir=\"ltr\">default_get()<\/code>. Type the percentage; the field starts at 10, and we enter 50.\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-10199 size-large\" src=\"https:\/\/machinser.com\/wp-content\/uploads\/2026\/11\/4-1-1024x416.png\" alt=\"\" width=\"1024\" height=\"416\" srcset=\"https:\/\/machinser.com\/wp-content\/uploads\/2026\/11\/4-1-1024x416.png 1024w, https:\/\/machinser.com\/wp-content\/uploads\/2026\/11\/4-1-300x122.png 300w, https:\/\/machinser.com\/wp-content\/uploads\/2026\/11\/4-1-768x312.png 768w, https:\/\/machinser.com\/wp-content\/uploads\/2026\/11\/4-1-1536x624.png 1536w, https:\/\/machinser.com\/wp-content\/uploads\/2026\/11\/4-1-18x7.png 18w, https:\/\/machinser.com\/wp-content\/uploads\/2026\/11\/4-1.png 1613w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/>Figure 4: The Update Course Fees wizard with the three selected courses, an Increase Percentage of 50.00 and the Apply button.<\/li>\n<li>Click Apply. The wizard executes <code dir=\"ltr\">action_apply()<\/code>, updates the three courses and shows a success notification (Figure 5).\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-10200 size-large\" src=\"https:\/\/machinser.com\/wp-content\/uploads\/2026\/11\/5-1-1024x362.png\" alt=\"\" width=\"1024\" height=\"362\" srcset=\"https:\/\/machinser.com\/wp-content\/uploads\/2026\/11\/5-1-1024x362.png 1024w, https:\/\/machinser.com\/wp-content\/uploads\/2026\/11\/5-1-300x106.png 300w, https:\/\/machinser.com\/wp-content\/uploads\/2026\/11\/5-1-768x272.png 768w, https:\/\/machinser.com\/wp-content\/uploads\/2026\/11\/5-1-1536x543.png 1536w, https:\/\/machinser.com\/wp-content\/uploads\/2026\/11\/5-1-18x6.png 18w, https:\/\/machinser.com\/wp-content\/uploads\/2026\/11\/5-1.png 1801w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/>Figure 5: The success notification (highlighted) after clicking Apply. In this capture the dialog is still open and the list behind it still shows the old fees, because the action returned only a notification and no close action.<\/li>\n<\/ol>\n<p>Figure 5 is a useful illustration of a common pitfall. Because the action in this capture returned only the notification, the dialog stayed open and the list behind it was not refreshed. With the next entry from section 6.5, the dialog closes by itself and the list reloads. Close the dialog (or use the final code from this guide) before checking the result.<\/p>\n<ol start=\"6\" data-spread=\"false\">\n<li>Check the list. Figure 6 shows the revised fees in the highlighted column.\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-10201 size-large aligncenter\" src=\"https:\/\/machinser.com\/wp-content\/uploads\/2026\/11\/6-1-1024x362.png\" alt=\"\" width=\"1024\" height=\"362\" srcset=\"https:\/\/machinser.com\/wp-content\/uploads\/2026\/11\/6-1-1024x362.png 1024w, https:\/\/machinser.com\/wp-content\/uploads\/2026\/11\/6-1-300x106.png 300w, https:\/\/machinser.com\/wp-content\/uploads\/2026\/11\/6-1-768x272.png 768w, https:\/\/machinser.com\/wp-content\/uploads\/2026\/11\/6-1-1536x543.png 1536w, https:\/\/machinser.com\/wp-content\/uploads\/2026\/11\/6-1-18x6.png 18w, https:\/\/machinser.com\/wp-content\/uploads\/2026\/11\/6-1.png 1801w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/>Figure 6: The updated Course Fee column (highlighted) after the 50% increase: \u20b949,500.00, \u20b957,750.00 and \u20b916,500.00.<\/li>\n<\/ol>\n<p>The results match the calculation from section 2:<\/p>\n<table>\n<tbody>\n<tr>\n<th>Course<\/th>\n<th>Original fee<\/th>\n<th>Updated fee<\/th>\n<\/tr>\n<tr>\n<td>AI training<\/td>\n<td>\u20b933,000.00<\/td>\n<td>\u20b949,500.00<\/td>\n<\/tr>\n<tr>\n<td>cloud computing<\/td>\n<td>\u20b938,500.00<\/td>\n<td>\u20b957,750.00<\/td>\n<\/tr>\n<tr>\n<td>Basic computer programming<\/td>\n<td>\u20b911,000.00<\/td>\n<td>\u20b916,500.00<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Also test as an ordinary internal user, not only as the administrator. The administrator bypasses many checks, so a regular user is the best way to confirm that the <code dir=\"ltr\">ir.access.csv<\/code> rows give the rights you intended.<\/p>\n<h3>9.1 Testing with Odoo\u2019s Form helper<\/h3>\n<p>In addition to manual testing, you can use Odoo\u2019s testing framework. The Form helper simulates form interactions and tests default values. Create <code dir=\"ltr\">tests\/test_course_fee_wizard.py<\/code>:<\/p>\n<pre><code class=\"language-python\">from odoo.tests import TransactionCase, Form\r\n\r\n\r\nclass TestCourseFeeWizard(TransactionCase):\r\n\r\n    @classmethod\r\n    def setUpClass(cls):\r\n        super().setUpClass()\r\n\r\n        cls.course = cls.env['training.course'].create({\r\n            'name': 'AI training',\r\n            'duration': 60,\r\n            'fee': 33000,\r\n            'currency_id': cls.env.company.currency_id.id,\r\n        })\r\n\r\n    def test_course_fee_update_wizard(self):\r\n\r\n        Wizard = self.env['training.course.fee.wizard'].with_context(\r\n            active_model='training.course',\r\n            active_ids=self.course.ids,\r\n        )\r\n\r\n        with Form(Wizard) as wizard_form:\r\n            wizard_form.percentage = 50\r\n\r\n        wizard = wizard_form.save()\r\n\r\n        self.assertEqual(wizard.course_ids, self.course)\r\n\r\n        wizard.action_apply()\r\n\r\n        self.assertEqual(\r\n            self.course.fee,\r\n            self.course.currency_id.round(49500)\r\n        )<\/code><\/pre>\n<p>The test checks that the wizard receives the selected course from the context, that the percentage can be entered through the form helper, and that Apply updates the fee. Add the import to <code dir=\"ltr\">tests\/__init__.py<\/code>:<\/p>\n<pre><code class=\"language-python\">from . import test_course_fee_wizard<\/code><\/pre>\n<p>Run it with Odoo\u2019s test runner with the module and test options enabled. Tests run as the superuser by default, so they do not prove that normal users have the right access.<\/p>\n<h2>10. Advanced Wizard Techniques<\/h2>\n<h3>10.1 Using onchange() for user feedback<\/h3>\n<p>The <code dir=\"ltr\">@api.onchange<\/code> decorator reacts to field changes while the user edits the form. For example, a warning can appear when a negative percentage is typed:<\/p>\n<pre><code class=\"language-python\">@api.onchange('percentage')\r\ndef _onchange_percentage(self):\r\n    if self.percentage &lt; 0:\r\n        return {\r\n            'warning': {\r\n                'title': _('Invalid Percentage'),\r\n                'message': _(\r\n                    'Please enter a positive percentage.'\r\n                ),\r\n            }\r\n        }<\/code><\/pre>\n<p>An onchange gives immediate feedback but is not validation. Keep the <code dir=\"ltr\">@api.constrains<\/code> check from section 6 so invalid values can never be saved.<\/p>\n<h3>10.2 Populating several fields with default_get()<\/h3>\n<p><code dir=\"ltr\">default_get()<\/code> can fill several wizard fields from the context, for example a default discount computed from selected sales orders. For a fixed value, a field\u2019s <code dir=\"ltr\">default=<\/code> argument or a <code dir=\"ltr\">default_<\/code> key in the action context (section 7) is simpler. Use <code dir=\"ltr\">default_get()<\/code> when the value depends on the selected records.<\/p>\n<h3>10.3 Creating a multi-step wizard<\/h3>\n<p>Some processes need more than one form. A data import wizard might have an upload step followed by a review step. Manage the steps with a state field:<\/p>\n<pre><code class=\"language-python\">state = fields.Selection(\r\n    [\r\n        ('upload', 'Upload'),\r\n        ('review', 'Review'),\r\n    ],\r\n    default='upload'\r\n)<\/code><\/pre>\n<p>The XML view shows different sections depending on the state, using the expression syntax of modern Odoo view architectures:<\/p>\n<pre><code class=\"language-xml\">&lt;group invisible=\"state != 'upload'\"&gt;\r\n    &lt;field name=\"file_data\"\/&gt;\r\n&lt;\/group&gt;\r\n\r\n&lt;group invisible=\"state != 'review'\"&gt;\r\n    &lt;field name=\"preview_data\"\/&gt;\r\n&lt;\/group&gt;<\/code><\/pre>\n<p>To move to the next step, update the state and return an action that reopens the same wizard record:<\/p>\n<pre><code class=\"language-python\">def action_review(self):\r\n    self.ensure_one()\r\n\r\n    self.state = 'review'\r\n\r\n    return {\r\n        'type': 'ir.actions.act_window',\r\n        'name': _('Review Import'),\r\n        'res_model': self._name,\r\n        'view_mode': 'form',\r\n        'res_id': self.id,\r\n        'target': 'new',\r\n    }<\/code><\/pre>\n<p>The <code dir=\"ltr\">res_id<\/code> tells Odoo to reopen the existing record instead of creating a new one, and <code dir=\"ltr\">target=\"new\"<\/code> keeps it in a dialog.<\/p>\n<h3>10.4 Returning an action to display updated records<\/h3>\n<p>Sometimes a notification is not enough and you want to take the user to the records that were just changed. Instead of the notification, <code dir=\"ltr\">action_apply()<\/code> can return a window action:<\/p>\n<pre><code class=\"language-python\">return {\r\n    'type': 'ir.actions.act_window',\r\n    'name': _('Updated Training Courses'),\r\n    'res_model': 'training.course',\r\n    'view_mode': 'list,form',\r\n    'domain': [\r\n        ('id', 'in', self.course_ids.ids)\r\n    ],\r\n    'target': 'current',\r\n}<\/code><\/pre>\n<p>Use the notification (with <code dir=\"ltr\">next<\/code>) when users only need confirmation, and the window action when they should inspect the updated records straight away.<\/p>\n<h2>11. Common Mistakes When Creating Wizards<\/h2>\n<ol start=\"1\" data-spread=\"true\">\n<li>The wizard does not open. Check the <code dir=\"ltr\">ir.actions.act_window<\/code> record, its <code dir=\"ltr\">res_model<\/code>, the referenced view and the target value.<\/li>\n<li>Selected records are not displayed. Verify that the action is bound to the correct model and list view, and check the <code dir=\"ltr\">active_model<\/code> and <code dir=\"ltr\">active_ids<\/code> values received in the context.<\/li>\n<li>Access error on the wizard model. Check that the wizard has a row in <code dir=\"ltr\">security\/ir.access.csv<\/code>, that the file is listed in the manifest, and that the user belongs to the group named in <code dir=\"ltr\">group_id\/id<\/code>.<\/li>\n<li>The module fails to install after copying an older tutorial. In Odoo 20, <code dir=\"ltr\">security\/ir.model.access.csv<\/code> and <code dir=\"ltr\">ir.rule<\/code> records are replaced by <code dir=\"ltr\">security\/ir.access.csv<\/code>. Migrate the file, using the model name in <code dir=\"ltr\">model_id<\/code> and the single operation column.<\/li>\n<li>Invalid values are accepted. Use server-side validation such as <code dir=\"ltr\">@api.constrains<\/code> or explicit checks in the operation method. An onchange warning alone does not enforce a rule.<\/li>\n<li>The wizard stays open after Apply. Add <code dir=\"ltr\">next: {type: ir.actions.act_window_close}<\/code> to the notification, or return another action, so the dialog closes and the list reloads. Otherwise users may click Apply twice.<\/li>\n<li>The wizard opens as a regular page. Check that the window action uses <code dir=\"ltr\">&lt;field name=\"target\"&gt;new&lt;\/field&gt;<\/code>.<\/li>\n<li>A multi-step wizard starts again from the first step. Make sure the returned action includes the existing wizard record\u2019s <code dir=\"ltr\">res_id<\/code>.<\/li>\n<\/ol>\n<h2>12. Best Practices for Odoo Wizard Development<\/h2>\n<ul data-spread=\"false\">\n<li>Use <code dir=\"ltr\">TransientModel<\/code> for temporary user input, not for permanent business records.<\/li>\n<li>Define <code dir=\"ltr\">ir.access<\/code> rows for the wizard and for the business models it changes, and give permissions per group.<\/li>\n<li>Validate important values on the server, not only through onchange methods.<\/li>\n<li>Use Odoo\u2019s translation helper <code dir=\"ltr\">_()<\/code> for messages shown to users.<\/li>\n<li>Use the currency\u2019s rounding method when calculating monetary values.<\/li>\n<li>Close the dialog or return a follow-up action after the operation completes.<\/li>\n<li>Keep the wizard record ID between steps in multi-step wizards.<\/li>\n<li>Test selected-record handling, empty selections, invalid input and different users\u2019 permissions.<\/li>\n<li>Keep business logic in Python and use XML mainly for the interface.<\/li>\n<\/ul>\n<h2>Conclusion<\/h2>\n<p>Custom wizards are a useful part of Odoo development. They provide a structured way to collect user input, process selected records and guide users through operations without creating a permanent record for every interaction.<\/p>\n<p>In this example we built a Bulk Course Fee Update Wizard with <code dir=\"ltr\">models.TransientModel<\/code>, Python methods, XML form views, a contextual window action and Odoo 20\u2019s <code dir=\"ltr\">ir.access.csv<\/code>. The same approach fits bulk price updates, confirmation dialogs, data imports, mass status changes and multi-step workflows.<\/p>\n<h2>Frequently Asked Questions<\/h2>\n<p>1. What is a wizard in Odoo?<\/p>\n<p>A wizard is a temporary form used to collect user input and perform an operation. It is commonly implemented with <code dir=\"ltr\">models.TransientModel<\/code>.<\/p>\n<p>2. What is the difference between Model and TransientModel?<\/p>\n<p><code dir=\"ltr\">models.Model<\/code> is for regular, persistent business records. <code dir=\"ltr\">models.TransientModel<\/code> is for temporary records that Odoo periodically cleans up.<\/p>\n<p>3. Do custom Odoo wizards need access rights?<\/p>\n<p>Yes. In Odoo 20, access to a <code dir=\"ltr\">TransientModel<\/code> is controlled like any other model, through <code dir=\"ltr\">ir.access<\/code> rows in <code dir=\"ltr\">security\/ir.access.csv<\/code>. Define suitable permissions for the wizard.<\/p>\n<p>4. What replaced ir.model.access.csv in Odoo 20?<\/p>\n<p>A single file, <code dir=\"ltr\">security\/ir.access.csv<\/code>, loaded into the unified <code dir=\"ltr\">ir.access<\/code> model. It also holds what record rules used to define, in its optional domain column.<\/p>\n<p>5. How can a wizard receive selected records from a list view?<\/p>\n<p>A contextual window action passes them through <code dir=\"ltr\">active_model<\/code> and <code dir=\"ltr\">active_ids<\/code>. The wizard reads them with <code dir=\"ltr\">self.env.context<\/code>.<\/p>\n<p>6. Why is target=&#8221;new&#8221; used in a wizard action?<\/p>\n<p>It opens the wizard in a dialog instead of replacing the current page.<\/p>\n<p>7. Why does my wizard stay open after the notification?<\/p>\n<p>A <code dir=\"ltr\">display_notification<\/code> action does not close the dialog by itself. Add a <code dir=\"ltr\">next<\/code> entry with <code dir=\"ltr\">ir.actions.act_window_close<\/code>.<\/p>\n<p>8. Can an Odoo wizard have multiple steps?<\/p>\n<p>Yes. Use a Selection field for the state, conditional visibility in the XML, and return a window action with <code dir=\"ltr\">res_id<\/code> to reopen the same wizard record.<\/p>\n<p>9. Are wizard records deleted immediately after closing the popup?<\/p>\n<p>No. They are cleaned up periodically according to Odoo\u2019s configured limits, so they should not be treated as permanent storage.<\/p>\n<h2>References<\/h2>\n<h3>Official documentation<\/h3>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul data-spread=\"true\">\n<li>Odoo 20, ORM API (TransientModel):<br \/>\n<a href=\"https:\/\/www.odoo.com\/documentation\/20.0\/developer\/reference\/backend\/orm.html\" data-rich-text-autolink=\"\" target=\"_blank\" rel=\"noopener\">https:\/\/www.odoo.com\/documentation\/20.0\/developer\/reference\/backend\/orm.html<\/a><\/li>\n<li>Odoo 20, Actions:<br \/>\n<a href=\"https:\/\/www.odoo.com\/documentation\/20.0\/developer\/reference\/backend\/actions.html\" data-rich-text-autolink=\"\" target=\"_blank\" rel=\"noopener\">https:\/\/www.odoo.com\/documentation\/20.0\/developer\/reference\/backend\/actions.html<\/a><\/li>\n<li>Odoo 20, View architectures:<br \/>\n<a href=\"https:\/\/www.odoo.com\/documentation\/20.0\/developer\/reference\/user_interface\/view_architectures.html\" data-rich-text-autolink=\"\" target=\"_blank\" rel=\"noopener\">https:\/\/www.odoo.com\/documentation\/20.0\/developer\/reference\/user_interface\/view_architectures.html<\/a><\/li>\n<li>Odoo 20, Testing:<br \/>\n<a href=\"https:\/\/www.odoo.com\/documentation\/20.0\/developer\/reference\/backend\/testing.html\" data-rich-text-autolink=\"\" target=\"_blank\" rel=\"noopener\">https:\/\/www.odoo.com\/documentation\/20.0\/developer\/reference\/backend\/testing.html<\/a><\/li>\n<li>Odoo 20 source, transient models:<br \/>\n<a href=\"https:\/\/github.com\/odoo\/odoo\/blob\/20.0\/odoo\/orm\/models_transient.py\" data-rich-text-autolink=\"\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/odoo\/odoo\/blob\/20.0\/odoo\/orm\/models_transient.py<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Have you ever needed to perform an operation on multiple records without creating a permanent database record? Or wanted to collect a few details from a user before executing a specific business operation? This is where custom wizards in Odoo 20 become useful. Wizards provide temporary forms that let users enter information, review selections and [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":10202,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[325,195],"tags":[],"class_list":["post-10193","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-odoo-20","category-odoo-customization"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/machinser.com\/wp-content\/uploads\/2026\/11\/Custom-Wizards-in-Odoo-20.png","_links":{"self":[{"href":"https:\/\/machinser.com\/ar\/wp-json\/wp\/v2\/posts\/10193","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/machinser.com\/ar\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/machinser.com\/ar\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/machinser.com\/ar\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/machinser.com\/ar\/wp-json\/wp\/v2\/comments?post=10193"}],"version-history":[{"count":4,"href":"https:\/\/machinser.com\/ar\/wp-json\/wp\/v2\/posts\/10193\/revisions"}],"predecessor-version":[{"id":10204,"href":"https:\/\/machinser.com\/ar\/wp-json\/wp\/v2\/posts\/10193\/revisions\/10204"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/machinser.com\/ar\/wp-json\/wp\/v2\/media\/10202"}],"wp:attachment":[{"href":"https:\/\/machinser.com\/ar\/wp-json\/wp\/v2\/media?parent=10193"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/machinser.com\/ar\/wp-json\/wp\/v2\/categories?post=10193"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/machinser.com\/ar\/wp-json\/wp\/v2\/tags?post=10193"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}