diff --git a/website_pre_loader_style/README.rst b/website_pre_loader_style/README.rst new file mode 100644 index 000000000..db971d6be --- /dev/null +++ b/website_pre_loader_style/README.rst @@ -0,0 +1,46 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: https://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +Website Pre-Loader +================= +This module helps you to choose pre-loader styles for website. + +Configuration +============= +* No additional configurations needed + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +------- +Affero General Public License, Version 3 (AGPL v3). +(https://www.gnu.org/licenses/agpl-3.0-standalone.html) + +Credits +------- +* Developer : (V16) Muhsina V @ Cybrosys, + +Contacts +-------- +* Mail Contact : odoo@cybrosys.com +* Website : https://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 `Our Website `__ + +Further information +=================== +HTML Description: ``__ diff --git a/website_pre_loader_style/__init__.py b/website_pre_loader_style/__init__.py new file mode 100644 index 000000000..d61258da4 --- /dev/null +++ b/website_pre_loader_style/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Muhsina V () +# +# 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 . +# +############################################################################# +from . import models diff --git a/website_pre_loader_style/__manifest__.py b/website_pre_loader_style/__manifest__.py new file mode 100644 index 000000000..996ee8633 --- /dev/null +++ b/website_pre_loader_style/__manifest__.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Muhsina V () +# +# 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 . +# +############################################################################# +{ + 'name': 'Website Pre-Loader', + 'version': '16.0.1.0.0', + 'category': 'Website', + 'summary': "Customized pre-loader for websites", + 'description': "This module allows users to customize the pre-loader" + "style for the website by selecting a preferred style in" + "the configuration settings. The selected style will be " + "applied to every loading screen.", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'depends': ['base', 'website_sale'], + 'data': [ + 'views/res_config_settings_views.xml', + ], + 'assets': { + 'web.assets_frontend': [ + 'website_pre_loader_style/static/src/js/payment_processing.js', + ], + 'web.assets_backend': [ + 'website_pre_loader_style/static/src/js/block_ui.js', + 'website_pre_loader_style/static/src/js/website_pre_loader.js', + 'website_pre_loader_style/static/src/xml/*', + ] + }, + 'images': ['static/description/banner.jpg'], + 'licence': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/website_pre_loader_style/doc/RELEASE_NOTES.md b/website_pre_loader_style/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..986d0a11f --- /dev/null +++ b/website_pre_loader_style/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 27.07.2023 +#### Version 16.0.1.0.0 +##### ADD +- Initial commit for Website Pre-Loader \ No newline at end of file diff --git a/website_pre_loader_style/models/__init__.py b/website_pre_loader_style/models/__init__.py new file mode 100644 index 000000000..41fa0a8bf --- /dev/null +++ b/website_pre_loader_style/models/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Muhsina V () +# +# 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 . +# +############################################################################# +from . import res_config_settings diff --git a/website_pre_loader_style/models/res_config_settings.py b/website_pre_loader_style/models/res_config_settings.py new file mode 100644 index 000000000..7f2e80562 --- /dev/null +++ b/website_pre_loader_style/models/res_config_settings.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Muhsina V () +# +# 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 . +# +############################################################################# +from odoo import fields, models + + +class ResConfigSettings(models.TransientModel): + """ Inhering to add a field to enable website pre-loader""" + _inherit = 'res.config.settings' + + enable_website_pre_loader = fields.Boolean(string='Website Pre-Loader', + config_parameter='website_pre_loader_style.enable_website_pre_loader', + default=True, + help="Enable Website pre-loader") + loader_style = fields.Selection([('bean eater', 'Bean eater'), + ('cube', 'Cube'), + ('disk', 'Disk'), + ('dual', 'Dual'), + ('gear', 'Gear'), + ('infinity', 'Infinity'), + ('pulse', 'Pulse'), + ('ripple', 'Ripple'), + ('spinner', 'Spinner') + ], + config_parameter='website_pre_loader_style.loader_style', + default='dual', string="Loader Style", + help="Website pre-loader loading style") diff --git a/website_pre_loader_style/static/description/assets/icons/check.png b/website_pre_loader_style/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/website_pre_loader_style/static/description/assets/icons/check.png differ diff --git a/website_pre_loader_style/static/description/assets/icons/chevron.png b/website_pre_loader_style/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/website_pre_loader_style/static/description/assets/icons/chevron.png differ diff --git a/website_pre_loader_style/static/description/assets/icons/cogs.png b/website_pre_loader_style/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/website_pre_loader_style/static/description/assets/icons/cogs.png differ diff --git a/website_pre_loader_style/static/description/assets/icons/consultation.png b/website_pre_loader_style/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/website_pre_loader_style/static/description/assets/icons/consultation.png differ diff --git a/website_pre_loader_style/static/description/assets/icons/ecom-black.png b/website_pre_loader_style/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/website_pre_loader_style/static/description/assets/icons/ecom-black.png differ diff --git a/website_pre_loader_style/static/description/assets/icons/education-black.png b/website_pre_loader_style/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/website_pre_loader_style/static/description/assets/icons/education-black.png differ diff --git a/website_pre_loader_style/static/description/assets/icons/hotel-black.png b/website_pre_loader_style/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/website_pre_loader_style/static/description/assets/icons/hotel-black.png differ diff --git a/website_pre_loader_style/static/description/assets/icons/license.png b/website_pre_loader_style/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/website_pre_loader_style/static/description/assets/icons/license.png differ diff --git a/website_pre_loader_style/static/description/assets/icons/lifebuoy.png b/website_pre_loader_style/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/website_pre_loader_style/static/description/assets/icons/lifebuoy.png differ diff --git a/website_pre_loader_style/static/description/assets/icons/logo.png b/website_pre_loader_style/static/description/assets/icons/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/website_pre_loader_style/static/description/assets/icons/logo.png differ diff --git a/website_pre_loader_style/static/description/assets/icons/manufacturing-black.png b/website_pre_loader_style/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/website_pre_loader_style/static/description/assets/icons/manufacturing-black.png differ diff --git a/website_pre_loader_style/static/description/assets/icons/pos-black.png b/website_pre_loader_style/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/website_pre_loader_style/static/description/assets/icons/pos-black.png differ diff --git a/website_pre_loader_style/static/description/assets/icons/puzzle.png b/website_pre_loader_style/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/website_pre_loader_style/static/description/assets/icons/puzzle.png differ diff --git a/website_pre_loader_style/static/description/assets/icons/restaurant-black.png b/website_pre_loader_style/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/website_pre_loader_style/static/description/assets/icons/restaurant-black.png differ diff --git a/website_pre_loader_style/static/description/assets/icons/service-black.png b/website_pre_loader_style/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/website_pre_loader_style/static/description/assets/icons/service-black.png differ diff --git a/website_pre_loader_style/static/description/assets/icons/trading-black.png b/website_pre_loader_style/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/website_pre_loader_style/static/description/assets/icons/trading-black.png differ diff --git a/website_pre_loader_style/static/description/assets/icons/training.png b/website_pre_loader_style/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/website_pre_loader_style/static/description/assets/icons/training.png differ diff --git a/website_pre_loader_style/static/description/assets/icons/update.png b/website_pre_loader_style/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/website_pre_loader_style/static/description/assets/icons/update.png differ diff --git a/website_pre_loader_style/static/description/assets/icons/user.png b/website_pre_loader_style/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/website_pre_loader_style/static/description/assets/icons/user.png differ diff --git a/website_pre_loader_style/static/description/assets/icons/wrench.png b/website_pre_loader_style/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/website_pre_loader_style/static/description/assets/icons/wrench.png differ diff --git a/website_pre_loader_style/static/description/assets/misc/categories.png b/website_pre_loader_style/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/website_pre_loader_style/static/description/assets/misc/categories.png differ diff --git a/website_pre_loader_style/static/description/assets/misc/check-box.png b/website_pre_loader_style/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/website_pre_loader_style/static/description/assets/misc/check-box.png differ diff --git a/website_pre_loader_style/static/description/assets/misc/compass.png b/website_pre_loader_style/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/website_pre_loader_style/static/description/assets/misc/compass.png differ diff --git a/website_pre_loader_style/static/description/assets/misc/corporate.png b/website_pre_loader_style/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/website_pre_loader_style/static/description/assets/misc/corporate.png differ diff --git a/website_pre_loader_style/static/description/assets/misc/customer-support.png b/website_pre_loader_style/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/website_pre_loader_style/static/description/assets/misc/customer-support.png differ diff --git a/website_pre_loader_style/static/description/assets/misc/cybrosys-logo.png b/website_pre_loader_style/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/website_pre_loader_style/static/description/assets/misc/cybrosys-logo.png differ diff --git a/website_pre_loader_style/static/description/assets/misc/features.png b/website_pre_loader_style/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/website_pre_loader_style/static/description/assets/misc/features.png differ diff --git a/website_pre_loader_style/static/description/assets/misc/logo.png b/website_pre_loader_style/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/website_pre_loader_style/static/description/assets/misc/logo.png differ diff --git a/website_pre_loader_style/static/description/assets/misc/pictures.png b/website_pre_loader_style/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/website_pre_loader_style/static/description/assets/misc/pictures.png differ diff --git a/website_pre_loader_style/static/description/assets/misc/pie-chart.png b/website_pre_loader_style/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/website_pre_loader_style/static/description/assets/misc/pie-chart.png differ diff --git a/website_pre_loader_style/static/description/assets/misc/right-arrow.png b/website_pre_loader_style/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/website_pre_loader_style/static/description/assets/misc/right-arrow.png differ diff --git a/website_pre_loader_style/static/description/assets/misc/star.png b/website_pre_loader_style/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/website_pre_loader_style/static/description/assets/misc/star.png differ diff --git a/website_pre_loader_style/static/description/assets/misc/support.png b/website_pre_loader_style/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/website_pre_loader_style/static/description/assets/misc/support.png differ diff --git a/website_pre_loader_style/static/description/assets/misc/whatsapp.png b/website_pre_loader_style/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/website_pre_loader_style/static/description/assets/misc/whatsapp.png differ diff --git a/website_pre_loader_style/static/description/assets/modules/1.png b/website_pre_loader_style/static/description/assets/modules/1.png new file mode 100644 index 000000000..624ef69b7 Binary files /dev/null and b/website_pre_loader_style/static/description/assets/modules/1.png differ diff --git a/website_pre_loader_style/static/description/assets/modules/2.png b/website_pre_loader_style/static/description/assets/modules/2.png new file mode 100644 index 000000000..b8ea6b411 Binary files /dev/null and b/website_pre_loader_style/static/description/assets/modules/2.png differ diff --git a/website_pre_loader_style/static/description/assets/modules/3.png b/website_pre_loader_style/static/description/assets/modules/3.png new file mode 100644 index 000000000..3add135c3 Binary files /dev/null and b/website_pre_loader_style/static/description/assets/modules/3.png differ diff --git a/website_pre_loader_style/static/description/assets/modules/4.png b/website_pre_loader_style/static/description/assets/modules/4.png new file mode 100644 index 000000000..c1f30354a Binary files /dev/null and b/website_pre_loader_style/static/description/assets/modules/4.png differ diff --git a/website_pre_loader_style/static/description/assets/modules/5.gif b/website_pre_loader_style/static/description/assets/modules/5.gif new file mode 100644 index 000000000..8f40aab85 Binary files /dev/null and b/website_pre_loader_style/static/description/assets/modules/5.gif differ diff --git a/website_pre_loader_style/static/description/assets/modules/6.png b/website_pre_loader_style/static/description/assets/modules/6.png new file mode 100644 index 000000000..31ed46762 Binary files /dev/null and b/website_pre_loader_style/static/description/assets/modules/6.png differ diff --git a/website_pre_loader_style/static/description/assets/screenshots/1.png b/website_pre_loader_style/static/description/assets/screenshots/1.png new file mode 100644 index 000000000..f7ee28748 Binary files /dev/null and b/website_pre_loader_style/static/description/assets/screenshots/1.png differ diff --git a/website_pre_loader_style/static/description/assets/screenshots/2.png b/website_pre_loader_style/static/description/assets/screenshots/2.png new file mode 100644 index 000000000..9312f547f Binary files /dev/null and b/website_pre_loader_style/static/description/assets/screenshots/2.png differ diff --git a/website_pre_loader_style/static/description/assets/screenshots/3.png b/website_pre_loader_style/static/description/assets/screenshots/3.png new file mode 100644 index 000000000..9404eafa0 Binary files /dev/null and b/website_pre_loader_style/static/description/assets/screenshots/3.png differ diff --git a/website_pre_loader_style/static/description/assets/screenshots/4.png b/website_pre_loader_style/static/description/assets/screenshots/4.png new file mode 100644 index 000000000..6e0666cbd Binary files /dev/null and b/website_pre_loader_style/static/description/assets/screenshots/4.png differ diff --git a/website_pre_loader_style/static/description/assets/screenshots/5.png b/website_pre_loader_style/static/description/assets/screenshots/5.png new file mode 100644 index 000000000..52ae886d2 Binary files /dev/null and b/website_pre_loader_style/static/description/assets/screenshots/5.png differ diff --git a/website_pre_loader_style/static/description/assets/screenshots/6.png b/website_pre_loader_style/static/description/assets/screenshots/6.png new file mode 100644 index 000000000..b13c4cf8a Binary files /dev/null and b/website_pre_loader_style/static/description/assets/screenshots/6.png differ diff --git a/website_pre_loader_style/static/description/assets/screenshots/7.png b/website_pre_loader_style/static/description/assets/screenshots/7.png new file mode 100644 index 000000000..ff95d048f Binary files /dev/null and b/website_pre_loader_style/static/description/assets/screenshots/7.png differ diff --git a/website_pre_loader_style/static/description/assets/screenshots/hero.gif b/website_pre_loader_style/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..54eb56bb8 Binary files /dev/null and b/website_pre_loader_style/static/description/assets/screenshots/hero.gif differ diff --git a/website_pre_loader_style/static/description/banner.jpg b/website_pre_loader_style/static/description/banner.jpg new file mode 100644 index 000000000..b4db2b6e8 Binary files /dev/null and b/website_pre_loader_style/static/description/banner.jpg differ diff --git a/website_pre_loader_style/static/description/icon.png b/website_pre_loader_style/static/description/icon.png new file mode 100644 index 000000000..3d7173b89 Binary files /dev/null and b/website_pre_loader_style/static/description/icon.png differ diff --git a/website_pre_loader_style/static/description/index.html b/website_pre_loader_style/static/description/index.html new file mode 100644 index 000000000..de84e9d48 --- /dev/null +++ b/website_pre_loader_style/static/description/index.html @@ -0,0 +1,664 @@ +
+ +
+ +
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+ +
+
+
+ +

+ Website Pre-Loader

+

+ Add Custom Pre-Loader Style To Website. +

+ + +
+
+
+
+ + +
+
+ +
+

+ Explore This + Module

+
+ + + + +
+
+ +
+

+ Overview +

+
+
+
+ This module allows users to customize the pre-loader + style for the website by selecting a preferred style in the + configuration settings. The selected style will be applied + to every loading screen. +
+
+ + + +
+
+ +
+

+ Features +

+
+
+
+
+ + Enable Website pre-loader & choose loading styles +
+
+ + Lot of styles to display pre-loader. + +
+
+ + Easy to use +
+
+
+ +
+ + Compatible with Community, Enterprise, and Odoo.sh. +
+
+
+ + + +
+
+ +
+

+ Screenshots +

+
+
+
+
+

+ Enable Website pre-loader +

+

+ Enable 'Website pre-loader' in website configuration. Then you + can choose the loader style.

+ +
+
+

+ Lot of Style Options. +

+

+ We have multiple options to choose the website pre-loader + style.

+ +
+
+

+ Attractive Styles. +

+

+ On Loading the website we can see the loading style.

+ +
+
+

+ On changing the loader style we can see the style is + changing.

+ +
+
+

+ On changing the loader style we can see the style is + changing

+ +
+
+

+ On Payment Confirmation +

+

+ On website sale by confirming the payment,

+ +
+
+

+ The loader will run.

+ +
+
+
+ + + +
+
+ +
+

+ Related + Products +

+
+
+
+ +
+
+ + + +
+
+ +
+

+ Our Services +

+
+
+
+
+
+ +
+
+ Odoo + Customization
+
+
+
+ +
+
+ Odoo + Implementation
+
+
+
+ +
+
+ Odoo + Support
+
+
+
+ +
+
+ Hire + Odoo + Developer
+
+
+
+ +
+
+ Odoo + Integration
+
+
+
+ +
+
+ Odoo + Migration
+
+
+
+ +
+
+ Odoo + Consultancy
+
+
+
+ +
+
+ Odoo + Implementation
+
+
+
+ +
+
+ Odoo + Licensing Consultancy
+
+
+
+ + + +
+
+ +
+

+ Our + Industries +

+
+
+
+
+
+ +
+ Trading +
+

+ Easily procure + and + sell your products

+
+
+
+
+ +
+ POS +
+

+ Easy + configuration + and convivial experience

+
+
+
+
+ +
+ Education +
+

+ A platform for + educational management

+
+
+
+
+ +
+ Manufacturing +
+

+ Plan, track and + schedule your operations

+
+
+
+
+ +
+ E-commerce & Website +
+

+ Mobile + friendly, + awe-inspiring product pages

+
+
+
+
+ +
+ Service Management +
+

+ Keep track of + services and invoice

+
+
+
+
+ +
+ Restaurant +
+

+ Run your bar or + restaurant methodically

+
+
+
+
+ +
+ Hotel Management +
+

+ An + all-inclusive + hotel management application

+
+
+
+
+ + + +
+
+ +
+

+ Support +

+
+
+
+
+
+
+ +
+
+

Need Help?

+

Got questions or need help? + Get in touch.

+ +

+ odoo@cybrosys.com

+
+
+
+
+
+
+
+ +
+
+

WhatsApp

+

Say hi to us on WhatsApp!

+ +

+ +91 86068 + 27707

+
+
+
+
+
+
+
+ +
+
+
+ \ No newline at end of file diff --git a/website_pre_loader_style/static/src/img/bean eater.png b/website_pre_loader_style/static/src/img/bean eater.png new file mode 100644 index 000000000..d4d42422c Binary files /dev/null and b/website_pre_loader_style/static/src/img/bean eater.png differ diff --git a/website_pre_loader_style/static/src/img/cube.png b/website_pre_loader_style/static/src/img/cube.png new file mode 100644 index 000000000..af8759dbe Binary files /dev/null and b/website_pre_loader_style/static/src/img/cube.png differ diff --git a/website_pre_loader_style/static/src/img/disk.png b/website_pre_loader_style/static/src/img/disk.png new file mode 100644 index 000000000..88c891261 Binary files /dev/null and b/website_pre_loader_style/static/src/img/disk.png differ diff --git a/website_pre_loader_style/static/src/img/dual.png b/website_pre_loader_style/static/src/img/dual.png new file mode 100644 index 000000000..53c9c6810 Binary files /dev/null and b/website_pre_loader_style/static/src/img/dual.png differ diff --git a/website_pre_loader_style/static/src/img/gear.png b/website_pre_loader_style/static/src/img/gear.png new file mode 100644 index 000000000..c88aa5eb2 Binary files /dev/null and b/website_pre_loader_style/static/src/img/gear.png differ diff --git a/website_pre_loader_style/static/src/img/infinity.png b/website_pre_loader_style/static/src/img/infinity.png new file mode 100644 index 000000000..4a772a29f Binary files /dev/null and b/website_pre_loader_style/static/src/img/infinity.png differ diff --git a/website_pre_loader_style/static/src/img/pulse.png b/website_pre_loader_style/static/src/img/pulse.png new file mode 100644 index 000000000..41c62c0c8 Binary files /dev/null and b/website_pre_loader_style/static/src/img/pulse.png differ diff --git a/website_pre_loader_style/static/src/img/ripple.png b/website_pre_loader_style/static/src/img/ripple.png new file mode 100644 index 000000000..7e7b179a5 Binary files /dev/null and b/website_pre_loader_style/static/src/img/ripple.png differ diff --git a/website_pre_loader_style/static/src/img/spinner.png b/website_pre_loader_style/static/src/img/spinner.png new file mode 100644 index 000000000..a52de1d16 Binary files /dev/null and b/website_pre_loader_style/static/src/img/spinner.png differ diff --git a/website_pre_loader_style/static/src/js/block_ui.js b/website_pre_loader_style/static/src/js/block_ui.js new file mode 100644 index 000000000..49ada6e27 --- /dev/null +++ b/website_pre_loader_style/static/src/js/block_ui.js @@ -0,0 +1,42 @@ +/** @odoo-module **/ +import { + BlockUI +} from "@web/core/ui/block_ui"; +import { patch } from "@web/core/utils/patch"; +import { xml } from "@odoo/owl"; +const { useState } = owl; +const rpc = require('web.rpc'); +/** + * Customization of BlockUI setup method to handle the loading spinner and message. + */ +patch(BlockUI.prototype, 'blockUi', { + /** + * Custom setup method. + */ + setup() { + this._super.apply(this, arguments); + this.spin_state = useState({ + loader_style: '' + }); + const self = this; + rpc.query({ + model: 'ir.config_parameter', + method: 'get_param', + args: ['website_pre_loader_style.loader_style'], + }).then(function(result) { + self.spin_state.loader_style = result; + }); + } +}); +BlockUI.template = xml` +
+ +
+ Loading... +
+
+
+ +
+
+
`; diff --git a/website_pre_loader_style/static/src/js/payment_processing.js b/website_pre_loader_style/static/src/js/payment_processing.js new file mode 100644 index 000000000..93ff7abd1 --- /dev/null +++ b/website_pre_loader_style/static/src/js/payment_processing.js @@ -0,0 +1,32 @@ +odoo.define('website_pre_loader_style.payment_post_processing', function(require) { + 'use strict'; + /** + * Module for customizing payment post-processing behavior. + */ + var PaymentPostProcessing = require('payment.post_processing'); + var _t = require('web.core')._t; + const rpc = require('web.rpc'); + PaymentPostProcessing.include({ + /** + * Overrides the displayLoading method to show a custom loading message with a pre-loader image. + */ + displayLoading: function() { + var msg = _t("We are processing your payment, please wait ..."); + rpc.query({ + model: 'ir.config_parameter', + method: 'get_param', + args: ['website_pre_loader_style.loader_style'], + }).then(function(result) { + console.log(result) + var imgSrc = '/website_pre_loader_style/static/src/img/' + result + '.png'; + console.log(imgSrc) + $.blockUI({ + 'message': '

' + + '
' + msg + + '

' + }); + }) + }, + }); + return PaymentPostProcessing; +}); diff --git a/website_pre_loader_style/static/src/js/website_pre_loader.js b/website_pre_loader_style/static/src/js/website_pre_loader.js new file mode 100644 index 000000000..352fbe7f6 --- /dev/null +++ b/website_pre_loader_style/static/src/js/website_pre_loader.js @@ -0,0 +1,29 @@ +/** @odoo-module **/ +import { WebsitePreview } from '@website/client_actions/website_preview/website_preview'; +import { patch } from "@web/core/utils/patch"; +const { useState } = owl; +const rpc = require('web.rpc'); +var self = this; +/** + * Customization of BlockPreview setup method to handle the website preview style. + */ +patch(WebsitePreview.components.BlockPreview.prototype, 'website_preview_style', { + /** + * Overrides the setup method to set the website preview style based on a configuration parameter. + * @override + */ + setup() { + this._super(...arguments); + this.spin_state = useState({ + style: '' + }) + const self = this; + rpc.query({ + model: 'ir.config_parameter', + method: 'get_param', + args: ['website_pre_loader_style.loader_style'], + }).then(function(result) { + self.spin_state.style = result + }) + } +}); diff --git a/website_pre_loader_style/static/src/xml/website_preloader_templates.xml b/website_pre_loader_style/static/src/xml/website_preloader_templates.xml new file mode 100644 index 000000000..ea533e330 --- /dev/null +++ b/website_pre_loader_style/static/src/xml/website_preloader_templates.xml @@ -0,0 +1,11 @@ + + + + + + + Loading... + + + diff --git a/website_pre_loader_style/views/res_config_settings_views.xml b/website_pre_loader_style/views/res_config_settings_views.xml new file mode 100644 index 000000000..62e1f7305 --- /dev/null +++ b/website_pre_loader_style/views/res_config_settings_views.xml @@ -0,0 +1,43 @@ + + + + + res.config.settings.view.form.inherit.website.pre.loader.style + res.config.settings + + + + + +

Website pre-loader

+
+
+
+ +
+
+ Website + pre-loader + +
+ Allows to customize website pre-loader +
+
+
+
+
+
+ Choose Style + + +
+
+
+ + + +