-
- Downloads
[FIX] web: async operations should not live in init
Support for the "allow exports" group was implemented by checking the
group in init(), which is sync. Move that check over to willStart
instead.
Also add a default mock for user_has_group (makes it so it always
replies that the user doesn't have the group), and override that
specifically for the group we're interested in in the export tests, so
those tests have access to the Export action / option.
closes odoo/odoo#54254
X-original-commit: 30968ac93373990338c23f49e678d272b8e60c6b
Signed-off-by:
Xavier Morel (xmo) <xmo@odoo.com>
Showing
- addons/web/static/src/js/views/list/list_controller.js 8 additions, 2 deletionsaddons/web/static/src/js/views/list/list_controller.js
- addons/web/static/tests/helpers/test_utils_mock.js 6 additions, 7 deletionsaddons/web/static/tests/helpers/test_utils_mock.js
- addons/web/static/tests/widgets/data_export_tests.js 10 additions, 1 deletionaddons/web/static/tests/widgets/data_export_tests.js
Loading
Please register or sign in to comment