Skip to content

Commit

Permalink
[IMP] theme_*: adapt s_numbers_framed across design themes
Browse files Browse the repository at this point in the history
*: 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
  • Loading branch information
chgo-odoo committed Oct 28, 2024
1 parent 3adf9d6 commit b491e34
Show file tree
Hide file tree
Showing 45 changed files with 520 additions and 0 deletions.
1 change: 1 addition & 0 deletions theme_artists/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@
'views/snippets/s_title_form.xml',
'views/snippets/s_unveil.xml',
'views/snippets/s_empowerment.xml',
'views/snippets/s_numbers_framed.xml',
'views/new_page_template.xml',
],
'images': [
Expand Down
21 changes: 21 additions & 0 deletions theme_artists/views/snippets/s_numbers_framed.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<template id="s_numbers_framed" inherit_id="website.s_numbers_framed">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc5" separator=" "/>
</xpath>
<!-- KPI's -->
<xpath expr="//div[hasclass('col-lg-4')][1]" position="attributes">
<attribute name="class" add="o_cc3" remove="o_cc2" separator=" "/>
</xpath>
<xpath expr="//div[hasclass('col-lg-4')][2]" position="attributes">
<attribute name="class" add="o_cc3" remove="o_cc2" separator=" "/>
</xpath>
<xpath expr="//div[hasclass('col-lg-4')][3]" position="attributes">
<attribute name="class" add="o_cc3" remove="o_cc2" separator=" "/>
</xpath>
</template>

</odoo>
18 changes: 18 additions & 0 deletions theme_avantgarde/views/customizations.xml
Original file line number Diff line number Diff line change
Expand Up @@ -836,4 +836,22 @@
</xpath>
</template>

<!-- ======== NUMBERS FRAMED ======== -->
<template id="s_numbers_framed" inherit_id="website.s_numbers_framed">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc5" separator=" "/>
</xpath>
<!-- KPI's -->
<xpath expr="//div[hasclass('col-lg-4')][1]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
</xpath>
<xpath expr="//div[hasclass('col-lg-4')][2]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
</xpath>
<xpath expr="//div[hasclass('col-lg-4')][3]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
</xpath>
</template>

</odoo>
1 change: 1 addition & 0 deletions theme_aviato/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
'views/snippets/s_images_constellation.xml',
'views/snippets/s_text_cover.xml',
'views/snippets/s_empowerment.xml',
'views/snippets/s_numbers_framed.xml',
'views/new_page_template.xml',
],
'images': [
Expand Down
21 changes: 21 additions & 0 deletions theme_aviato/views/snippets/s_numbers_framed.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<template id="s_numbers_framed" inherit_id="website.s_numbers_framed">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc5" separator=" "/>
</xpath>
<!-- KPI's -->
<xpath expr="//div[hasclass('col-lg-4')][1]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
</xpath>
<xpath expr="//div[hasclass('col-lg-4')][2]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
</xpath>
<xpath expr="//div[hasclass('col-lg-4')][3]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
</xpath>
</template>

</odoo>
1 change: 1 addition & 0 deletions theme_beauty/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
'views/snippets/s_shape_image.xml',
'views/snippets/s_text_cover.xml',
'views/snippets/s_empowerment.xml',
'views/snippets/s_numbers_framed.xml',
'views/new_page_template.xml',
],
'images': [
Expand Down
21 changes: 21 additions & 0 deletions theme_beauty/views/snippets/s_numbers_framed.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<template id="s_numbers_framed" inherit_id="website.s_numbers_framed">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc5" separator=" "/>
</xpath>
<!-- KPI's -->
<xpath expr="//div[hasclass('col-lg-4')][1]" position="attributes">
<attribute name="class" add="o_cc3" remove="o_cc2" separator=" "/>
</xpath>
<xpath expr="//div[hasclass('col-lg-4')][2]" position="attributes">
<attribute name="class" add="o_cc3" remove="o_cc2" separator=" "/>
</xpath>
<xpath expr="//div[hasclass('col-lg-4')][3]" position="attributes">
<attribute name="class" add="o_cc3" remove="o_cc2" separator=" "/>
</xpath>
</template>

</odoo>
18 changes: 18 additions & 0 deletions theme_bewise/views/customizations.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1138,4 +1138,22 @@
</xpath>
</template>

<!-- ======== NUMBERS FRAMED ======== -->
<template id="s_numbers_framed" inherit_id="website.s_numbers_framed">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc5" separator=" "/>
</xpath>
<!-- KPI's -->
<xpath expr="//div[hasclass('col-lg-4')][1]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
</xpath>
<xpath expr="//div[hasclass('col-lg-4')][2]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
</xpath>
<xpath expr="//div[hasclass('col-lg-4')][3]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
</xpath>
</template>

</odoo>
1 change: 1 addition & 0 deletions theme_bistro/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
'views/snippets/s_images_constellation.xml',
'views/snippets/s_text_cover.xml',
'views/snippets/s_empowerment.xml',
'views/snippets/s_numbers_framed.xml',
'views/new_page_template.xml',

],
Expand Down
21 changes: 21 additions & 0 deletions theme_bistro/views/snippets/s_numbers_framed.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<template id="s_numbers_framed" inherit_id="website.s_numbers_framed">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_colored_level o_cc5" separator=" "/>
</xpath>
<!-- KPI's -->
<xpath expr="//div[hasclass('col-lg-4')][1]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
</xpath>
<xpath expr="//div[hasclass('col-lg-4')][2]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
</xpath>
<xpath expr="//div[hasclass('col-lg-4')][3]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
</xpath>
</template>

</odoo>
1 change: 1 addition & 0 deletions theme_bookstore/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
'views/snippets/s_text_cover.xml',
'views/snippets/s_accordion.xml',
'views/snippets/s_accordion_image.xml',
'views/snippets/s_numbers_framed.xml',
'views/new_page_template.xml',
],
'images': [
Expand Down
21 changes: 21 additions & 0 deletions theme_bookstore/views/snippets/s_numbers_framed.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<template id="s_numbers_framed" inherit_id="website.s_numbers_framed">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc5" separator=" "/>
</xpath>
<!-- KPI's -->
<xpath expr="//div[hasclass('col-lg-4')][1]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
</xpath>
<xpath expr="//div[hasclass('col-lg-4')][2]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
</xpath>
<xpath expr="//div[hasclass('col-lg-4')][3]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
</xpath>
</template>

</odoo>
1 change: 1 addition & 0 deletions theme_buzzy/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
'views/snippets/s_image_frame.xml',
'views/snippets/s_wavy_grid.xml',
'views/snippets/s_empowerment.xml',
'views/snippets/s_numbers_framed.xml',
'views/new_page_template.xml',
],
'images': [
Expand Down
21 changes: 21 additions & 0 deletions theme_buzzy/views/snippets/s_numbers_framed.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<template id="s_numbers_framed" inherit_id="website.s_numbers_framed">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc3" separator=" "/>
</xpath>
<!-- KPI's -->
<xpath expr="//div[hasclass('col-lg-4')][1]" position="attributes">
<attribute name="class" add="o_cc1" remove="o_cc2" separator=" "/>
</xpath>
<xpath expr="//div[hasclass('col-lg-4')][2]" position="attributes">
<attribute name="class" add="o_cc1" remove="o_cc2" separator=" "/>
</xpath>
<xpath expr="//div[hasclass('col-lg-4')][3]" position="attributes">
<attribute name="class" add="o_cc1" remove="o_cc2" separator=" "/>
</xpath>
</template>

</odoo>
1 change: 1 addition & 0 deletions theme_clean/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
'views/snippets/s_shape_image.xml',
'views/snippets/s_images_constellation.xml',
'views/snippets/s_empowerment.xml',
'views/snippets/s_numbers_framed.xml',
'views/new_page_template.xml',
],
'images': [
Expand Down
21 changes: 21 additions & 0 deletions theme_clean/views/snippets/s_numbers_framed.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<template id="s_numbers_framed" inherit_id="website.s_numbers_framed">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc3" separator=" "/>
</xpath>
<!-- KPI's -->
<xpath expr="//div[hasclass('col-lg-4')][1]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
</xpath>
<xpath expr="//div[hasclass('col-lg-4')][2]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
</xpath>
<xpath expr="//div[hasclass('col-lg-4')][3]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
</xpath>
</template>

</odoo>
14 changes: 14 additions & 0 deletions theme_cobalt/views/customizations.xml
Original file line number Diff line number Diff line change
Expand Up @@ -706,4 +706,18 @@
</xpath>
</template>

<!-- ======== FRAMED NUMBERS ======== -->
<template id="s_numbers_framed" inherit_id="website.s_numbers_framed">
<!-- KPI's -->
<xpath expr="//div[hasclass('col-lg-4')][1]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
</xpath>
<xpath expr="//div[hasclass('col-lg-4')][2]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
</xpath>
<xpath expr="//div[hasclass('col-lg-4')][3]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
</xpath>
</template>

</odoo>
1 change: 1 addition & 0 deletions theme_enark/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
'views/snippets/s_images_constellation.xml',
'views/snippets/s_text_cover.xml',
'views/snippets/s_empowerment.xml',
'views/snippets/s_numbers_framed.xml',
'views/new_page_template.xml',
],
'images': [
Expand Down
21 changes: 21 additions & 0 deletions theme_enark/views/snippets/s_numbers_framed.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<template id="s_numbers_framed" inherit_id="website.s_numbers_framed">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc5" separator=" "/>
</xpath>
<!-- KPI's -->
<xpath expr="//div[hasclass('col-lg-4')][1]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
</xpath>
<xpath expr="//div[hasclass('col-lg-4')][2]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
</xpath>
<xpath expr="//div[hasclass('col-lg-4')][3]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
</xpath>
</template>

</odoo>
18 changes: 18 additions & 0 deletions theme_graphene/views/customizations.xml
Original file line number Diff line number Diff line change
Expand Up @@ -648,4 +648,22 @@
</xpath>
</template>

<!-- ======== NUMBERS FRAMED ======== -->
<template id="s_numbers_framed" inherit_id="website.s_numbers_framed">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc5" separator=" "/>
</xpath>
<!-- KPI's -->
<xpath expr="//div[hasclass('col-lg-4')][1]" position="attributes">
<attribute name="class" add="o_cc3" remove="o_cc2" separator=" "/>
</xpath>
<xpath expr="//div[hasclass('col-lg-4')][2]" position="attributes">
<attribute name="class" add="o_cc3" remove="o_cc2" separator=" "/>
</xpath>
<xpath expr="//div[hasclass('col-lg-4')][3]" position="attributes">
<attribute name="class" add="o_cc3" remove="o_cc2" separator=" "/>
</xpath>
</template>

</odoo>
1 change: 1 addition & 0 deletions theme_kea/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
'views/snippets/s_wavy_grid.xml',
'views/snippets/s_text_cover.xml',
'views/snippets/s_empowerment.xml',
'views/snippets/s_numbers_framed.xml',
'views/new_page_template.xml',
],
'images': [
Expand Down
17 changes: 17 additions & 0 deletions theme_kea/views/snippets/s_numbers_framed.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<template id="s_numbers_framed" inherit_id="website.s_numbers_framed">
<!-- KPI's -->
<xpath expr="//div[hasclass('col-lg-4')][1]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
</xpath>
<xpath expr="//div[hasclass('col-lg-4')][2]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
</xpath>
<xpath expr="//div[hasclass('col-lg-4')][3]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
</xpath>
</template>

</odoo>
1 change: 1 addition & 0 deletions theme_kiddo/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
'views/snippets/s_images_constellation.xml',
'views/snippets/s_text_cover.xml',
'views/snippets/s_empowerment.xml',
'views/snippets/s_numbers_framed.xml',
'views/new_page_template.xml',
],
'images': [
Expand Down
17 changes: 17 additions & 0 deletions theme_kiddo/views/snippets/s_numbers_framed.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<template id="s_numbers_framed" inherit_id="website.s_numbers_framed">
<!-- KPI's -->
<xpath expr="//div[hasclass('col-lg-4')][1]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
</xpath>
<xpath expr="//div[hasclass('col-lg-4')][2]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
</xpath>
<xpath expr="//div[hasclass('col-lg-4')][3]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
</xpath>
</template>

</odoo>
1 change: 1 addition & 0 deletions theme_loftspace/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
'views/snippets/s_wavy_grid.xml',
'views/snippets/s_text_cover.xml',
'views/snippets/s_empowerment.xml',
'views/snippets/s_numbers_framed.xml',
'views/new_page_template.xml',
],
'images': [
Expand Down
Loading

0 comments on commit b491e34

Please sign in to comment.