[FIX] web: reorder assets as webclient/* defines base elements for views

`webclient/*` defines the main infrastructure for views and as such also
global components/utilities (like Odoo Icons variables/utility classes).

But, as the `views/*` are included *before* `webclient/*`, they can't
use SCSS variables defined in `webclient/*`.

This commit fixes it by interverting their order, which has a
significant effect on the SCSS output, but not the JavaScript (as the
modules system is responsible of the imports order, not the bundler).

Part-of: odoo/odoo#97562
This commit is contained in:
Pierre Paridans
2022-08-08 21:03:06 +02:00
parent dc3c4aa3b1
commit deaae51fb5
+2 -2
View File
@@ -97,11 +97,11 @@ This module provides the core of the Odoo Web Client.
'web/static/src/core/**/*',
'web/static/src/legacy/legacy_fields.scss',
'web/static/src/search/**/*',
'web/static/src/views/**/*',
('remove', 'web/static/src/views/form/button_box/*.scss'),
'web/static/src/webclient/**/*',
('remove', 'web/static/src/webclient/navbar/navbar.scss'), # already in _assets_common_styles
('remove', 'web/static/src/webclient/clickbot/clickbot.js'), # lazy loaded
'web/static/src/views/**/*',
('remove', 'web/static/src/views/form/button_box/*.scss'),
'web/static/src/env.js',
'web/static/lib/jquery.scrollTo/jquery.scrollTo.js',