From de697129d3df2a0ca1f675af1bf57cc5c8a44f5c Mon Sep 17 00:00:00 2001 From: "Achraf (abz)" Date: Tue, 22 Dec 2020 11:35:08 +0000 Subject: [FIX] website_slides: Complete courses with video What are the steps to reproduce your issue ? 1. Install ELearning 2. Create a course 3. Add a video from youtube 4. Attempt to do the course from a user that is invited What is currently happening ? You cannot complete a video (turn the checkmark green) if there is not a quiz. Therefore you cannot complete the course What are you expecting to happen ? Turn the checkmark green to signify that video is completed after watching the video and then have the ability to complete the course Why is this happening ? Because of this commit https://github.com/odoo/odoo/pull/61581/files that changes 'youtube.com' to 'youtube-nocookie.com' How to fix the bug ? Remove host opw-2418545 closes odoo/odoo#63871 X-original-commit: 484957caf89e0f324dffda6f2ac0a1ca543b969b Signed-off-by: Nicolas Lempereur (nle) Signed-off-by: Achraf --- addons/website_slides/static/src/js/slides_course_fullscreen_player.js | 1 - 1 file changed, 1 deletion(-) (limited to 'addons/website_slides/static/src') diff --git a/addons/website_slides/static/src/js/slides_course_fullscreen_player.js b/addons/website_slides/static/src/js/slides_course_fullscreen_player.js index 85e0f5b1860..41ae5c59615 100644 --- a/addons/website_slides/static/src/js/slides_course_fullscreen_player.js +++ b/addons/website_slides/static/src/js/slides_course_fullscreen_player.js @@ -75,7 +75,6 @@ odoo.define('website_slides.fullscreen', function (require) { */ _setupYoutubePlayer: function (){ this.player = new YT.Player('youtube-player' + this.slide.id, { - host: 'https://www.youtube.com', playerVars: { 'autoplay': 1, 'origin': window.location.origin -- cgit v1.2.3