[REF] *: adapt to header templates revision at [1]

*: theme_cobalt, theme_paptic

[1]: https://github.com/odoo/odoo/pull/68149

closes odoo/design-themes#11

Related: odoo/upgrade#2294
Related: odoo/odoo#68149
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
This commit is contained in:
qsm-odoo
2021-08-18 08:44:25 +00:00
parent 57e63ad290
commit 591d4c27fb
2 changed files with 3 additions and 15 deletions
+2 -8
View File
@@ -5,14 +5,8 @@
<!-- ==== Headers ===== -->
<template id="header_shadow" inherit_id="website.template_header_default" name="Cobalt Header Shadow">
<xpath expr="//nav" position="attributes">
<attribute name="class" remove="shadow-sm" separator=" "/>
</xpath>
</template>
<template id="header_button" inherit_id="website.template_header_default_oe_structure_header_default_1" name="Cobalt Header Button">
<xpath expr="//a[hasclass('btn')]" position="attributes">
<attribute name="class" add="btn-secondary" remove="btn-primary" separator=" "/>
<xpath expr="//t[@t-set='_navbar_classes']" position="attributes">
<attribute name="t-valuef" remove="shadow-sm" separator=" "/>
</xpath>
</template>
+1 -7
View File
@@ -5,17 +5,11 @@
<!-- ==== Headers ===== -->
<template id="header_shadow" inherit_id="website.template_header_default" name="Paptic Header Shadow">
<xpath expr="//nav" position="attributes">
<xpath expr="//t[@t-set='_navbar_classes']" position="attributes">
<attribute name="class" remove="shadow-sm" separator=" "/>
</xpath>
</template>
<template id="header_button" inherit_id="website.template_header_default_oe_structure_header_default_1" name="Paptic Header Button">
<xpath expr="//a[hasclass('btn')]" position="attributes">
<attribute name="class" add="btn-secondary" remove="btn-primary" separator=" "/>
</xpath>
</template>
<!-- Snippets -->