Skip to content

Commit

Permalink
[IMP] theme_artists, *: adapt s_tabs_images
Browse files Browse the repository at this point in the history
*: theme_bistro, theme_buzzy, theme_nano, theme_notes, theme_treehouse,
theme_zap

This commit adapts customizations for `s_tabs_images`.

task-4094407
Part of task-4077427
  • Loading branch information
Brieuc-brd committed Oct 29, 2024
1 parent 3adf9d6 commit 5c1ffd6
Show file tree
Hide file tree
Showing 11 changed files with 78 additions and 1 deletion.
1 change: 1 addition & 0 deletions test_themes/tests/test_new_page_templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@
's_timeline_card',
's_website_form_custom', 's_website_form_dnone', 's_website_form_field', 's_website_form_input', 's_website_form_mark', 's_website_form_submit', 's_website_form_no_submit_label',
's_donation_btn', 's_donation_custom_btn',
's_tabs_common', 's_tabs_nav_vertical', 's_tabs_nav_with_decriptions',
],
# Text
re.compile(r'^text-(?!(center|end|start|bg-|lg-)).*$'): [
Expand Down
1 change: 1 addition & 0 deletions theme_artists/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
'views/snippets/s_striped.xml',
'views/snippets/s_table_of_content.xml',
'views/snippets/s_tabs.xml',
'views/snippets/s_tabs_images.xml',
'views/snippets/s_timeline.xml',
'views/snippets/s_timeline_list.xml',
'views/snippets/s_title_form.xml',
Expand Down
11 changes: 11 additions & 0 deletions theme_artists/views/snippets/s_tabs_images.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_tabs_images" inherit_id="website.s_tabs_images">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc o_cc5" separator=" "/>
</xpath>
</template>

</odoo>
7 changes: 7 additions & 0 deletions theme_bistro/views/images_library.xml
Original file line number Diff line number Diff line change
Expand Up @@ -591,4 +591,11 @@
<field name="url">/theme_bistro/static/src/img/backgrounds/17.jpg</field>
</record>

<!-- Tabs Images -->
<record id="s_tabs_images_default_image_5" model="theme.ir.attachment">
<field name="key">website.s_tabs_images_default_image_5</field>
<field name="name">website.s_tabs_images_default_image_5</field>
<field name="url">/theme_bistro/static/src/img/backgrounds/12.jpg</field>
</record>

</odoo>
12 changes: 11 additions & 1 deletion theme_buzzy/views/images_library.xml
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,16 @@
<field name="name">website.s_key_images_default_image_4</field>
<field name="url">/theme_buzzy/static/src/img/photos/s_images_mosaic_default_image_4.jpg</field>
</record>

<!-- Tabs Images -->
<record id="s_tabs_images_default_image_4" model="theme.ir.attachment">
<field name="key">website.s_tabs_images_default_image_4</field>
<field name="name">website.s_tabs_images_default_image_4</field>
<field name="url">/theme_buzzy/static/src/img/photos/s_cover_default_image.jpg</field>
</record>
<record id="s_tabs_images_default_image_5" model="theme.ir.attachment">
<field name="key">website.s_tabs_images_default_image_5</field>
<field name="name">website.s_tabs_images_default_image_5</field>
<field name="url">/theme_buzzy/static/src/img/photos/library_image_13.jpg</field>
</record>

</odoo>
1 change: 1 addition & 0 deletions theme_nano/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
'views/snippets/s_numbers_showcase.xml',
'views/snippets/s_key_benefits.xml',
'views/snippets/s_striped_center_top.xml',
'views/snippets/s_tabs_images.xml',
'views/snippets/s_big_number.xml',
'views/snippets/s_image_frame.xml',
'views/snippets/s_shape_image.xml',
Expand Down
11 changes: 11 additions & 0 deletions theme_nano/views/snippets/s_tabs_images.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_tabs_images" inherit_id="website.s_tabs_images">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc o_cc5" 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 @@ -15,6 +15,7 @@
'views/snippets/s_carousel.xml',
'views/snippets/s_striped.xml',
'views/snippets/s_striped_top.xml',
'views/snippets/s_tabs_images.xml',
'views/snippets/s_cards_grid.xml',
'views/snippets/s_carousel_intro.xml',
'views/snippets/s_image_text.xml',
Expand Down
11 changes: 11 additions & 0 deletions theme_notes/views/snippets/s_tabs_images.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_tabs_images" inherit_id="website.s_tabs_images">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc o_cc5" separator=" "/>
</xpath>
</template>

</odoo>
11 changes: 11 additions & 0 deletions theme_treehouse/views/images_library.xml
Original file line number Diff line number Diff line change
Expand Up @@ -554,5 +554,16 @@
<field name="name">website.s_faq_horizontal_default_image_1</field>
<field name="url">/theme_treehouse/static/src/img/backgrounds/15.jpg</field>
</record>
<!-- Tabs Images -->
<record id="s_tabs_images_default_image_4" model="theme.ir.attachment">
<field name="key">website.s_tabs_images_default_image_4</field>
<field name="name">website.s_tabs_images_default_image_4</field>
<field name="url">/theme_treehouse/static/src/img/backgrounds/16.jpg</field>
</record>
<record id="s_tabs_images_default_image_5" model="theme.ir.attachment">
<field name="key">website.s_tabs_images_default_image_5</field>
<field name="name">website.s_tabs_images_default_image_5</field>
<field name="url">/theme_treehouse/static/src/img/backgrounds/10.jpg</field>
</record>

</odoo>
12 changes: 12 additions & 0 deletions theme_zap/views/images_library.xml
Original file line number Diff line number Diff line change
Expand Up @@ -482,4 +482,16 @@
<field name="url">/theme_zap/static/src/img/content/s_text_cover.jpg</field>
</record>

<!-- Tabs Images -->
<record id="s_tabs_images_default_image_4" model="theme.ir.attachment">
<field name="key">website.s_tabs_images_default_image_4</field>
<field name="name">website.s_tabs_images_default_image_4</field>
<field name="url">/theme_zap/static/src/img/backgrounds/13.jpg</field>
</record>
<record id="s_tabs_images_default_image_5" model="theme.ir.attachment">
<field name="key">website.s_tabs_images_default_image_5</field>
<field name="name">website.s_tabs_images_default_image_5</field>
<field name="url">/theme_zap/static/src/img/backgrounds/06.jpg</field>
</record>

</odoo>

0 comments on commit 5c1ffd6

Please sign in to comment.