[ADD] theme 12.0

This commit is contained in:
Design
2021-05-11 15:56:19 +02:00
committed by Jeremy Kersten
commit bddf1b03c5
3057 changed files with 69185 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
Odoo Proprietary License v1.0
This software and associated files (the "Software") may only be used (executed,
modified, executed after modifications) if you have purchased a valid license
from the authors, typically via Odoo Apps, or if you have received a written
agreement from the authors of the Software (see the COPYRIGHT file).
You may develop Odoo modules that use the Software as a library (typically
by depending on it, importing it and using its resources), but without copying
any source code or material from the Software. You may distribute those
modules under the license of your choice, provided that this license is
compatible with the terms of the Odoo Proprietary License (For example:
LGPL, MIT, or proprietary licenses similar to this one).
It is forbidden to publish, distribute, sublicense, or sell copies of the Software
or modified copies of the Software.
The above copyright notice and this permission notice must be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
+4
View File
@@ -0,0 +1,4 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from . import controllers
from . import models
+73
View File
@@ -0,0 +1,73 @@
{
'name': 'Theme Common',
'summary': 'Snippets Library',
'description': 'Snippets library containing snippets to be styled in themes.',
'category': 'Hidden',
'version': '1.1',
'depends': ['website', 'website_theme_install'],
'data': [
'data/data.xml',
'data/image_content.xml',
'views/assets.xml',
'views/theme_common_templates.xml',
'views/s_google_map.xml',
# CLEAN
'views/s_big_image.xml',
'views/s_big_image_parallax.xml',
'views/s_color_blocks_2.xml',
'views/s_color_blocks_4.xml',
'views/s_column.xml',
'views/s_discount.xml',
'views/s_event_list.xml',
'views/s_icon_box.xml',
'views/s_pricing.xml',
'views/s_progress_bar.xml',
'views/s_profile.xml',
'views/s_text_highlight.xml',
'views/s_three_columns_circle.xml',
'views/s_two_columns.xml',
# ENARK
'views/s_big_icons.xml',
# BEWISE
'views/s_mini_nav_bar.xml',
'views/s_separator_nav.xml',
'views/s_color_blocks_img.xml',
# ZAP
'views/s_badge.xml',
'views/s_images_carousel.xml',
'views/s_images_row.xml',
'views/s_media_list.xml',
'views/s_news_carousel.xml',
'views/s_numbers.xml',
'views/s_page_header.xml',
'views/s_process_steps.xml',
'views/s_team_profiles.xml',
'views/s_blockquote.xml',
'views/s_timeline.xml',
# KIDDO
'views/s_banner_parallax.xml',
'views/s_features_carousel.xml',
'views/s_header_text_big_picture.xml',
'views/s_product_list.xml',
'views/s_text_picture_text.xml',
'views/s_products_carousel.xml',
# ANELUSIA
'views/s_progress.xml',
'views/s_menu_three_columns.xml',
# GRAPHENE
'views/s_media_block.xml',
'views/s_animated_boxes.xml',
'views/s_showcase.xml',
'views/s_showcase_slider.xml',
'views/s_masonry_block.xml',
# AVANTGARDE
'views/s_css_slider.xml',
'views/s_showcase_image.xml',
'views/s_clonable_boxes.xml',
# MONGLIA
'views/s_full_menu.xml',
'views/s_compact_menu.xml',
'views/s_event_slide.xml',
],
'application': False,
}
+1
View File
@@ -0,0 +1 @@
from . import main
+15
View File
@@ -0,0 +1,15 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import json
from odoo import http
from odoo.http import request
class ThemeCommon(http.Controller):
@http.route('/theme_common/google_maps_api_key', type='json', auth='public', website=True)
def google_maps_api_key(self):
return json.dumps({
'google_maps_api_key': request.website.google_maps_api_key or ''
})
+6
View File
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="theme_website_tutorial_open" model="ir.actions.todo">
<field name="action_id" ref="website.action_website"/>
</record>
</odoo>
+180
View File
@@ -0,0 +1,180 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Theme logo -->
<record id="image_content_logo" model="theme.ir.attachment">
<field name="key">theme_common.image_content_logo</field>
<field name="name">theme_common.image_content_logo</field>
</record>
<record id="image_content_logo_small" model="theme.ir.attachment">
<field name="key">theme_common.image_content_logo_small</field>
<field name="name">theme_common.image_content_logo_small</field>
</record>
<!-- Image for img tags with variations -->
<record id="image_content_01" model="theme.ir.attachment">
<field name="key">theme_common.image_content_01</field>
<field name="name">theme_common.image_content_01</field>
</record>
<record id="image_content_02" model="theme.ir.attachment">
<field name="key">theme_common.image_content_02</field>
<field name="name">theme_common.image_content_02</field>
</record>
<record id="image_content_03" model="theme.ir.attachment">
<field name="key">theme_common.image_content_03</field>
<field name="name">theme_common.image_content_03</field>
</record>
<record id="image_content_04" model="theme.ir.attachment">
<field name="key">theme_common.image_content_04</field>
<field name="name">theme_common.image_content_04</field>
</record>
<record id="image_content_05" model="theme.ir.attachment">
<field name="key">theme_common.image_content_05</field>
<field name="name">theme_common.image_content_05</field>
</record>
<record id="image_content_06" model="theme.ir.attachment">
<field name="key">theme_common.image_content_06</field>
<field name="name">theme_common.image_content_06</field>
</record>
<record id="image_content_07" model="theme.ir.attachment">
<field name="key">theme_common.image_content_07</field>
<field name="name">theme_common.image_content_07</field>
</record>
<record id="image_content_08" model="theme.ir.attachment">
<field name="key">theme_common.image_content_08</field>
<field name="name">theme_common.image_content_08</field>
</record>
<record id="image_content_09" model="theme.ir.attachment">
<field name="key">theme_common.image_content_09</field>
<field name="name">theme_common.image_content_09</field>
</record>
<record id="image_content_10" model="theme.ir.attachment">
<field name="key">theme_common.image_content_10</field>
<field name="name">theme_common.image_content_10</field>
</record>
<record id="image_content_11" model="theme.ir.attachment">
<field name="key">theme_common.image_content_11</field>
<field name="name">theme_common.image_content_11</field>
</record>
<record id="image_content_12" model="theme.ir.attachment">
<field name="key">theme_common.image_content_12</field>
<field name="name">theme_common.image_content_12</field>
</record>
<record id="image_content_13" model="theme.ir.attachment">
<field name="key">theme_common.image_content_13</field>
<field name="name">theme_common.image_content_13</field>
</record>
<record id="image_content_14" model="theme.ir.attachment">
<field name="key">theme_common.image_content_14</field>
<field name="name">theme_common.image_content_14</field>
</record>
<record id="image_content_15" model="theme.ir.attachment">
<field name="key">theme_common.image_content_15</field>
<field name="name">theme_common.image_content_15</field>
</record>
<record id="image_content_16" model="theme.ir.attachment">
<field name="key">theme_common.image_content_16</field>
<field name="name">theme_common.image_content_16</field>
</record>
<record id="image_content_17" model="theme.ir.attachment">
<field name="key">theme_common.image_content_17</field>
<field name="name">theme_common.image_content_17</field>
</record>
<record id="image_content_18" model="theme.ir.attachment">
<field name="key">theme_common.image_content_18</field>
<field name="name">theme_common.image_content_18</field>
</record>
<record id="image_content_19" model="theme.ir.attachment">
<field name="key">theme_common.image_content_19</field>
<field name="name">theme_common.image_content_19</field>
</record>
<record id="image_content_20" model="theme.ir.attachment">
<field name="key">theme_common.image_content_20</field>
<field name="name">theme_common.image_content_20</field>
</record>
<record id="image_content_21" model="theme.ir.attachment">
<field name="key">theme_common.image_content_21</field>
<field name="name">theme_common.image_content_21</field>
</record>
<record id="image_content_22" model="theme.ir.attachment">
<field name="key">theme_common.image_content_22</field>
<field name="name">theme_common.image_content_22</field>
</record>
<record id="image_content_23" model="theme.ir.attachment">
<field name="key">theme_common.image_content_23</field>
<field name="name">theme_common.image_content_23</field>
</record>
<record id="image_content_24" model="theme.ir.attachment">
<field name="key">theme_common.image_content_24</field>
<field name="name">theme_common.image_content_24</field>
</record>
<record id="image_content_25" model="theme.ir.attachment">
<field name="key">theme_common.image_content_25</field>
<field name="name">theme_common.image_content_25</field>
</record>
<record id="image_content_26" model="theme.ir.attachment">
<field name="key">theme_common.image_content_26</field>
<field name="name">theme_common.image_content_26</field>
</record>
<record id="image_content_27" model="theme.ir.attachment">
<field name="key">theme_common.image_content_27</field>
<field name="name">theme_common.image_content_27</field>
</record>
<record id="image_content_28" model="theme.ir.attachment">
<field name="key">theme_common.image_content_28</field>
<field name="name">theme_common.image_content_28</field>
</record>
<record id="image_content_29" model="theme.ir.attachment">
<field name="key">theme_common.image_content_29</field>
<field name="name">theme_common.image_content_29</field>
</record>
<record id="image_content_30" model="theme.ir.attachment">
<field name="key">theme_common.image_content_30</field>
<field name="name">theme_common.image_content_30</field>
</record>
<!-- PRODUCTS-->
<record id="image_product_01" model="theme.ir.attachment">
<field name="key">theme_common.image_product_01</field>
<field name="name">theme_common.image_product_01</field>
</record>
<record id="image_product_02" model="theme.ir.attachment">
<field name="key">theme_common.image_product_02</field>
<field name="name">theme_common.image_product_02</field>
</record>
<record id="image_product_03" model="theme.ir.attachment">
<field name="key">theme_common.image_product_03</field>
<field name="name">theme_common.image_product_03</field>
</record>
<record id="image_product_04" model="theme.ir.attachment">
<field name="key">theme_common.image_product_04</field>
<field name="name">theme_common.image_product_04</field>
</record>
<record id="image_product_05" model="theme.ir.attachment">
<field name="key">theme_common.image_product_05</field>
<field name="name">theme_common.image_product_05</field>
</record>
<record id="image_product_06" model="theme.ir.attachment">
<field name="key">theme_common.image_product_06</field>
<field name="name">theme_common.image_product_06</field>
</record>
<record id="image_product_07" model="theme.ir.attachment">
<field name="key">theme_common.image_product_07</field>
<field name="name">theme_common.image_product_07</field>
</record>
<record id="image_product_08" model="theme.ir.attachment">
<field name="key">theme_common.image_product_08</field>
<field name="name">theme_common.image_product_08</field>
</record>
<record id="image_product_09" model="theme.ir.attachment">
<field name="key">theme_common.image_product_09</field>
<field name="name">theme_common.image_product_09</field>
</record>
<record id="image_product_10" model="theme.ir.attachment">
<field name="key">theme_common.image_product_10</field>
<field name="name">theme_common.image_product_10</field>
</record>
<record id="image_product_11" model="theme.ir.attachment">
<field name="key">theme_common.image_product_11</field>
<field name="name">theme_common.image_product_11</field>
</record>
</odoo>
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+3
View File
@@ -0,0 +1,3 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from . import theme_common
+23
View File
@@ -0,0 +1,23 @@
from odoo import models
class ThemeCommon(models.AbstractModel):
_inherit = 'theme.utils'
def _theme_common_post_copy(self, mod):
self.disable_view('website_theme_install.customize_modal')
# Reset all default color and font options when switching themes
mod = 'website'
for nb in range(2, 19):
if nb == 7:
mod = 'theme_common'
self.disable_view('%s.option_font_title_%02d_variables' % (mod, nb))
self.disable_view('%s.option_font_body_%02d_variables' % (mod, nb))
self.disable_view('%s.option_font_button_%02d_variables' % (mod, nb))
self.disable_view('%s.option_font_navbar_%02d_variables' % (mod, nb))
for nb in range(2, 9):
self.disable_view('theme_common.option_colors_%02d_variables' % nb)
# For compatibility
# self.enable_view('theme_common.compatibility-saas-11-4-variables')
# self.enable_view('theme_common.compatibility-saas-11-4')
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 997 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 135 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 821 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 977 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 932 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 921 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 174 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 915 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 255 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1022 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 597 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 974 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 386 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 285 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 391 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 333 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 404 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 468 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 157 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 979 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 389 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 961 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 180 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 994 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1018 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 407 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 922 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 234 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 292 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

Some files were not shown because too many files have changed in this diff Show More