How to Create a Button in Odoo That Opens a Custom Wizard
odoowise.bearblog.dev·5h
Flag this post

OdooWise

Home Blog

  • 07 Nov, 2025 *

Define the Wizard Model

Create a new model for your wizard in a Python file:

from odoo import models, fields, api

class YourWizard(models.TransientModel):
_name = 'your.module.wizard'
_description = 'Your Custom Wizard'

# Add your wizard fields here
name = fields.Char(string="Name", required=True)

Create the Wizard View

Define the XML view for your wizard in a view file:

<record id="view_your_wizard_form" model="ir.ui.view">
<field name="name">your.module.wizard.form</field>
<field name="model">your.module.wizard</field>
<field name="arch" type="xml">
<form>
<sheet>
<group>
<field name="name"/>
</group>
</sheet>
<foot...

Similar Posts

Loading similar posts...