mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
7b27828755
When shapes were extracted to configurator snippets in [1], some configurator-specific snippets were created that do not appear on pages of the specific theme. Because in [2] the call to `_generate_primary_snippet_templates` is done on a full list of themes instead of only the installed ones, the problem was not noticed: if any theme defines a block, it's website-side configurator-specific template is generated. This is not the case during an upgrade: the templates are generated only for the installed themes. Because of this some "useless" configurator templates trigger an error when importing their XML definition because their parent template does not exist. This commit fixes this by adding those templates in a pseudo page `_` in the `configurator_snippets` entry of each theme's manifest. In master, the templates will be removed instead. [1]: https://github.com/odoo/design-themes/commit/d206c119720d557c11320ebb3d7339890b8f9efa [2]: https://github.com/odoo/odoo/commit/928eeca714a161f6bc03343e4dc8af9b050b9841#diff-f49a1e9eda23df9f1d48121ba376a5fabafe70ea18b29d4eab23d737e5d4eeb6R446 closes odoo/design-themes#751 Related: odoo/odoo#144222 Signed-off-by: Romain Derie (rde) <rde@odoo.com>
62 lines
2.7 KiB
Python
62 lines
2.7 KiB
Python
{
|
|
'name': 'Anelusia Theme',
|
|
'description': 'Anelusia Fashion Theme',
|
|
'category': 'Theme/Retail',
|
|
'summary': 'Diversity, Fashions, Trends, Clothes, Shoes, Sports, Fitness, Stores',
|
|
'sequence': 180,
|
|
'version': '2.1.0',
|
|
'depends': ['theme_common'],
|
|
'data': [
|
|
'data/ir_asset.xml',
|
|
'views/images_content.xml',
|
|
'views/images_library.xml',
|
|
|
|
'views/snippets/s_company_team.xml',
|
|
'views/snippets/s_cover.xml',
|
|
'views/snippets/s_image_gallery.xml',
|
|
'views/snippets/s_media_list.xml',
|
|
'views/snippets/s_text_cover.xml',
|
|
'views/snippets/s_color_blocks_2.xml',
|
|
'views/snippets/s_references.xml',
|
|
'views/snippets/s_call_to_action.xml',
|
|
'views/snippets/s_comparisons.xml',
|
|
'views/snippets/s_product_list.xml',
|
|
'views/snippets/s_product_catalog.xml',
|
|
'views/snippets/s_showcase.xml',
|
|
'views/snippets/s_text_image.xml',
|
|
'views/snippets/s_image_text.xml',
|
|
'views/snippets/s_numbers.xml',
|
|
'views/snippets/s_three_columns.xml',
|
|
'views/snippets/s_quotes_carousel.xml',
|
|
'views/new_page_template.xml',
|
|
],
|
|
'images': [
|
|
'static/description/anelusia_description.jpg',
|
|
'static/description/anelusia_screenshot.jpg',
|
|
],
|
|
'images_preview_theme': {
|
|
'website.s_banner_default_image': '/theme_anelusia/static/src/img/snippets/s_banner.jpg',
|
|
'website.library_image_10': '/theme_anelusia/static/src/img/snippets/library_image_03.jpg',
|
|
'website.library_image_05': '/theme_anelusia/static/src/img/snippets/library_image_13.jpg',
|
|
'website.library_image_08': '/theme_anelusia/static/src/img/snippets/library_image_14.jpg',
|
|
'website.library_image_13': '/theme_anelusia/static/src/img/snippets/library_image_10.jpg',
|
|
'website.library_image_03': '/theme_anelusia/static/src/img/snippets/library_image_05.jpg',
|
|
'website.library_image_02': '/theme_anelusia/static/src/img/snippets/library_image_16.jpg',
|
|
'website.s_media_list_default_image_1': '/theme_anelusia/static/src/img/snippets/s_media_list_1.jpg',
|
|
'website.s_media_list_default_image_2': '/theme_anelusia/static/src/img/snippets/s_media_list_2.jpg',
|
|
},
|
|
'configurator_snippets': {
|
|
'homepage': ['s_text_cover', 's_images_wall', 's_color_blocks_2', 's_references',
|
|
's_media_list', 's_company_team', 's_call_to_action'],
|
|
# TODO In master, remove unused templates instead.
|
|
'_': ['s_comparisons'],
|
|
},
|
|
'license': 'LGPL-3',
|
|
'live_test_url': 'https://theme-anelusia.odoo.com',
|
|
'assets': {
|
|
'website.assets_editor': [
|
|
'theme_anelusia/static/src/js/tour.js',
|
|
],
|
|
}
|
|
}
|