Daily updates from Odoo
Navigate
Branch
Thursday, December 27, 2018
3 changes
Resolved issues and error corrections
The default resource schedule label has been updated from “Evening” to “Afternoon” for the second shift of the day. This makes standard attendance naming clearer and more aligned with common business language.
Original PR description
Evening is not the common way to describe the second shift of the day. Co-authored-by: Cas Vissers <c.vissers@brahoo.nl> Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Code cleanup and technical improvements
This reorganizes how Odoo's website, portal, and editor styling settings are inherited so each area uses the right defaults more reliably. It should make visual customization and future styling upgrades safer, especially for databases migrated from older versions where loading order could cause inconsistent results.
Original PR description
With less2sass and bs3tobs4 tasks, the assets structure was reviewed to handle the specificities of both framework and to prepare for our next odoo tasks. In particular, the assets_helpers and…
With less2sass and bs3tobs4 tasks, the assets structure was reviewed to
handle the specificities of both framework and to prepare for our next
odoo tasks. In particular, the assets_helpers and bootstrap overrides
were basically split into 4 parts: utils, primary variables, secondary
variables and bootstrap variables.
(see https://github.com/odoo/odoo/commit/6e4db7d13a926845bf82f5b035afede42d6d5a89)
Using the !default system for the bootstrap variables parts seems now
a good improvement. This is part of what this commit does: adding the
default flag for all bootstrap variables overrides and inverting the
order of the files in the _assets_backend_helpers and
_assets_frontend_helpers templates. This allows to avoid code like this:
portal:
```
$body-bg: white;
```
website:
```
@if $var != null {
$body-bg: $var;
}
```
This code makes the body white with portal or equal to $var with website
if $var has a value. The same behavior in the new file order is achieved
with:
website:
```
$body-bg: $var !default;
```
portal:
```
$body-bg: white !default;
```
This order is now also followed for the _assets_secondary_variables
templates (there are only a few).
This commit also make better assets hierarchy by making website inherit
from portal assets (instead of web) and portal inherit from web_editor
assets (instead of web) (thus relying on strong dependencies instead of
installation order which is not always right for migrated databases).This update reorganizes how the Enterprise web interface styling assets are prepared, making them more robust and easier to maintain. The change supports a more reliable visual foundation for the Odoo web client without introducing a major user-facing feature change.
Original PR description
See https://github.com/odoo/odoo/pull/29757