cbbe2029bae054dd28286a002041a538a597255f
The HTML sanitization regroups similar elements into a single one. For 'style-inline' HTML fields, the font awesome icons are converted to images within spans. Because of this, when sanitizing a "5 Stars" block in a 'style-inline' HTML field, the spans are grouped and all the images end up inside a single span, with: - each image being `display: block;` and - the global span having a fixed width equal to a single image's width. This turns the horizontal succession of stars into a vertical one. This commit adds the `oe_unbreakable` class to the image wrapping spans to prevent sanitize from grouping them into a single one. Note that this commit does not address the issue that upon a further edit of the field, the Stars block is not recognized anymore. This would require a `convert_from_inline` reverting operation which would change many other behaviors. Steps to reproduce: - Go to user profile. - Edit signature. - Insert a "5 Stars" block (i.e. use the "/5" command). - Save. => Stars became vertical. task-2845963 X-original-commit: 9bf0b9872056e5f69a9c912825b863e0a353d5f5 Part-of: odoo/odoo#96071
…
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%