Skip to content
Snippets Groups Projects
Commit 350ed97c authored by Xavier Morel's avatar Xavier Morel
Browse files

[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: default avatarXavier Morel (xmo) <xmo@odoo.com>
parent ccea563a
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment