Run actions from onchange handlers
Project description
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.
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
Holger Brunn <hbrunn@therp.nl>
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
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
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
- Download URL: odoo8_addon_web_onchange_action-8.0.1.0.0.99.dev2-py2-none-any.whl
- Upload date:
- Size: 19.4 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea66e25f97816a49a995c17e08eede48b3a1f92d7b23d7b6c0da579ae7cb7116 |
|
MD5 | 1fb917f65ea2cfaf06fe201affc47822 |
|
BLAKE2b-256 | f03f1e607a2ec1e8f22a693359af335f1abf68eba3c001a5ba6475f3fcb8243f |