OdooWiki OCA HUB

Confirmation Wizard

confirmation_wizard folder_open OCA/server-ux open_in_new
Tools License: LGPL-3

The module lets the developer trigger a confirmation wizard during any action in Odoo. Based on data passed to the wizard and, based on user input, executes specified methods or close wizard.

auto_awesome What this module does

AI-generated from the code · Odoo 16.0

Adds a reusable confirmation pop-up that other modules can call from code. It shows a message and, when the user confirms, either closes the window or runs a chosen method on selected records.

This is a technical building block for developers, not a standalone business feature. It provides a confirmation pop-up window that other parts of Odoo can trigger when they need the user to approve an action before it continues.

  • The pop-up shows a message and two buttons: Confirm and Cancel. The Cancel button can be hidden by the calling code.
  • When the user confirms, the wizard can either simply close the window, or run a specific method on a set of records that were passed to it, using any parameters supplied by the caller.
  • If the records no longer exist, or the requested method is not found on that model, the user gets a clear error message instead of a silent failure.
  • The wizard is a transient record, so it is not kept permanently.

It appears only as a pop-up form; there is no menu for end users. Access is restricted to the Settings administrator group. It touches the confirmation.wizard model and can act on any model passed by the caller through res_model and res_ids.

Depends on

base

Required by other modules

Models and fields (1)
  • confirmation.wizard · new modelmessage (Confirm Message), res_ids, res_model, return_type, callback_method, callback_params

Text generated by AI (DeepSeek) from reading the Odoo 16.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 1 confirmed, 8 with no information of 9 versions.

Sources · Odoo 16.0

Confirmed on 2026-11-03 in branch 16.0 of OCA/server-ux.

terminal Installation and usage

OCA documentation · Odoo 16.0

To create configuration wizard:

Use confirm wizard which return method (return_type = method):

def change_address(self, address):
  # Confirmation wizard
  action = (
    self.env["confirmation.wizard"]
    .confirm_message(
      _("Do you want to change the partner's address?"),
      records=self.env["res.partner"].browse(1), # One or more records
      title="Confirm",
      method="change_address",
      callback_params={"address": address}
    )
  )
  if action:
    return action
  ... # Your code here

Use confirm wizard which does nothing and closes itself when clicking confirm (return_type = window_close):

def method(self):
  ...
  return (
    self.env["confirmation.wizard"]
    .with_context(hide_cancel=True)
    .confirm_no_action_message(
      message="Message",
      title="Notification"
    )
  )

No verified information in OCA: Installation, Configuration.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.