Skip to main content

Run actions from onchange handlers

Project description

License: AGPL-3

Onchange actions

This module allows you to return an action (ir.actions.*) from an onchange handler.

This way, you can have much more elaborate message boxes or simply show a whole wizard or do whatever else is possible with actions on the client side.

Usage

Depend on this module and in your onchange handler, add a key action to the warning dictionary of the result which contains the definition of an action to execute:

{
    'value': ....,
    'domain': ....,
    'warning': {
        'title': 'This will be shown if this module is not available',
        'message': 'Fallback message, see above',
        # this module picks up this key and shows it *instead* of the
        # warning above
        'action': {
            'type': 'ir.actions.act_window',
            'res_model': 'my.wizard',
            ...
        },
}

The module web_ir_actions_act_window_message can be quite helpful here.

Try me on Runbot

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 smashing it by providing a detailed and welcomed feedback.

Credits

Images

  • Odoo Community Association: Icon.

Contributors

Do not contact contributors directly about help with questions or problems concerning this addon, but use the community mailing list or the appropriate specialized mailinglist for help, and the bug tracker linked in Bug Tracker above for technical issues.

Maintainer

Odoo Community Association

This module is maintained by the OCA.

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.

To contribute to this module, please visit https://odoo-community.org.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

File details

Details for the file odoo8_addon_web_onchange_action-8.0.1.0.0.99.dev2-py2-none-any.whl.

File metadata

File hashes

Hashes for odoo8_addon_web_onchange_action-8.0.1.0.0.99.dev2-py2-none-any.whl
Algorithm Hash digest
SHA256 ea66e25f97816a49a995c17e08eede48b3a1f92d7b23d7b6c0da579ae7cb7116
MD5 1fb917f65ea2cfaf06fe201affc47822
BLAKE2b-256 f03f1e607a2ec1e8f22a693359af335f1abf68eba3c001a5ba6475f3fcb8243f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page