summaryrefslogtreecommitdiff
path: root/theme_common/views/assets.xml
diff options
context:
space:
mode:
authorRichard Sassine <richardsassine@tutanota.com>2021-05-04 18:00:38 +0300
committerRichard Sassine <richardsassine@tutanota.com>2021-05-04 18:00:38 +0300
commitad97722b1b35aff50d0adf13a19715f7b8373c07 (patch)
treeedf36f1114b896a01602e31dafd74efe45736427 /theme_common/views/assets.xml
initial commit
Diffstat (limited to 'theme_common/views/assets.xml')
-rw-r--r--theme_common/views/assets.xml49
1 files changed, 49 insertions, 0 deletions
diff --git a/theme_common/views/assets.xml b/theme_common/views/assets.xml
new file mode 100644
index 0000000..5f9f76e
--- /dev/null
+++ b/theme_common/views/assets.xml
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+ <template id="_assets_utils" inherit_id="web._assets_utils">
+ <xpath expr="//link[last()]" position="after">
+ <link rel="stylesheet" type="text/scss" href="/theme_common/static/src/scss/mixins.scss"/>
+ </xpath>
+ </template>
+ <template id="_assets_primary_variables" inherit_id="website._assets_primary_variables" priority="1">
+ <xpath expr="//link[last()]" position="after">
+ <link rel="stylesheet" type="text/scss" href="/theme_common/static/src/scss/primary_variables.scss"/>
+ </xpath>
+ </template>
+ <template id="assets_frontend" inherit_id="website.assets_frontend" priority="1">
+ <xpath expr="//link[last()]" position="after">
+ <link rel="stylesheet" type="text/scss" href="/theme_common/static/src/scss/fonts.scss"/>
+ </xpath>
+ </template>
+
+ <template id="assets_editor" inherit_id="website.assets_editor">
+ <xpath expr="//script[last()]" position="after">
+ <script type="text/javascript" src="/theme_common/static/src/js/compatibility_editor.js"/>
+ </xpath>
+ </template>
+
+ <!-- Compatibility templates -->
+
+ <template id="compatibility-saas-10-1" name="Compatibility for saas-10 - 1" inherit_id="website.assets_frontend" priority="1" active="False">
+ <xpath expr="//link[last()]" position="before">
+ <link rel="stylesheet" type="text/scss" href="/theme_common/static/src/scss/compatibility-saas-10-1.scss"/>
+ </xpath>
+ </template>
+
+ <template id="compatibility-saas-10-2" name="Compatibility for saas-10 - 2" inherit_id="website.assets_frontend" priority="1" active="False">
+ <xpath expr="//link[last()]" position="before">
+ <link rel="stylesheet" type="text/scss" href="/theme_common/static/src/scss/compatibility-saas-10-2.scss"/>
+ </xpath>
+ </template>
+
+ <template id="compatibility-saas-11-4-variables" name="Compatibility for saas-11.4 (variables)" inherit_id="website._assets_primary_variables" priority="1" active="False">
+ <xpath expr="//link[last()]" position="before">
+ <link rel="stylesheet" type="text/scss" href="/theme_common/static/src/scss/compatibility-saas-11.4-variables.scss"/>
+ </xpath>
+ </template>
+ <template id="compatibility-saas-11-4" name="Compatibility for saas-11.4" inherit_id="website.assets_frontend" priority="1" active="False">
+ <xpath expr="//link[last()]" position="before">
+ <link rel="stylesheet" type="text/scss" href="/theme_common/static/src/scss/compatibility-saas-11.4.scss"/>
+ </xpath>
+ </template>
+</odoo>