84038b99b46868db6198a243ca35eb997fc6dd66
When finishing (and succeeding) a certification in the e-learning module, you can 'share' the content of the course by email. But the "Send Email" button is unresponsive. This is caused by having nested `<form>` tags: the one of the share modal is inside the main survey form element. To resolve this issue, we turn the `<form>` tag into a `<div>` tag in the sharing template, as it does not need to be a form since it's never submitted. Indeed, the sharing request is sent through attaching an event handler on the "Send Email" button which still works fine after our tag replacement. Note that this fix requires updating the module, but there is no (easy) way to fix it otherwise, and we consider it acceptable as the impact is pretty low. In addition to that, we also need to add a survey form JS override to correctly attach the "ShareMail" widget when the screen is loaded to the "finished" page. Indeed, as the survey form loads and replaces its content in AJAX rather than fully reloading the page, we need to watch for the screen refresh and then manually attach the widget so that the button handler is functional. During FW to 16.4, we also fixed a small oversight of: odoo/odoo@e0257347a7 Where we did not correctly add the "email_sharing" parameter when sharing the certification content in the success screen. Task-3360175 closes odoo/odoo#130613 X-original-commit: 337762b864d7b06abd7d1622083c5f00d7c7e7f7 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com> Signed-off-by: Warnon Aurélien (awa) <awa@odoo.com>
…
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%