Daily updates from Odoo
Tuesday, February 19, 2019
2 changes · master
Resolved issues and error corrections
This update improves the website editor so blog and website content editing responds faster and avoids editing areas that should stay protected. It also prevents duplicate edit sessions, cleans up editor controls, and makes save/edit menu behavior clearer for users.
Original PR description
Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The eLearning publish and unpublish controls are now hidden from users who do not have permission to manage publication for a course or slide. This prevents confusion and makes the website editing experience match the user's actual access rights.
Original PR description
Purpose ======= The "publish/unpublish" widget is always shown on slide.channel/slide.slide for a website_publisher user even if he's not allowed to manage the publishing of the channel (see slide.channel.can_publish field). This commit will hide the widget on both the slide.channel and the slide.slide frontend pages if the user doesn't have the right to publish/unpublish. A generic solution implemented directly in the publish mixin has been chosen to ease understanding and allow easy reuse in other applications. Commit linked to task ID 1902304 (main elearning task).