Skip to content

Commit f4539c4

Browse files
committed
[IMP] theme_*: adapt s_numbers_framed across design themes
*: artists, avantgarde, aviato, beauty, bewise, bistro, bookstore, buzzy, clean, cobalt, enark, graphene, kea, kiddo, loftspace, monglia, nano, botes, odoo_experts, orchid, paptic, real_estate, treehouse, vehicle, yes,zap. This commit adapts the design of the `s_numbers_framed` occurrences across design themes. task-4094384 Part of task-4077427 closes #1000 Related: odoo/odoo#175700 Signed-off-by: Christopher du Toit (chto) <[email protected]>
1 parent 0a08e9d commit f4539c4

File tree

45 files changed

+520
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+520
-0
lines changed

theme_artists/__manifest__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@
108108
'views/snippets/s_numbers_boxed.xml',
109109
'views/snippets/s_split_intro.xml',
110110
'views/snippets/s_form_aside.xml',
111+
'views/snippets/s_numbers_framed.xml',
111112
'views/new_page_template.xml',
112113
],
113114
'images': [
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<odoo>
3+
4+
<template id="s_numbers_framed" inherit_id="website.s_numbers_framed">
5+
<!-- Section -->
6+
<xpath expr="//section" position="attributes">
7+
<attribute name="class" add="o_cc5" separator=" "/>
8+
</xpath>
9+
<!-- KPI's -->
10+
<xpath expr="//div[hasclass('col-lg-4')][1]" position="attributes">
11+
<attribute name="class" add="o_cc3" remove="o_cc2" separator=" "/>
12+
</xpath>
13+
<xpath expr="//div[hasclass('col-lg-4')][2]" position="attributes">
14+
<attribute name="class" add="o_cc3" remove="o_cc2" separator=" "/>
15+
</xpath>
16+
<xpath expr="//div[hasclass('col-lg-4')][3]" position="attributes">
17+
<attribute name="class" add="o_cc3" remove="o_cc2" separator=" "/>
18+
</xpath>
19+
</template>
20+
21+
</odoo>

theme_avantgarde/views/customizations.xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -935,4 +935,22 @@
935935
</xpath>
936936
</template>
937937

938+
<!-- ======== NUMBERS FRAMED ======== -->
939+
<template id="s_numbers_framed" inherit_id="website.s_numbers_framed">
940+
<!-- Section -->
941+
<xpath expr="//section" position="attributes">
942+
<attribute name="class" add="o_cc5" separator=" "/>
943+
</xpath>
944+
<!-- KPI's -->
945+
<xpath expr="//div[hasclass('col-lg-4')][1]" position="attributes">
946+
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
947+
</xpath>
948+
<xpath expr="//div[hasclass('col-lg-4')][2]" position="attributes">
949+
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
950+
</xpath>
951+
<xpath expr="//div[hasclass('col-lg-4')][3]" position="attributes">
952+
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
953+
</xpath>
954+
</template>
955+
938956
</odoo>

theme_aviato/__manifest__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
'views/snippets/s_company_team_spotlight.xml',
6060
'views/snippets/s_numbers_boxed.xml',
6161
'views/snippets/s_split_intro.xml',
62+
'views/snippets/s_numbers_framed.xml',
6263
'views/new_page_template.xml',
6364
],
6465
'images': [
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<odoo>
3+
4+
<template id="s_numbers_framed" inherit_id="website.s_numbers_framed">
5+
<!-- Section -->
6+
<xpath expr="//section" position="attributes">
7+
<attribute name="class" add="o_cc5" separator=" "/>
8+
</xpath>
9+
<!-- KPI's -->
10+
<xpath expr="//div[hasclass('col-lg-4')][1]" position="attributes">
11+
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
12+
</xpath>
13+
<xpath expr="//div[hasclass('col-lg-4')][2]" position="attributes">
14+
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
15+
</xpath>
16+
<xpath expr="//div[hasclass('col-lg-4')][3]" position="attributes">
17+
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
18+
</xpath>
19+
</template>
20+
21+
</odoo>

theme_beauty/__manifest__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
'views/snippets/s_empowerment.xml',
6363
'views/snippets/s_numbers_boxed.xml',
6464
'views/snippets/s_split_intro.xml',
65+
'views/snippets/s_numbers_framed.xml',
6566
'views/new_page_template.xml',
6667
],
6768
'images': [
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<odoo>
3+
4+
<template id="s_numbers_framed" inherit_id="website.s_numbers_framed">
5+
<!-- Section -->
6+
<xpath expr="//section" position="attributes">
7+
<attribute name="class" add="o_cc5" separator=" "/>
8+
</xpath>
9+
<!-- KPI's -->
10+
<xpath expr="//div[hasclass('col-lg-4')][1]" position="attributes">
11+
<attribute name="class" add="o_cc3" remove="o_cc2" separator=" "/>
12+
</xpath>
13+
<xpath expr="//div[hasclass('col-lg-4')][2]" position="attributes">
14+
<attribute name="class" add="o_cc3" remove="o_cc2" separator=" "/>
15+
</xpath>
16+
<xpath expr="//div[hasclass('col-lg-4')][3]" position="attributes">
17+
<attribute name="class" add="o_cc3" remove="o_cc2" separator=" "/>
18+
</xpath>
19+
</template>
20+
21+
</odoo>

theme_bewise/views/customizations.xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1211,4 +1211,22 @@
12111211
</xpath>
12121212
</template>
12131213

1214+
<!-- ======== NUMBERS FRAMED ======== -->
1215+
<template id="s_numbers_framed" inherit_id="website.s_numbers_framed">
1216+
<!-- Section -->
1217+
<xpath expr="//section" position="attributes">
1218+
<attribute name="class" add="o_cc5" separator=" "/>
1219+
</xpath>
1220+
<!-- KPI's -->
1221+
<xpath expr="//div[hasclass('col-lg-4')][1]" position="attributes">
1222+
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
1223+
</xpath>
1224+
<xpath expr="//div[hasclass('col-lg-4')][2]" position="attributes">
1225+
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
1226+
</xpath>
1227+
<xpath expr="//div[hasclass('col-lg-4')][3]" position="attributes">
1228+
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
1229+
</xpath>
1230+
</template>
1231+
12141232
</odoo>

theme_bistro/__manifest__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
'views/snippets/s_company_team_grid.xml',
6060
'views/snippets/s_numbers_boxed.xml',
6161
'views/snippets/s_split_intro.xml',
62+
'views/snippets/s_numbers_framed.xml',
6263
'views/new_page_template.xml',
6364

6465
],
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<odoo>
3+
4+
<template id="s_numbers_framed" inherit_id="website.s_numbers_framed">
5+
<!-- Section -->
6+
<xpath expr="//section" position="attributes">
7+
<attribute name="class" add="o_cc5" separator=" "/>
8+
</xpath>
9+
<!-- KPI's -->
10+
<xpath expr="//div[hasclass('col-lg-4')][1]" position="attributes">
11+
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
12+
</xpath>
13+
<xpath expr="//div[hasclass('col-lg-4')][2]" position="attributes">
14+
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
15+
</xpath>
16+
<xpath expr="//div[hasclass('col-lg-4')][3]" position="attributes">
17+
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
18+
</xpath>
19+
</template>
20+
21+
</odoo>

0 commit comments

Comments
 (0)