Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] website_slides: prevent exception while accessing embed externa…
…l of slide Currently, an exception is generated when the user tries to access embed view of slides by following the steps: - Install "eLearning" with a demo data - Open external embed view of slide 1 by "/slides/embed_external/1" in url Error: `AttributeError: 'slide.channel' object has no attribute 'website_share_url'` This error is because commit [1] added code that tries to access the 'website_share_url' field in the 'slide.channel' model in template 'embed_slide' , but it actually belongs to 'slide.slide'. This commit resolved the above issue by accessing "website_share_url" with "slide" instead of "slide.channel". [1]-db63c03 sentry-5095823727 closes #159442 X-original-commit: e45456a Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
- Loading branch information