Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Beta License: AGPL-3 OCA/web Translate me on Weblate Try me on Runboat

This module provides feature to create custom confirmation or alert dialog when user creates or writes record. Module includes only methods that you can use in your code. That means programming is always required. See usage section for more information.

Table of contents

Usage

Create popup.message record. Specify model_id, field_ids (which fields will trigger alert) and other fields. Put you code into get_message_informations or execute_processing method of you model. Return dict (perform read() to get it). Here is some examples how you can use this module features in your code.

Confirm res.partner change:

msg = self.env['popup.message'].create(
    {
        'model_id': self.env['ir.model']._get_id('res.partner')
        'field_ids': [(6, 0, self.env['ir.model.fields'].search([('model', '=', 'res.partner')]).ids)],
        'popup_type': 'confirm',
        'title': 'Warning',
        'message': 'Are you sure want to update record?',
    }
)
return msg.read()

Sale order alert:

msg = self.env['popup.message'].create(
    {
        'model_id': self.env['ir.model']._get_id('sale.order'),
        'field_ids': [(6, 0, self.env['ir.model.fields'].search([('model', '=', 'sale.order')]).ids)],
        'popup_type': 'alert',
        'title': 'Attention',
        'message': 'Sale order was updated.',
    }
)
return msg.read()

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • Smile

Contributors

Maintainers

This module is maintained by the OCA.

Odoo Community Association

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

Current maintainer:

ilyasProgrammer

This module is part of the OCA/web project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

Release files for odoo14-addon-web-create-write-confirm 14.0.1.2.1.dev2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for odoo14-addon-web-create-write-confirm 14.0.1.2.1.dev2
File Interpreter ABI Platform
odoo14_addon_web_create_write_confirm-14.0.1.2.1.dev2-py3-none-any.whl Python 3 none any Details

Release files / odoo14_addon_web_create_write_confirm-14.0.1.2.1.dev2-py3-none-any.whl

Download URL odoo14_addon_web_create_write_confirm-14.0.1.2.1.dev2-py3-none-any.whl
Size 29.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2347aee614899cbaea2991eb7a0b874e3deafc4179c32ff83172310134c022fe
BLAKE2b-256 checksum
How to use checksums
1cdf37accb1c5f5fc31e5c46053c94ee082a017718fc916c0d1d8690ceb22609
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page