@ -0,0 +1,44 @@ |
|||||
|
.. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg |
||||
|
:target: https://www.gnu.org/licenses/agpl-3.0-standalone.html |
||||
|
:alt: License: AGPL-3 |
||||
|
|
||||
|
Theme Blast |
||||
|
=========== |
||||
|
* Theme Blast module provide attractive and unique front end theme mainly |
||||
|
suitable for eCommerce website |
||||
|
|
||||
|
License |
||||
|
------- |
||||
|
General Public License, Version 3 (AGPL v3). |
||||
|
(https://www.gnu.org/licenses/agpl-3.0-standalone.html) |
||||
|
|
||||
|
Company |
||||
|
------- |
||||
|
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__ |
||||
|
|
||||
|
Credits |
||||
|
------- |
||||
|
Developers: |
||||
|
(V17) Jumana Haseen, |
||||
|
Contact: odoo@cybrosys.com |
||||
|
|
||||
|
Contacts |
||||
|
-------- |
||||
|
* Mail Contact : odoo@cybrosys.com |
||||
|
|
||||
|
Bug Tracker |
||||
|
----------- |
||||
|
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. |
||||
|
|
||||
|
Maintainer |
||||
|
========== |
||||
|
.. image:: https://cybrosys.com/images/logo.png |
||||
|
:target: https://cybrosys.com |
||||
|
|
||||
|
This module is maintained by Cybrosys Technologies. |
||||
|
|
||||
|
For support and more information, please visit https://www.cybrosys.com. |
||||
|
|
||||
|
Further information |
||||
|
=================== |
||||
|
HTML Description: `<static/description/index.html>`__ |
@ -0,0 +1,24 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright(C) 2024-TODAY Cybrosys Techno Solutions |
||||
|
# (<https://www.cybrosys.com>) |
||||
|
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU AFFERO |
||||
|
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details |
||||
|
# |
||||
|
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
# If not, see <https://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
from . import controllers |
||||
|
from . import models |
@ -0,0 +1,93 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright(C) 2024-TODAY Cybrosys Techno Solutions |
||||
|
# (<https://www.cybrosys.com>) |
||||
|
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU AFFERO |
||||
|
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details |
||||
|
# |
||||
|
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
# If not, see <https://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
{ |
||||
|
'name': 'Theme Blast', |
||||
|
'version': '17.0.1.0.0', |
||||
|
'category': 'Theme/Corporate', |
||||
|
'summary': 'Theme Blast makes the website more unique and attractive' |
||||
|
' through its style and custom-designed snippet', |
||||
|
'description': 'Theme Blast Front-end theme provides Structural snippets' |
||||
|
' like Features, Subscribe, Choose , Cards, Banner and' |
||||
|
' Dynamic content snippets ', |
||||
|
'author': 'Cybrosys Techno Solutions', |
||||
|
'company': 'Cybrosys Techno Solutions', |
||||
|
'maintainer': 'Cybrosys Techno Solutions', |
||||
|
'website': 'https://www.cybrosys.com', |
||||
|
'depends': ['web', 'website_sale', 'website_mass_mailing'], |
||||
|
'data': [ |
||||
|
'data/blast_configuration_data.xml', |
||||
|
'security/ir.model.access.csv', |
||||
|
'views/blast_configuration_views.xml', |
||||
|
'views/asked_questions_views.xml', |
||||
|
'views/res_partner_views.xml', |
||||
|
'views/snippets/snippets_templates.xml', |
||||
|
'views/snippets/asked_questions_templates.xml', |
||||
|
'views/snippets/banner_templates.xml', |
||||
|
'views/snippets/testimonial_templates.xml', |
||||
|
'views/snippets/choose_templates.xml', |
||||
|
'views/snippets/best_deal_templates.xml', |
||||
|
'views/snippets/best_products_carousal_templates.xml', |
||||
|
'views/snippets/cards_templates.xml', |
||||
|
'views/snippets/features_templates.xml', |
||||
|
'views/snippets/subscribe_templates.xml', |
||||
|
'views/theme_blast_templates.xml' |
||||
|
], |
||||
|
'assets': { |
||||
|
'web.assets_frontend': [ |
||||
|
'https://code.jquery.com/jquery-3.1.0.js', |
||||
|
'theme_blast/static/src/css/owl.carousel.min.css', |
||||
|
'theme_blast/static/src/css/style.css', |
||||
|
'theme_blast/static/src/css/owl.theme.default.min.css', |
||||
|
'theme_blast/static/src/scss/_variables.scss', |
||||
|
'theme_blast/static/src/scss/_normalize.scss', |
||||
|
'theme_blast/static/src/css/owl.carousel.min.css', |
||||
|
'theme_blast/static/src/scss/components/_buttons.scss', |
||||
|
'theme_blast/static/src/scss/layout/_navigation.scss', |
||||
|
'theme_blast/static/src/scss/layout/_banner.scss', |
||||
|
'theme_blast/static/src/scss/layout/_product.scss', |
||||
|
'theme_blast/static/src/scss/layout/_footer.scss', |
||||
|
'theme_blast/static/src/scss/pages/home/_about.scss', |
||||
|
'theme_blast/static/src/scss/pages/home/_feature.scss', |
||||
|
'theme_blast/static/src/scss/pages/home/_deal.scss', |
||||
|
'theme_blast/static/src/scss/pages/home/_choose.scss', |
||||
|
'theme_blast/static/src/scss/pages/home/_testimonial.scss', |
||||
|
'theme_blast/static/src/scss/pages/home/_subscribe.scss', |
||||
|
'theme_blast/static/src/scss/pages/home/_faq.scss', |
||||
|
'theme_blast/static/src/js/snippets/best_deal/best_deal.js', |
||||
|
'theme_blast/static/src/js/snippets/best_products_carousel/best_products_carousal.js', |
||||
|
'theme_blast/static/src/js/snippets/testimonial/testimonial.js', |
||||
|
'theme_blast/static/src/js/owl.carousel.min.js', |
||||
|
'theme_blast/static/src/js/scroll.js', |
||||
|
'theme_blast/static/src/js/snippets/subscribe/subscribe.js', |
||||
|
'theme_blast/static/src/js/snippets/asked_questions/asked_questions.js', |
||||
|
] |
||||
|
}, |
||||
|
'images': [ |
||||
|
'static/description/banner.png', |
||||
|
'static/description/theme_screenshot.png', |
||||
|
], |
||||
|
'license': 'AGPL-3', |
||||
|
'installable': True, |
||||
|
'application': False, |
||||
|
'auto_install': False, |
||||
|
} |
@ -0,0 +1,23 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright(C) 2024-TODAY Cybrosys Techno Solutions |
||||
|
# (<https://www.cybrosys.com>) |
||||
|
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU AFFERO |
||||
|
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details |
||||
|
# |
||||
|
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
# If not, see <https://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
from . import theme_blast |
@ -0,0 +1,81 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright(C) 2024-TODAY Cybrosys Techno Solutions |
||||
|
# (<https://www.cybrosys.com>) |
||||
|
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU AFFERO |
||||
|
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details |
||||
|
# |
||||
|
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
# If not, see <https://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
from odoo import http |
||||
|
from odoo.http import request |
||||
|
|
||||
|
|
||||
|
class BestSnippet(http.Controller): |
||||
|
"""Class BestSnippet that inherits from http.Controller. """ |
||||
|
|
||||
|
@http.route('/get_product', auth='public', type='json', website=True) |
||||
|
def get_products(self): |
||||
|
"""Controller to reflect chosen product in 'Best Deal' snippet""" |
||||
|
blast_configuration = request.env.ref( |
||||
|
'theme_blast.blast_configuration_data') |
||||
|
response = \ |
||||
|
http.Response(template='theme_blast.best_deal_template', |
||||
|
qcontext={ |
||||
|
'product_id': blast_configuration.best_deal_id, |
||||
|
}) |
||||
|
return response.render() |
||||
|
|
||||
|
@http.route('/get_product_snippet', auth='public', type='json', |
||||
|
website=True) |
||||
|
def get_best_products(self): |
||||
|
"""Controller to reflect chosen products in 'Best Products Carousel' |
||||
|
snippet""" |
||||
|
blast_configuration = request.env.ref( |
||||
|
'theme_blast.blast_configuration_data') |
||||
|
response = http.Response( |
||||
|
template='theme_blast.best_product_carousel_snippet', |
||||
|
qcontext={'products': blast_configuration.best_products_ids}) |
||||
|
return response.render() |
||||
|
|
||||
|
@http.route('/get_asked_questions', auth='public', type='json', |
||||
|
website=True) |
||||
|
def get_asked_questions(self): |
||||
|
"""Controller to reflect asked questions in 'Asked questions' |
||||
|
snippet""" |
||||
|
blast_configuration = request.env.ref( |
||||
|
'theme_blast.blast_configuration_data') |
||||
|
response = http.Response( |
||||
|
template='theme_blast.asked_questions_template', |
||||
|
qcontext={ |
||||
|
'asked_questions': blast_configuration.asked_questions_ids}) |
||||
|
return response.render() |
||||
|
|
||||
|
@http.route('/get_testimonial', auth='public', type='json', website=True) |
||||
|
def get_testimonial(self): |
||||
|
"""Controller to reflect partner feedback in 'Testimonial' snippet""" |
||||
|
partners = request.env['res.partner'].search( |
||||
|
[('is_published', '=', 'True')]) |
||||
|
response = http.Response(template='theme_blast.testimonials_snippet', |
||||
|
qcontext={'partners': partners}) |
||||
|
return response.render() |
||||
|
|
||||
|
@http.route('/get_countdown', auth='public', type='json', website=True) |
||||
|
def get_countdown(self): |
||||
|
"""Used to reflect sale end date in 'Best Deal' snippet""" |
||||
|
blast_configuration = request.env.ref( |
||||
|
'theme_blast.blast_configuration_data') |
||||
|
return blast_configuration.date_end |
@ -0,0 +1,9 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8" ?> |
||||
|
<odoo> |
||||
|
<data noupdate="1"> |
||||
|
<!-- Creating demo record in blast.configuration --> |
||||
|
<record id="blast_configuration_data" model="blast.configuration"> |
||||
|
<field name="name">Blast Configuration</field> |
||||
|
</record> |
||||
|
</data> |
||||
|
</odoo> |
@ -0,0 +1,6 @@ |
|||||
|
## Module <theme_blast> |
||||
|
|
||||
|
#### 09.05.2024 |
||||
|
#### Version 17.0.1.0.0 |
||||
|
#### ADD |
||||
|
- Initial Commit for Theme Blast |
@ -0,0 +1,27 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright(C) 2024-TODAY Cybrosys Techno Solutions |
||||
|
# (<https://www.cybrosys.com>) |
||||
|
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU AFFERO |
||||
|
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details |
||||
|
# |
||||
|
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
# If not, see <https://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
from . import asked_questions |
||||
|
from . import blast_configuration |
||||
|
from . import ir_module_module |
||||
|
from . import res_partner |
||||
|
from . import theme_utils |
@ -0,0 +1,36 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright(C) 2024-TODAY Cybrosys Techno Solutions |
||||
|
# (<https://www.cybrosys.com>) |
||||
|
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU AFFERO |
||||
|
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details |
||||
|
# |
||||
|
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
# If not, see <https://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
from odoo import fields, models |
||||
|
|
||||
|
|
||||
|
class AskedQuestions(models.Model): |
||||
|
"""Contains fields for questions&answer and co-model in |
||||
|
blast_configuration""" |
||||
|
_name = 'asked.questions' |
||||
|
_description = 'Asked Questions' |
||||
|
_rec_name = 'blast_configuration_id' |
||||
|
|
||||
|
question = fields.Text(help="Add questions to display") |
||||
|
answer = fields.Text(help="Add answers for the questions") |
||||
|
blast_configuration_id = fields.Many2one('blast.configuration', |
||||
|
help="Blast Configuration") |
@ -0,0 +1,51 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright(C) 2024-TODAY Cybrosys Techno Solutions |
||||
|
# (<https://www.cybrosys.com>) |
||||
|
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU AFFERO |
||||
|
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details |
||||
|
# |
||||
|
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
# If not, see <https://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
from odoo import fields, models |
||||
|
|
||||
|
|
||||
|
class BlastConfiguration(models.Model): |
||||
|
"""Contains fields to add needed values for snippets""" |
||||
|
_name = 'blast.configuration' |
||||
|
_description = 'Blast Configuration' |
||||
|
|
||||
|
name = fields.Char(help="Name of the Configuration.") |
||||
|
best_deal_id = fields.Many2one('product.product', |
||||
|
string="Best deal", |
||||
|
domain="[('sale_ok', '=', True)]", |
||||
|
help="Choose products to display as " |
||||
|
"Best Deal product") |
||||
|
date_start = fields.Datetime(string='Start Date', |
||||
|
default=fields.Datetime.now(), |
||||
|
help="Choose date to start the Deal") |
||||
|
date_end = fields.Datetime(string='End Date', |
||||
|
help="Choose date to end the Deal") |
||||
|
best_products_ids = fields.Many2many('product.product', |
||||
|
string="Best Products", |
||||
|
help="Choose multiple products " |
||||
|
"to display as Best Products", |
||||
|
domain="[('sale_ok', '=', True)]") |
||||
|
asked_questions_ids = fields.One2many('asked.questions', |
||||
|
'blast_configuration_id', |
||||
|
string="Questions And Answers", |
||||
|
help="Questions and corresponding " |
||||
|
"answers.") |
@ -0,0 +1,36 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright(C) 2024-TODAY Cybrosys Techno Solutions |
||||
|
# (<https://www.cybrosys.com>) |
||||
|
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU AFFERO |
||||
|
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details |
||||
|
# |
||||
|
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
# If not, see <https://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
from odoo import models |
||||
|
|
||||
|
|
||||
|
class IrModuleModule(models.Model): |
||||
|
"""Inherits model 'ir.module.module'""" |
||||
|
_inherit = 'ir.module.module' |
||||
|
|
||||
|
def _theme_load(self, website): |
||||
|
"""Load snippets""" |
||||
|
res = super()._theme_load(website) |
||||
|
homepage = website.homepage_url |
||||
|
if homepage: |
||||
|
homepage.header_overlay = True |
||||
|
return res |
@ -0,0 +1,32 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright(C) 2024-TODAY Cybrosys Techno Solutions |
||||
|
# (<https://www.cybrosys.com>) |
||||
|
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU AFFERO |
||||
|
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details |
||||
|
# |
||||
|
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
# If not, see <https://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
from odoo import fields, models |
||||
|
|
||||
|
|
||||
|
class ResPartner(models.Model): |
||||
|
"""Contain field to add customer feedback for Testimonial Snippet""" |
||||
|
_inherit = 'res.partner' |
||||
|
|
||||
|
is_published = fields.Boolean(string='To Publish', |
||||
|
help="Enable to publish partner message") |
||||
|
message = fields.Text(help="Partner message") |
@ -0,0 +1,33 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright(C) 2024-TODAY Cybrosys Techno Solutions |
||||
|
# (<https://www.cybrosys.com>) |
||||
|
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU AFFERO |
||||
|
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details |
||||
|
# |
||||
|
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
# If not, see <https://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
from odoo import models |
||||
|
|
||||
|
|
||||
|
class ThemeUtils(models.AbstractModel): |
||||
|
"""Inherits model 'theme.utils'""" |
||||
|
_inherit = 'theme.utils' |
||||
|
|
||||
|
def _theme_blast_post_copy(self, mod): |
||||
|
"""Reinitialize templates""" |
||||
|
self.disable_view('website.placeholder_header_call_to_action') |
||||
|
self.enable_view('website.template_header_default_align_right') |
|
After Width: | Height: | Size: 36 KiB |
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 310 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 576 B |
After Width: | Height: | Size: 733 B |
After Width: | Height: | Size: 911 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 673 B |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 878 B |
After Width: | Height: | Size: 653 B |
After Width: | Height: | Size: 905 B |
After Width: | Height: | Size: 839 B |
After Width: | Height: | Size: 427 B |
After Width: | Height: | Size: 627 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 988 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 80 KiB |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 565 B |
After Width: | Height: | Size: 26 KiB |
After Width: | Height: | Size: 43 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 4.0 KiB |
After Width: | Height: | Size: 38 KiB |
After Width: | Height: | Size: 4.3 KiB |
After Width: | Height: | Size: 60 KiB |
After Width: | Height: | Size: 56 KiB |
After Width: | Height: | Size: 56 KiB |
After Width: | Height: | Size: 59 KiB |
After Width: | Height: | Size: 1.8 MiB |
After Width: | Height: | Size: 57 KiB |
After Width: | Height: | Size: 317 KiB |
After Width: | Height: | Size: 17 KiB |
After Width: | Height: | Size: 80 KiB |
After Width: | Height: | Size: 10 KiB |
After Width: | Height: | Size: 7.2 KiB |
After Width: | Height: | Size: 10 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 689 KiB |
After Width: | Height: | Size: 28 KiB |
After Width: | Height: | Size: 189 KiB |
After Width: | Height: | Size: 592 KiB |
After Width: | Height: | Size: 89 KiB |
After Width: | Height: | Size: 78 KiB |
After Width: | Height: | Size: 153 KiB |
After Width: | Height: | Size: 172 KiB |
After Width: | Height: | Size: 275 KiB |
After Width: | Height: | Size: 128 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 9.5 KiB |
After Width: | Height: | Size: 576 B |
After Width: | Height: | Size: 733 B |
After Width: | Height: | Size: 272 KiB |
After Width: | Height: | Size: 190 KiB |
After Width: | Height: | Size: 911 B |
After Width: | Height: | Size: 843 B |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 899 B |
After Width: | Height: | Size: 848 B |
After Width: | Height: | Size: 936 B |
After Width: | Height: | Size: 1001 B |
After Width: | Height: | Size: 465 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 9.5 KiB |
After Width: | Height: | Size: 673 B |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 2.0 KiB |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 2.7 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 3.5 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 559 KiB |
After Width: | Height: | Size: 565 B |
After Width: | Height: | Size: 878 B |
After Width: | Height: | Size: 653 B |