Skip to content

Commit b2beaaf

Browse files
committed
[IMP] theme_anelusia, *: adapt s_quotes_carousel_compact
*: theme_artists, theme_clean, theme_enark, theme_loftspace, theme_nano, theme_notes This commit adapts customizations for `s_quotes_carousel_compact`. task-4174008 Part of task-4077427 closes #993 Related: odoo/odoo#184670 Signed-off-by: Serge Bayet (seba) <[email protected]>
1 parent bd8ff4c commit b2beaaf

File tree

14 files changed

+141
-0
lines changed

14 files changed

+141
-0
lines changed

theme_anelusia/__manifest__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
'views/snippets/s_three_columns.xml',
4949
'views/snippets/s_quotes_carousel.xml',
5050
'views/snippets/s_quotes_carousel_minimal.xml',
51+
'views/snippets/s_quotes_carousel_compact.xml',
5152
'views/snippets/s_unveil.xml',
5253
'views/snippets/s_image_hexagonal.xml',
5354
'views/snippets/s_numbers_showcase.xml',
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<odoo>
3+
4+
<template id="s_quotes_carousel_compact" inherit_id="website.s_quotes_carousel_compact">
5+
<xpath expr="//div[hasclass('s_quotes_carousel_compact')]" position="attributes">
6+
<attribute name="class" remove="o_cc2 carousel-dark" add="o_cc5" separator=" "/>
7+
</xpath>
8+
<xpath expr="//div[hasclass('carousel-item')]" position="attributes">
9+
<attribute name="class" remove="o_cc2" add="o_cc5" separator=" "/>
10+
</xpath>
11+
<xpath expr="(//div[hasclass('carousel-item')])[2]" position="attributes">
12+
<attribute name="class" remove="o_cc2" add="o_cc5" separator=" "/>
13+
</xpath>
14+
<xpath expr="(//div[hasclass('carousel-item')])[3]" position="attributes">
15+
<attribute name="class" remove="o_cc2" add="o_cc5" separator=" "/>
16+
</xpath>
17+
</template>
18+
19+
</odoo>

theme_artists/__manifest__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
'views/snippets/s_product_catalog.xml',
6060
'views/snippets/s_quotes_carousel.xml',
6161
'views/snippets/s_quotes_carousel_minimal.xml',
62+
'views/snippets/s_quotes_carousel_compact.xml',
6263
'views/snippets/s_comparisons.xml',
6364
'views/snippets/s_freegrid.xml',
6465
'views/snippets/s_company_team.xml',
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<odoo>
3+
4+
<template id="s_quotes_carousel_compact" inherit_id="website.s_quotes_carousel_compact">
5+
<xpath expr="//div[hasclass('s_quotes_carousel_compact')]" position="attributes">
6+
<attribute name="class" remove="o_cc2 carousel-dark" add="o_cc5" separator=" "/>
7+
</xpath>
8+
<xpath expr="//div[hasclass('carousel-item')]" position="attributes">
9+
<attribute name="class" remove="o_cc2" add="o_cc5" separator=" "/>
10+
</xpath>
11+
<xpath expr="(//div[hasclass('carousel-item')])[2]" position="attributes">
12+
<attribute name="class" remove="o_cc2" add="o_cc5" separator=" "/>
13+
</xpath>
14+
<xpath expr="(//div[hasclass('carousel-item')])[3]" position="attributes">
15+
<attribute name="class" remove="o_cc2" add="o_cc5" separator=" "/>
16+
</xpath>
17+
</template>
18+
19+
</odoo>

theme_clean/__manifest__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
'views/snippets/s_comparisons.xml',
3535
'views/snippets/s_product_catalog.xml',
3636
'views/snippets/s_quotes_carousel.xml',
37+
'views/snippets/s_quotes_carousel_compact.xml',
3738
'views/snippets/s_unveil.xml',
3839
'views/snippets/s_numbers_showcase.xml',
3940
'views/snippets/s_key_benefits.xml',
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<odoo>
3+
4+
<template id="s_quotes_carousel_compact" inherit_id="website.s_quotes_carousel_compact">
5+
<!-- Section -->
6+
<xpath expr="//div[hasclass('s_quotes_carousel_compact')]" position="attributes">
7+
<attribute name="class" add="o_cc4" remove="o_cc2 carousel-dark" separator=" "/>
8+
</xpath>
9+
<xpath expr="//div[hasclass('carousel-item')]" position="attributes">
10+
<attribute name="class" remove="o_cc2" add="o_cc4" separator=" "/>
11+
</xpath>
12+
<xpath expr="(//div[hasclass('carousel-item')])[2]" position="attributes">
13+
<attribute name="class" remove="o_cc2" add="o_cc4" separator=" "/>
14+
</xpath>
15+
<xpath expr="(//div[hasclass('carousel-item')])[3]" position="attributes">
16+
<attribute name="class" remove="o_cc2" add="o_cc4" separator=" "/>
17+
</xpath>
18+
</template>
19+
20+
</odoo>

theme_enark/__manifest__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
'views/snippets/s_title.xml',
2626
'views/snippets/s_picture.xml',
2727
'views/snippets/s_quotes_carousel_minimal.xml',
28+
'views/snippets/s_quotes_carousel_compact.xml',
2829
'views/snippets/s_pricelist_boxed.xml',
2930
'views/snippets/s_freegrid.xml',
3031
'views/snippets/s_sidegrid.xml',
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<odoo>
3+
4+
<template id="s_quotes_carousel_compact" inherit_id="website.s_quotes_carousel_compact">
5+
<xpath expr="//div[hasclass('s_quotes_carousel_compact')]" position="attributes">
6+
<attribute name="class" remove="o_cc2 carousel-dark" add="o_cc5" separator=" "/>
7+
</xpath>
8+
<xpath expr="//div[hasclass('carousel-item')]" position="attributes">
9+
<attribute name="class" remove="o_cc2" add="o_cc5" separator=" "/>
10+
</xpath>
11+
<xpath expr="(//div[hasclass('carousel-item')])[2]" position="attributes">
12+
<attribute name="class" remove="o_cc2" add="o_cc5" separator=" "/>
13+
</xpath>
14+
<xpath expr="(//div[hasclass('carousel-item')])[3]" position="attributes">
15+
<attribute name="class" remove="o_cc2" add="o_cc5" separator=" "/>
16+
</xpath>
17+
</template>
18+
19+
</odoo>

theme_loftspace/__manifest__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
'views/snippets/s_comparisons.xml',
3939
'views/snippets/s_product_catalog.xml',
4040
'views/snippets/s_quotes_carousel_minimal.xml',
41+
'views/snippets/s_quotes_carousel_compact.xml',
4142
'views/snippets/s_unveil.xml',
4243
'views/snippets/s_key_benefits.xml',
4344
'views/snippets/s_carousel.xml',
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<odoo>
3+
4+
<template id="s_quotes_carousel_compact" inherit_id="website.s_quotes_carousel_compact">
5+
<xpath expr="//div[hasclass('s_quotes_carousel_compact')]" position="attributes">
6+
<attribute name="class" remove="o_cc2 carousel-dark" add="o_cc5" separator=" "/>
7+
</xpath>
8+
<xpath expr="//div[hasclass('carousel-item')]" position="attributes">
9+
<attribute name="class" remove="o_cc2" add="o_cc5" separator=" "/>
10+
</xpath>
11+
<xpath expr="(//div[hasclass('carousel-item')])[2]" position="attributes">
12+
<attribute name="class" remove="o_cc2" add="o_cc5" separator=" "/>
13+
</xpath>
14+
<xpath expr="(//div[hasclass('carousel-item')])[3]" position="attributes">
15+
<attribute name="class" remove="o_cc2" add="o_cc5" separator=" "/>
16+
</xpath>
17+
</template>
18+
19+
</odoo>

0 commit comments

Comments
 (0)