summaryrefslogtreecommitdiff
path: root/doc/reference/javascript_reference.rst
diff options
context:
space:
mode:
authorArnaud Baes <arb@odoo.com>2020-11-30 09:14:50 +0000
committerOlivier Dony <odo@odoo.com>2020-12-08 08:26:35 +0000
commit5cc3a6f2307be617c51e8d9c5f167acc60cc6287 (patch)
treedc1966d3fbb9d60bcad8a144137ba9c4278d08d3 /doc/reference/javascript_reference.rst
parent98c69f50d04f1a86ca62937eb2a4c5676a2b9cfe (diff)
[FIX] web: make clean_action() allow extra properties
Some actions use 'non-standard' key in the action dict, to pass extra parameters. In that situation the filtering of keys in `clean_action()` strips valuable params, in an attempt to avoid leaking internal action data. One example of this is the dynamic action definition returned by `open_yodlee_action()` in the account_yodlee module, which uses several non-standard properties. This commit alters the filtering logic in order to allow extra keys by default, as long as they're not actual fields of the action model (and therefore should not cause unintended "internal data" leaks). A warning is also added to recommend passing those extra parameters in the `context` and `params` action properties, which are explicitly designed for this, by convention. For cases where extra properties are returned and where the warning is annoying, those properties can be explicitly _allowed_ by making them virtual action fields, through a `_get_readable_fields()` override.
Diffstat (limited to 'doc/reference/javascript_reference.rst')
0 files changed, 0 insertions, 0 deletions