summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanh Dodeur <tso@odoo.com>2020-02-07 07:27:52 +0000
committerqsm-odoo <qsm@odoo.com>2020-02-28 13:48:25 +0000
commitda46ba7bc1af7e192ffaed654eee82d0a8ef90be (patch)
treeb0ec46820718e79d0fcb1c6e2457c181165950a2
parent456f8a7e70fe709eb75d6f648dcf163266a9dc60 (diff)
[IMP] website: increase priority of user custom assets
This commit moves the custom user css assets to a higher priority so their custom css have ascendancy over the other rules. Part of #44633 task-2168391
-rw-r--r--addons/website/views/assets.xml18
1 files changed, 13 insertions, 5 deletions
diff --git a/addons/website/views/assets.xml b/addons/website/views/assets.xml
index e8a987caec2..25f5feafd7f 100644
--- a/addons/website/views/assets.xml
+++ b/addons/website/views/assets.xml
@@ -51,10 +51,14 @@
<template id="_assets_frontend_helpers" inherit_id="portal._assets_frontend_helpers">
<xpath expr="//link" position="before">
+ <link rel="stylesheet" type="text/scss" href="/website/static/src/scss/bootstrap_overridden.scss"/>
+ </xpath>
+</template>
+
+<template id="_assets_frontend_helpers_user_custom" inherit_id="web._assets_frontend_helpers" priority="99">
+ <xpath expr="//link" position="before">
<!-- Custom empty file for user custom bootstrap override -->
<link rel="stylesheet" type="text/scss" href="/website/static/src/scss/user_custom_bootstrap_overridden.scss"/>
-
- <link rel="stylesheet" type="text/scss" href="/website/static/src/scss/bootstrap_overridden.scss"/>
</xpath>
</template>
@@ -62,9 +66,6 @@
<xpath expr="//link[last()]" position="after">
<link rel="stylesheet" type="text/scss" href="/website/static/src/scss/website.scss"/>
<link rel="stylesheet" type="text/scss" href="/website/static/src/scss/website.ui.scss"/>
-
- <!-- Custom empty file for user custom rules -->
- <link rel="stylesheet" type="text/scss" href="/website/static/src/scss/user_custom_rules.scss"/>
</xpath>
<xpath expr="//script[@src='/web/static/src/js/public/public_root_instance.js']" position="replace">
<script type="text/javascript" src="/website/static/src/js/content/website_root_instance.js"/>
@@ -89,6 +90,13 @@
</xpath>
</template>
+<template id="assets_frontend_user_custom" inherit_id="web.assets_frontend" name="Website Assets user custom" priority="99">
+ <xpath expr="//link[last()]" position="after">
+ <!-- Custom empty file for user custom rules -->
+ <link rel="stylesheet" type="text/scss" href="/website/static/src/scss/user_custom_rules.scss"/>
+ </xpath>
+</template>
+
<template id="assets_frontend_compatibility_for_12_0" inherit_id="website.assets_frontend" active="False">
<xpath expr="//link[last()]" position="after">
<link rel="stylesheet" type="text/scss" href="/website/static/src/scss/compatibility/bs3_for_12_0.scss"/>