Files
design-themes/theme_bookstore/__manifest__.py
T
Benoit Socias 599984eea1 [FIX] theme_*: call _generate_primary_templates before importing data
To make sure the required primary templates have been generated from
the theme's manifest when inherited views are imported/updated, this
commit triggers their generation from a first imported XML file.

This has been added to all themes for consistency, even the ones that
do not require it currently.

Related to https://github.com/odoo/odoo/pull/148443

task-3670496

Part-of: odoo/design-themes#755
2024-01-22 19:00:59 +00:00

73 lines
3.4 KiB
Python

{
'name': 'Bookstore Theme',
'description': 'Books, Magazines, Music',
'category': 'Theme/Retail',
'summary': 'Library, Books, Magazines, Literature, Musics, Media, Store',
'sequence': 250,
'version': '2.1.0',
'depends': ['theme_common'],
'data': [
'data/generate_primary_template.xml',
'data/ir_asset.xml',
'views/images.xml',
'views/snippets/s_title.xml',
'views/snippets/s_three_columns.xml',
'views/snippets/s_picture.xml',
'views/snippets/s_text_image.xml',
'views/snippets/s_product_list.xml',
'views/snippets/s_call_to_action.xml',
'views/snippets/s_cover.xml',
'views/snippets/s_image_text.xml',
'views/snippets/s_masonry_block.xml',
'views/snippets/s_banner.xml',
'views/snippets/s_numbers.xml',
'views/snippets/s_media_list.xml',
'views/snippets/s_comparisons.xml',
'views/snippets/s_features_grid.xml',
'views/snippets/s_product_catalog.xml',
'views/snippets/s_quotes_carousel.xml',
'views/new_page_template.xml',
],
'images': [
'static/description/bookstore_description.jpg',
'static/description/bookstore_screenshot.jpg',
],
'images_preview_theme': {
'website.s_cover_default_image': '/theme_bookstore/static/src/img/snippets/s_cover.jpg',
'website.s_masonry_block_default_image_1': '/theme_bookstore/static/src/img/snippets/s_masonry_block.jpg',
'website.s_picture_default_image': '/theme_bookstore/static/src/img/snippets/s_picture.jpg',
'website.s_product_list_default_image_1': '/theme_bookstore/static/src/img/snippets/s_product_1.jpg',
'website.s_product_list_default_image_2': '/theme_bookstore/static/src/img/snippets/s_product_2.jpg',
'website.s_product_list_default_image_3': '/theme_bookstore/static/src/img/snippets/s_product_3.jpg',
'website.s_product_list_default_image_4': '/theme_bookstore/static/src/img/snippets/s_product_4.jpg',
'website.s_product_list_default_image_5': '/theme_bookstore/static/src/img/snippets/s_product_5.jpg',
'website.s_product_list_default_image_6': '/theme_bookstore/static/src/img/snippets/s_product_6.jpg',
},
'configurator_snippets': {
'homepage': ['s_cover', 's_masonry_block', 's_image_text', 's_picture', 's_product_list', 's_call_to_action'],
# TODO In master, remove unused templates instead.
'_': ['s_product_catalog'],
},
'new_page_templates': {
'about': {
'personal': ['s_text_cover', 's_image_text', 's_text_block_h2', 's_numbers', 's_features', 's_call_to_action'],
},
'landing': {
'1': ['s_banner', 's_features', 's_masonry_block', 's_call_to_action', 's_references', 's_quotes_carousel'],
'2': ['s_cover', 's_text_image', 's_text_block_h2', 's_three_columns_landing_1', 's_call_to_action'],
'3': ['s_text_cover', 's_text_block_h2', 's_three_columns', 's_showcase', 's_color_blocks_2', 's_quotes_carousel', 's_call_to_action'],
},
'services': {
'2': ['s_text_cover', 's_image_text', 's_text_image', 's_image_text_2nd', 's_call_to_action'],
},
},
'license': 'LGPL-3',
'live_test_url': 'https://theme-bookstore.odoo.com',
'assets': {
'website.assets_editor': [
'theme_bookstore/static/src/js/tour.js',
],
}
}