7c533fce5ca97fdb5a53e9840a033bf32bbf009e
Bootstrap tables can basically be customized with the `$table-bg` and `$table-color` variables. The problem is that, by default, BS4 defines them so that the background-color is null (so transparent: displaying the background-color of its ancestors) but the color is forced to the body color (by default: white). This is a problem as soon as the ancestors background colors are a color close to the body text color: the text becomes invisible. For instance, in website: - Set a body background color to black, the body text will automatically become white. - Add a table in a snippet: still ok, the text in the table is white over the black body (the table being transparent). - Then set the snippet background to white -> the table text will still be white... but now over a white background. This should be reviewed in master: it should be ok to set the variable $table-color to `null` thus letting the table be transparent and have the same text color as its parent. But in stable, changing a color variable to `null` could break customizations relying on the fact this is a set color. It would also not make sense if the user set up a `$table-bg` value going well with table text forced to the body color. Instead, here, in the very specific case we have a transparent table bg and table color equal to the body color, we temporarily unset the table color variable for the duration of the bootstrap table rules. Note: we cannot create a rule in an "Odoo file" to fix this as unsetting the color for the `.table` rule would also unset the color in the case of a `.table.bg-XXX` where we still want `.bg-XXX` to force the color. task-2728923 opw-3048306 opw-3180568 closes odoo/odoo#114631 X-original-commit: 02c2cfdff7c29252c7036e587b12d82442906e59 Signed-off-by: Quentin Smetz (qsm) <qsm@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%