From 242a9c363b09f9c86d0eba4b2723fd3c006b535b Mon Sep 17 00:00:00 2001 From: Thomas Verhelst <15680337+TVke@users.noreply.github.com> Date: Tue, 18 Feb 2025 14:27:24 +0100 Subject: [PATCH] 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 --- content/developer/howtos/website_themes/theming.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/content/developer/howtos/website_themes/theming.rst b/content/developer/howtos/website_themes/theming.rst index af144d760..1f2825486 100644 --- a/content/developer/howtos/website_themes/theming.rst +++ b/content/developer/howtos/website_themes/theming.rst @@ -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'), ], },