diff options
| author | Thibault Delavallée <tde@odoo.com> | 2019-02-15 15:41:09 +0000 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2019-02-15 17:44:02 +0000 |
| commit | 6a9f6876c1e0ac188a11ba69b1f3890d5e71c563 (patch) | |
| tree | 7ecc32105589866105c108059f00a9b6ddf21c80 /addons/web/static/src/js/views/basic | |
| parent | b2149bc7a274217a0b96e587abd52093bd98e5e8 (diff) | |
[FIX] website_slides: fix some statistics and publication issues
This commit fixes various issues introduced by recent commits in slides
* fix slide type computation: using a dict in a fromkeys makes a shared
object for all keys. It is better to fix that behavior;
* correctly display number of course steps in elearning homepage. Currently
number of steps of a course is simply the length of its one2many;
holding slides. However this one depends on access rights which give funny
results like a course with 2 steps for public users and 7 for admin;
Right computation is: number of published lessons, whatever your access
rights are. This is already computed as total_slides;
* people that cannot publish should not be able to unpublish;
Commit linked to task ID 1941250 and PR #31133.
Diffstat (limited to 'addons/web/static/src/js/views/basic')
0 files changed, 0 insertions, 0 deletions
