Update theming.rst to fix code error

Correct a code example for importing assets in the correct order to not get a undefined variable notice
This commit is contained in:
Thomas Verhelst 2025-02-18 14:27:24 +01:00 committed by GitHub
parent d2c610179a
commit 242a9c363b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -168,7 +168,8 @@ Odoo variables
--------------
Odoo declares many CSS rules, most entirely customizable by overriding the related SCSS variables.
To do so, create a :file:`primary_variables.scss` file and add it to the `_assets_primary_variables`
To do so, create a :file:`primary_variables.scss` file and add it to the `_assets_primary_variables`
after the defaults file in the 'website' addon.
bundle.
**Declaration**
@ -178,7 +179,7 @@ bundle.
'assets': {
'web._assets_primary_variables': [
('prepend', 'website_airproof/static/src/scss/primary_variables.scss'),
('after', 'website/static/src/scss/primary_variables.scss', 'website_airproof/static/src/scss/primary_variables.scss'),
],
},