Skip to content

Commit

Permalink
[IMP] theme_*: adapt themes with new s_company_team_spotlight snippet
Browse files Browse the repository at this point in the history
*: artists, aviato, bistro, bookstore, kiddo, notes, orchid, vehicle,
yes

This commit adapts the design of `s_company_team_spotlight` for multiple themes,
based on the new Odoo 18 snippet redesign.

task-4147920
Part-of: task-4077427
  • Loading branch information
xlu-odoo committed Oct 23, 2024
1 parent d9af188 commit 0945395
Show file tree
Hide file tree
Showing 10 changed files with 91 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 @@ -61,6 +61,7 @@
'views/snippets/s_freegrid.xml',
'views/snippets/s_company_team.xml',
'views/snippets/s_company_team_basic.xml',
'views/snippets/s_company_team_spotlight.xml',
'views/snippets/s_product_list.xml',
'views/snippets/s_color_blocks_2.xml',
'views/snippets/s_company_team_shapes.xml',
Expand Down
31 changes: 31 additions & 0 deletions theme_artists/views/snippets/s_company_team_spotlight.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<template id="s_company_team_spotlight" inherit_id="website.s_company_team_spotlight" name="Artists s_company_team_spotlight">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc5" remove="o_cc1" separator=" "/>
</xpath>
<!-- Team Member 1 -->
<xpath expr="//div[hasclass('card')]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc1" separator=" "/>
<attribute name="style">border-width: 0px !important; border-radius: 0px !important;</attribute>
</xpath>
<!-- Team Member 2 -->
<xpath expr="(//div[hasclass('card')])[2]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc1" separator=" "/>
<attribute name="style">border-width: 0px !important; border-radius: 0px !important;</attribute>
</xpath>
<!-- Team Member 3 -->
<xpath expr="(//div[hasclass('card')])[3]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc1" separator=" "/>
<attribute name="style">border-width: 0px !important; border-radius: 0px !important;</attribute>
</xpath>
<!-- Team Member 4 -->
<xpath expr="(//div[hasclass('card')])[4]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc1" separator=" "/>
<attribute name="style">border-width: 0px !important; border-radius: 0px !important;</attribute>
</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_company_team_spotlight.xml',
'views/new_page_template.xml',
],
'images': [
Expand Down
22 changes: 22 additions & 0 deletions theme_aviato/views/snippets/s_company_team_spotlight.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<template id="s_company_team_spotlight" inherit_id="website.s_company_team_spotlight" name="Aviato s_company_team_spotlight">
<xpath expr="//div[hasclass('card')]" position="attributes">
<attribute name="class" add="border" separator=" "/>
</xpath>
<!-- Team Member 2 -->
<xpath expr="(//div[hasclass('card')])[2]" position="attributes">
<attribute name="class" add="border" separator=" "/>
</xpath>
<!-- Team Member 3 -->
<xpath expr="(//div[hasclass('card')])[3]" position="attributes">
<attribute name="class" add="border" separator=" "/>
</xpath>
<!-- Team Member 4 -->
<xpath expr="(//div[hasclass('card')])[4]" position="attributes">
<attribute name="class" add="border" 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 @@ -43,6 +43,7 @@
'views/snippets/s_striped_center_top.xml',
'views/snippets/s_motto.xml',
'views/snippets/s_key_images.xml',
'views/snippets/s_company_team_spotlight.xml',
'views/snippets/s_striped_top.xml',
'views/snippets/s_quadrant.xml',
'views/snippets/s_intro_pill.xml',
Expand Down
11 changes: 11 additions & 0 deletions theme_bistro/views/snippets/s_company_team_spotlight.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<template id="s_company_team_spotlight" inherit_id="website.s_company_team_spotlight" name="Bistro s_company_team_spotlight">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc5" remove="o_cc1" separator=" "/>
</xpath>
</template>

</odoo>
1 change: 1 addition & 0 deletions theme_nano/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
'views/snippets/s_numbers.xml',
'views/snippets/s_image_text_overlap.xml',
'views/snippets/s_company_team_basic.xml',
'views/snippets/s_company_team_spotlight.xml',
'views/new_page_template.xml',
],
'images': [
Expand Down
11 changes: 11 additions & 0 deletions theme_nano/views/snippets/s_company_team_spotlight.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<template id="s_company_team_spotlight" inherit_id="website.s_company_team_spotlight" name="Nano s_company_team_spotlight">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc5" remove="o_cc1" separator=" "/>
</xpath>
</template>

</odoo>
1 change: 1 addition & 0 deletions theme_notes/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
'views/snippets/s_image_hexagonal.xml',
'views/snippets/s_striped_center_top.xml',
'views/snippets/s_key_images.xml',
'views/snippets/s_company_team_spotlight.xml',
'views/snippets/s_quadrant.xml',
'views/snippets/s_intro_pill.xml',
'views/snippets/s_big_number.xml',
Expand Down
11 changes: 11 additions & 0 deletions theme_notes/views/snippets/s_company_team_spotlight.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<template id="s_company_team_spotlight" inherit_id="website.s_company_team_spotlight" name="Notes s_company_team_spotlight">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc3" remove="o_cc1" separator=" "/>
</xpath>
</template>

</odoo>

0 comments on commit 0945395

Please sign in to comment.