Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IMP] theme_*: adapt s_numbers_framed across design themes #1000

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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