Confirm/Alert pop-up before saving

web_create_write_confirm
REPOSITORY
REPOSITORYOCA/web
GIT
GIThttps://github.com/OCA/web.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/web/tree/14.0/web_create_write_confirm
VERSION
VERSION 1.2.0
CATEGORY
CATEGORYTools
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Smile
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Smile
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, Alessandro Uffreduzzi, Ilyas
WEBSITE
WEBSITEhttps://github.com/OCA/web
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:41:08
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - web
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
assets_backend_extension assets_backend_extension ir.ui.view qweb Inherits web.assets_backend
view_popup_message_form view.popup.message.form popup.message form New
view_popup_message_tree view.popup.message.tree popup.message tree New
Models touched (2)

New fields (0)

No new fields.

Public methods (2)
  • get_popup_message_info(self, values=False)
    Retrieve popup messages' data. - In create self is empty - In write self is not empty contains current ID :param values: - In create dictionary contains all recording information self is False - In write we find only values changed :type values: dict :return: return dict object popup.message (self.env['popup.message'].read())
  • process_popup_message(self, values=False)
    This function gives us the possibility to execute a specific treatment after the confirmation of the message - In create self is empty - In write self is not empty contains current ID :param values : a list of dictionaries: {'name': field, 'value': value of field} :type dictionary list :return boolean

New fields (8)
  • active Boolean
    default=True string='Active'
  • field_ids Many2many → ir.model.fields
    comodel_name='ir.model.fields' required=True string='Fields'
  • field_name Char
    compute='_compute_field_name'
  • message Text
    required=True string='Message' translate=True
  • model Char
    related='model_id.model'
  • model_id Many2one → ir.model
    comodel_name='ir.model' ondelete='cascade' required=True string='Model'
  • popup_type Selection
    default='confirm' required=True selection=[('confirm', 'Confirmation'), ('alert', 'Alert')] string='Type'
  • title Char
    string='Title' translate=True
Public methods (0)

No public methods.