bcfd1491db006512e089976b303f36a387be6c38
Steps to reproduce [1]: - Go to website (blog post page) > Change the layout of the cover (Customize > 'Regular' Cover). - Click on the cover (in edit mode) > You can type anything inside and use the text tools (E.g. if you add an image from the toolbar, it will be added on all blog posts). Steps to reproduce [2]: - Go to website (`/calendar` page) > Unpublish an appointment page. - Go back to the `/calendar` page > Switch to edit mode > You still can edit the "unpublished" tag on the items cover (add text, images,... using text tools). The editor uses some methods (`getContentEditableAreas()`, `getReadOnlyAreas()`,...) to check if an area should be marked as editable on load, there is already a cover selector used to define a record cover as an editable zone, but this selector is targeting the whole element, leading to the behaviour described in [1] and [2]. We actually just need to set the savable content (usually the record `name` and `subtitle` fields) as editable and not the whole element. The goal of this commit is to fix this behaviour by removing the cover along with its descendants from the initial editable zones (especially to prevent the scenario in [2], see: $editableSavableZones) and only setting the savable fields as editable areas. opw-3561659 closes odoo/odoo#146407 X-original-commit: 333e437d6acb227f092f1d152fe68d49076cff94 Signed-off-by: Romain Derie (rde) <rde@odoo.com> Signed-off-by: Outagant Mehdi (mou) <mou@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%