4838909bce7f954312d645cf37bafaac9b001aca
Issue: ====== Discard changes of form having html field doesn't remove the changes applied in the html field. Steps to reproduce the issue: ============================= - Open any mail template - Add modification on the template - Click on discard changes Origin of the issue: ==================== The function `this.props.update` is responsible of updating `_changes` and updating the record which is called for usual input_field using `useInputField` hook, but since this html field isn't of the same format we didn't use it and it's only called in `commitChanges` Solution: ========= We update the value of in `_onWysiwygBlur` in case we are `inlineStyle` so we don't commit but we save the changes for the discard to work properly. task-3453497 closes odoo/odoo#151993 X-original-commit: 1624da6f42561792be816836c6d88bc986c3538a Signed-off-by: Antoine Guenet (age) <age@odoo.com> Signed-off-by: Mahdi Cheikh Rouhou (macr) <macr@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%