summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_model.js
diff options
context:
space:
mode:
authorNasreddin (bon) <bon@odoo.com>2020-10-13 13:12:53 +0000
committerNasreddin (bon) <bon@odoo.com>2020-10-13 16:34:07 +0000
commitc107edf7077399c2ffa60b85a291ec3830d8432d (patch)
treeeea77c3486f7435b0618b1e08920618c105bc9f5 /addons/web/static/src/js/views/basic/basic_model.js
parent811cd40fe427c28f9eb244f78ae23c4d3fb42cc8 (diff)
[FIX] website_slides: Google drive does not start (error message)
Issue - Install "Elearning" module - Activate "Drive" credidentials in settings - Go to any course and edit it. - In "Content" tab, click on "Add Content" - Select `Video` as 'Type' - Copy/Paste the Google Drive video link in "Document URL" field - Wait for other field to be computed then "Save & Close" - Save the course - Go to the website to watch this new content Youtube error message Cause 'mime_type' field is readonly. When saving the course (slide.channel), the slide is not saved yet, and therefore drop the 'mime_type' value. When generating the `embed url`, it verify if a mime_type is set: if not, it will generate an iframe with youtube.com as domain, else, a drive.google.com domain. Solution Add `force_save="1"` on `mime_type` field. opw-2294344 closes odoo/odoo#59913 X-original-commit: 987b9bf408cf5ba2deded7e2015caa6faeb65a87 Signed-off-by: bon-odoo <nboulif@users.noreply.github.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_model.js')
0 files changed, 0 insertions, 0 deletions