diff options
| author | Julien Mougenot <jum@odoo.com> | 2020-03-17 08:26:23 +0000 |
|---|---|---|
| committer | Julien Mougenot <jum@odoo.com> | 2020-03-17 08:26:25 +0000 |
| commit | d678d516ef74de983dcaed8c0ed8cc39a0af0669 (patch) | |
| tree | 5d4df5cf52c09f09288b3ab831757f153b6db837 /addons/web/static/tests/components | |
| parent | 7cdf8c25a63753f8370b15e0307b8e57d9db9b7c (diff) | |
[FIX] web: action menus default select_all
Before this commit, the context sent by an action performed by the action menu
could hold an 'undefined' select_all key, which would cause the context evaluation
to crash.
Now, the select_all key is defaulted to 'false' and does not crash in actions that
do not provide it.
closes odoo/odoo#47745
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Diffstat (limited to 'addons/web/static/tests/components')
| -rw-r--r-- | addons/web/static/tests/components/action_menus_tests.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/web/static/tests/components/action_menus_tests.js b/addons/web/static/tests/components/action_menus_tests.js index e17ae95ba78..f4229b30493 100644 --- a/addons/web/static/tests/components/action_menus_tests.js +++ b/addons/web/static/tests/components/action_menus_tests.js @@ -105,6 +105,7 @@ odoo.define('web.action_menus_tests', function (require) { active_id: 23, active_ids: [23], active_model: 'hobbit', + select_all: false, // default props }; assert.deepEqual(args.context, expectedContext); assert.step('load-action'); @@ -177,6 +178,7 @@ odoo.define('web.action_menus_tests', function (require) { active_id: 23, active_ids: [23], active_model: 'hobbit', + select_all: false, // default props }; assert.deepEqual(args.context, expectedContext); assert.step('load-action'); |
