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:
parent
d2c610179a
commit
242a9c363b
@ -169,6 +169,7 @@ Odoo variables
|
|||||||
|
|
||||||
Odoo declares many CSS rules, most entirely customizable by overriding the related SCSS 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.
|
bundle.
|
||||||
|
|
||||||
**Declaration**
|
**Declaration**
|
||||||
@ -178,7 +179,7 @@ bundle.
|
|||||||
|
|
||||||
'assets': {
|
'assets': {
|
||||||
'web._assets_primary_variables': [
|
'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'),
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user