e3ed896fbd3bacae8b22403c0a53bd0cdd5d7ae4
When a change was added within a field like adding a class (eg. o_dirty, o_transform_removal, or oe_edited_link), it triggered the `_observeOdooFieldChanges` mechanism that replace all identical fields from the first mutated field in the set of identical fields. The bug appeared when there were two identical in the pages - field A: first to appear in the document - field B: second to appear in the document When clicking on a link inside field B, multiples class could be added (o_dirty, o_transform_removal, or oe_edited_link) within the fields. Field A and field B were mutated. This activated the mechanism `_observeOdooFieldChanges` and replaced the innerHTML of field B with innerHTML of field A. That replacement of innerHTML made the reference of the anchor node in the link tool being outdated and changes made inside that link tool ineffective. Step to reproduce: - Install website - Go to any page and enter edit mode - Click on the navbar and in the right panel select Vertical header - Activate the CTA option in that navbar right panel (should already be) - Click on the CTA button - Try to edit the URL in the right panel or any link option (style etc) The link will not update properly and the history undo create a new link. This commit add the ability in the editor to prevent classes from being taken into consideration in the filterMutationRecords and in undo/redo and when receiving external steps. closes odoo/odoo#104872 X-original-commit: e07e149e01646cc2e59c8ac205a5047fd74ae0ba Signed-off-by: David Monjoie (dmo) <dmo@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%