-
Notifications
You must be signed in to change notification settings - Fork 236
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] theme_*: adapt themes with new
s_company_team_spotlight
snippet
*: 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
Showing
17 changed files
with
191 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?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=" "/> | ||
</xpath> | ||
<!-- Team Member 2 --> | ||
<xpath expr="(//div[hasclass('card')])[2]" position="attributes"> | ||
<attribute name="class" add="o_cc4" remove="o_cc1" separator=" "/> | ||
</xpath> | ||
<!-- Team Member 3 --> | ||
<xpath expr="(//div[hasclass('card')])[3]" position="attributes"> | ||
<attribute name="class" add="o_cc4" remove="o_cc1" separator=" "/> | ||
</xpath> | ||
<!-- Team Member 4 --> | ||
<xpath expr="(//div[hasclass('card')])[4]" position="attributes"> | ||
<attribute name="class" add="o_cc4" remove="o_cc1" separator=" "/> | ||
</xpath> | ||
</template> | ||
|
||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 o_colored_level" remove="o_cc1" separator=" "/> | ||
</xpath> | ||
</template> | ||
|
||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
theme_bookstore/views/snippets/s_company_team_spotlight.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<odoo> | ||
|
||
<template id="s_company_team_spotlight" inherit_id="website.s_company_team_spotlight"> | ||
<!-- Team #01 --> | ||
<xpath expr="//p" position="replace" mode="inner"> | ||
Store Manager | ||
</xpath> | ||
<!-- Team #02 --> | ||
<xpath expr="(//p)[2]" position="replace" mode="inner"> | ||
Bookseller | ||
</xpath> | ||
<!-- Team #03 --> | ||
<xpath expr="(//p)[3]" position="replace" mode="inner"> | ||
Assistant Manager | ||
</xpath> | ||
<!-- Team #04 --> | ||
<xpath expr="(//p)[4]" position="replace" mode="inner"> | ||
Inventory Specialist | ||
</xpath> | ||
</template> | ||
|
||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<odoo> | ||
|
||
<template id="s_company_team_spotlight" inherit_id="website.s_company_team_spotlight"> | ||
<!-- Team #01 --> | ||
<xpath expr="//p" position="replace" mode="inner"> | ||
Teacher | ||
</xpath> | ||
<!-- Team #02 --> | ||
<xpath expr="(//p)[2]" position="replace" mode="inner"> | ||
Child Development Specialist | ||
</xpath> | ||
<!-- Team #03 --> | ||
<xpath expr="(//p)[3]" position="replace" mode="inner"> | ||
Caretaker | ||
</xpath> | ||
<!-- Team #04 --> | ||
<xpath expr="(//p)[4]" position="replace" mode="inner"> | ||
Nurse | ||
</xpath> | ||
</template> | ||
|
||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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_cc5 o_colored_level" remove="o_cc1" separator=" "/> | ||
</xpath> | ||
</template> | ||
|
||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<odoo> | ||
|
||
<template id="s_company_team_spotlight" inherit_id="website.s_company_team_spotlight"> | ||
<!-- Team #01 --> | ||
<xpath expr="//p" position="replace" mode="inner"> | ||
Floral Designer | ||
</xpath> | ||
<!-- Team #02 --> | ||
<xpath expr="(//p)[2]" position="replace" mode="inner"> | ||
Floral Arranger | ||
</xpath> | ||
<!-- Team #03 --> | ||
<xpath expr="(//p)[3]" position="replace" mode="inner"> | ||
Flower Specialist | ||
</xpath> | ||
<!-- Team #04 --> | ||
<xpath expr="(//p)[4]" position="replace" mode="inner"> | ||
Floral Artist | ||
</xpath> | ||
</template> | ||
|
||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<odoo> | ||
|
||
<template id="s_company_team_spotlight" inherit_id="website.s_company_team_spotlight"> | ||
<!-- Team #01 --> | ||
<xpath expr="//p" position="replace" mode="inner"> | ||
Wedding Planner | ||
</xpath> | ||
<!-- Team #02 --> | ||
<xpath expr="(//p)[2]" position="replace" mode="inner"> | ||
Venue Coordinator | ||
</xpath> | ||
<!-- Team #03 --> | ||
<xpath expr="(//p)[3]" position="replace" mode="inner"> | ||
Floral Designer | ||
</xpath> | ||
<!-- Team #04 --> | ||
<xpath expr="(//p)[4]" position="replace" mode="inner"> | ||
Catering Manager | ||
</xpath> | ||
</template> | ||
|
||
</odoo> |