Skip to content
Snippets Groups Projects
Commit 45847248 authored by Lucas Perais (lpe)'s avatar Lucas Perais (lpe)
Browse files

[FIX] website_slides: statistics recompute when toggle website published


As a portal user, complete some steps within a course
Completing all of them makes the course completion to 100 %

Now, in the backend, unpublish one of these steps

Before this commit, the completion was not taking into account
that a step did not "exist" anymore i.e. has been unpublished,
leading to a completion > 100%

After this commit, we search only for steps that are published
The completion cannot exceed 100%

OPW 2033553

closes odoo/odoo#34800

Signed-off-by: default avatarLucas Perais (lpe) <lpe@odoo.com>
parent e7828c36
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment