diff --git a/website_model_viewer_widget/README.rst b/website_model_viewer_widget/README.rst new file mode 100644 index 000000000..94050d57e --- /dev/null +++ b/website_model_viewer_widget/README.rst @@ -0,0 +1,47 @@ +.. image:: https://img.shields.io/badge/licence-LGPL--3-blue.svg + :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html + :alt: License: LGPL-3 + +Website Model Viewer Widget +=========================== +Experience the product like never before with our stunning 3D +model viewer. Explore every angle and detail of the product right +from our website! + +Configuration +============= +* It only support 3D images with .glb extension + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +* Developer: V(16): Athira Premanand + +Contacts +-------- +* Mail Contact : odoo@cybrosys.com +* Website : https://cybrosys.com + +License +------- +General Public License, Version 3 (LGPL v3). +(http://www.gnu.org/licenses/lgpl-3.0-standalone.html) + +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_model_viewer_widget/__init__.py b/website_model_viewer_widget/__init__.py new file mode 100644 index 000000000..152f491c7 --- /dev/null +++ b/website_model_viewer_widget/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Cybrosys Technologies () +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +from . import controllers diff --git a/website_model_viewer_widget/__manifest__.py b/website_model_viewer_widget/__manifest__.py new file mode 100644 index 000000000..ccc417f95 --- /dev/null +++ b/website_model_viewer_widget/__manifest__.py @@ -0,0 +1,50 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Athira Premanand () +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +{ + 'name': 'Website Model Viewer Widget', + 'version': '16.0.1.0.0', + 'category': 'Website,eCommerce', + 'summary': """Experience the product like never before with our stunning 3D + model viewer.""", + 'description': """Website Model Viewer Widget app helps to explore every + angle and detail of the product right + from our website!""", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'depends': ['base', 'product', 'model_viewer_widget', 'website_sale'], + 'data': [ + 'views/website_sale_templates.xml', + ], + 'assets': { + 'web.assets_frontend': [ + 'https://unpkg.com/@egjs/view3d@2.10.1/dist/view3d.pkgd.min.js', + 'website_model_viewer_widget/static/src/js/3d_product_view.js', + ] + }, + 'images': ['static/description/banner.png'], + 'license': 'LGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} \ No newline at end of file diff --git a/website_model_viewer_widget/controllers/__init__.py b/website_model_viewer_widget/controllers/__init__.py new file mode 100644 index 000000000..57570af5b --- /dev/null +++ b/website_model_viewer_widget/controllers/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +from . import website_model_viewer_widget diff --git a/website_model_viewer_widget/controllers/website_model_viewer_widget.py b/website_model_viewer_widget/controllers/website_model_viewer_widget.py new file mode 100644 index 000000000..f2251e055 --- /dev/null +++ b/website_model_viewer_widget/controllers/website_model_viewer_widget.py @@ -0,0 +1,33 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +from odoo import http +from odoo.http import request + + +class ProductModel(http.Controller): + """This class represents a 3D product model""" + @http.route('/product/3d', type='json', auth='none') + def get_product_3d_model(self, product_id): + """This method returns a 3d model uploaded in the product""" + product = request.env['product.template'].sudo().browse(int(product_id)) + return { + '3D_model': product.model_3d if product.model_3d else False, } diff --git a/website_model_viewer_widget/doc/RELEASE_NOTES.md b/website_model_viewer_widget/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..5c759bd43 --- /dev/null +++ b/website_model_viewer_widget/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 12.09.2023 +#### Version 16.0.1.0.0 +#### ADD +Initial Commit for Website Model Viewer Widget diff --git a/website_model_viewer_widget/static/description/assets/icons/check.png b/website_model_viewer_widget/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/website_model_viewer_widget/static/description/assets/icons/check.png differ diff --git a/website_model_viewer_widget/static/description/assets/icons/chevron.png b/website_model_viewer_widget/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/website_model_viewer_widget/static/description/assets/icons/chevron.png differ diff --git a/website_model_viewer_widget/static/description/assets/icons/cogs.png b/website_model_viewer_widget/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/website_model_viewer_widget/static/description/assets/icons/cogs.png differ diff --git a/website_model_viewer_widget/static/description/assets/icons/consultation.png b/website_model_viewer_widget/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/website_model_viewer_widget/static/description/assets/icons/consultation.png differ diff --git a/website_model_viewer_widget/static/description/assets/icons/ecom-black.png b/website_model_viewer_widget/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/website_model_viewer_widget/static/description/assets/icons/ecom-black.png differ diff --git a/website_model_viewer_widget/static/description/assets/icons/education-black.png b/website_model_viewer_widget/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/website_model_viewer_widget/static/description/assets/icons/education-black.png differ diff --git a/website_model_viewer_widget/static/description/assets/icons/hotel-black.png b/website_model_viewer_widget/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/website_model_viewer_widget/static/description/assets/icons/hotel-black.png differ diff --git a/website_model_viewer_widget/static/description/assets/icons/license.png b/website_model_viewer_widget/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/website_model_viewer_widget/static/description/assets/icons/license.png differ diff --git a/website_model_viewer_widget/static/description/assets/icons/lifebuoy.png b/website_model_viewer_widget/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/website_model_viewer_widget/static/description/assets/icons/lifebuoy.png differ diff --git a/website_model_viewer_widget/static/description/assets/icons/manufacturing-black.png b/website_model_viewer_widget/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/website_model_viewer_widget/static/description/assets/icons/manufacturing-black.png differ diff --git a/website_model_viewer_widget/static/description/assets/icons/pos-black.png b/website_model_viewer_widget/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/website_model_viewer_widget/static/description/assets/icons/pos-black.png differ diff --git a/website_model_viewer_widget/static/description/assets/icons/puzzle.png b/website_model_viewer_widget/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/website_model_viewer_widget/static/description/assets/icons/puzzle.png differ diff --git a/website_model_viewer_widget/static/description/assets/icons/restaurant-black.png b/website_model_viewer_widget/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/website_model_viewer_widget/static/description/assets/icons/restaurant-black.png differ diff --git a/website_model_viewer_widget/static/description/assets/icons/service-black.png b/website_model_viewer_widget/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/website_model_viewer_widget/static/description/assets/icons/service-black.png differ diff --git a/website_model_viewer_widget/static/description/assets/icons/trading-black.png b/website_model_viewer_widget/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/website_model_viewer_widget/static/description/assets/icons/trading-black.png differ diff --git a/website_model_viewer_widget/static/description/assets/icons/training.png b/website_model_viewer_widget/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/website_model_viewer_widget/static/description/assets/icons/training.png differ diff --git a/website_model_viewer_widget/static/description/assets/icons/update.png b/website_model_viewer_widget/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/website_model_viewer_widget/static/description/assets/icons/update.png differ diff --git a/website_model_viewer_widget/static/description/assets/icons/user.png b/website_model_viewer_widget/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/website_model_viewer_widget/static/description/assets/icons/user.png differ diff --git a/website_model_viewer_widget/static/description/assets/icons/wrench.png b/website_model_viewer_widget/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/website_model_viewer_widget/static/description/assets/icons/wrench.png differ diff --git a/website_model_viewer_widget/static/description/assets/misc/categories.png b/website_model_viewer_widget/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/website_model_viewer_widget/static/description/assets/misc/categories.png differ diff --git a/website_model_viewer_widget/static/description/assets/misc/check-box.png b/website_model_viewer_widget/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/website_model_viewer_widget/static/description/assets/misc/check-box.png differ diff --git a/website_model_viewer_widget/static/description/assets/misc/compass.png b/website_model_viewer_widget/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/website_model_viewer_widget/static/description/assets/misc/compass.png differ diff --git a/website_model_viewer_widget/static/description/assets/misc/corporate.png b/website_model_viewer_widget/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/website_model_viewer_widget/static/description/assets/misc/corporate.png differ diff --git a/website_model_viewer_widget/static/description/assets/misc/customer-support.png b/website_model_viewer_widget/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/website_model_viewer_widget/static/description/assets/misc/customer-support.png differ diff --git a/website_model_viewer_widget/static/description/assets/misc/cybrosys-logo.png b/website_model_viewer_widget/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/website_model_viewer_widget/static/description/assets/misc/cybrosys-logo.png differ diff --git a/website_model_viewer_widget/static/description/assets/misc/features.png b/website_model_viewer_widget/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/website_model_viewer_widget/static/description/assets/misc/features.png differ diff --git a/website_model_viewer_widget/static/description/assets/misc/logo.png b/website_model_viewer_widget/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/website_model_viewer_widget/static/description/assets/misc/logo.png differ diff --git a/website_model_viewer_widget/static/description/assets/misc/pictures.png b/website_model_viewer_widget/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/website_model_viewer_widget/static/description/assets/misc/pictures.png differ diff --git a/website_model_viewer_widget/static/description/assets/misc/pie-chart.png b/website_model_viewer_widget/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/website_model_viewer_widget/static/description/assets/misc/pie-chart.png differ diff --git a/website_model_viewer_widget/static/description/assets/misc/right-arrow.png b/website_model_viewer_widget/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/website_model_viewer_widget/static/description/assets/misc/right-arrow.png differ diff --git a/website_model_viewer_widget/static/description/assets/misc/star.png b/website_model_viewer_widget/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/website_model_viewer_widget/static/description/assets/misc/star.png differ diff --git a/website_model_viewer_widget/static/description/assets/misc/support.png b/website_model_viewer_widget/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/website_model_viewer_widget/static/description/assets/misc/support.png differ diff --git a/website_model_viewer_widget/static/description/assets/misc/whatsapp.png b/website_model_viewer_widget/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/website_model_viewer_widget/static/description/assets/misc/whatsapp.png differ diff --git a/website_model_viewer_widget/static/description/assets/modules/1.png b/website_model_viewer_widget/static/description/assets/modules/1.png new file mode 100644 index 000000000..df65629bf Binary files /dev/null and b/website_model_viewer_widget/static/description/assets/modules/1.png differ diff --git a/website_model_viewer_widget/static/description/assets/modules/2.png b/website_model_viewer_widget/static/description/assets/modules/2.png new file mode 100644 index 000000000..6058f6c3b Binary files /dev/null and b/website_model_viewer_widget/static/description/assets/modules/2.png differ diff --git a/website_model_viewer_widget/static/description/assets/modules/3.png b/website_model_viewer_widget/static/description/assets/modules/3.png new file mode 100644 index 000000000..163485cfd Binary files /dev/null and b/website_model_viewer_widget/static/description/assets/modules/3.png differ diff --git a/website_model_viewer_widget/static/description/assets/modules/4.png b/website_model_viewer_widget/static/description/assets/modules/4.png new file mode 100644 index 000000000..618e3e6c4 Binary files /dev/null and b/website_model_viewer_widget/static/description/assets/modules/4.png differ diff --git a/website_model_viewer_widget/static/description/assets/modules/5.png b/website_model_viewer_widget/static/description/assets/modules/5.png new file mode 100644 index 000000000..2a722d66e Binary files /dev/null and b/website_model_viewer_widget/static/description/assets/modules/5.png differ diff --git a/website_model_viewer_widget/static/description/assets/modules/6.png b/website_model_viewer_widget/static/description/assets/modules/6.png new file mode 100644 index 000000000..a44d454aa Binary files /dev/null and b/website_model_viewer_widget/static/description/assets/modules/6.png differ diff --git a/website_model_viewer_widget/static/description/assets/screenshots/1.png b/website_model_viewer_widget/static/description/assets/screenshots/1.png new file mode 100644 index 000000000..5c31f9523 Binary files /dev/null and b/website_model_viewer_widget/static/description/assets/screenshots/1.png differ diff --git a/website_model_viewer_widget/static/description/assets/screenshots/2.png b/website_model_viewer_widget/static/description/assets/screenshots/2.png new file mode 100644 index 000000000..856cd9bb2 Binary files /dev/null and b/website_model_viewer_widget/static/description/assets/screenshots/2.png differ diff --git a/website_model_viewer_widget/static/description/assets/screenshots/3.png b/website_model_viewer_widget/static/description/assets/screenshots/3.png new file mode 100644 index 000000000..dae004c82 Binary files /dev/null and b/website_model_viewer_widget/static/description/assets/screenshots/3.png differ diff --git a/website_model_viewer_widget/static/description/assets/screenshots/4.png b/website_model_viewer_widget/static/description/assets/screenshots/4.png new file mode 100644 index 000000000..6fda44d18 Binary files /dev/null and b/website_model_viewer_widget/static/description/assets/screenshots/4.png differ diff --git a/website_model_viewer_widget/static/description/assets/screenshots/5.png b/website_model_viewer_widget/static/description/assets/screenshots/5.png new file mode 100644 index 000000000..379b4a4da Binary files /dev/null and b/website_model_viewer_widget/static/description/assets/screenshots/5.png differ diff --git a/website_model_viewer_widget/static/description/assets/screenshots/hero.gif b/website_model_viewer_widget/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..17bec6eae Binary files /dev/null and b/website_model_viewer_widget/static/description/assets/screenshots/hero.gif differ diff --git a/website_model_viewer_widget/static/description/banner.png b/website_model_viewer_widget/static/description/banner.png new file mode 100644 index 000000000..5f614c0c1 Binary files /dev/null and b/website_model_viewer_widget/static/description/banner.png differ diff --git a/website_model_viewer_widget/static/description/icon.png b/website_model_viewer_widget/static/description/icon.png new file mode 100644 index 000000000..8cfffd17b Binary files /dev/null and b/website_model_viewer_widget/static/description/icon.png differ diff --git a/website_model_viewer_widget/static/description/images/view_360.png b/website_model_viewer_widget/static/description/images/view_360.png new file mode 100644 index 000000000..9e14d3105 Binary files /dev/null and b/website_model_viewer_widget/static/description/images/view_360.png differ diff --git a/website_model_viewer_widget/static/description/index.html b/website_model_viewer_widget/static/description/index.html new file mode 100644 index 000000000..dd6655d89 --- /dev/null +++ b/website_model_viewer_widget/static/description/index.html @@ -0,0 +1,678 @@ +
+ +
+ +
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+ +
+
+ +
+
+
+ +

+ Website Model Viewer Widget

+

+ Experience the product like never before with + our stunning 3D model viewer. Explore every angle + and detail of the product right from our website!. +

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

+ Explore This + Module

+
+ + + + +
+
+ +
+

+ Overview +

+
+
+
+ Experience the product like never before with our stunning 3D + model viewer. Explore every angle and detail of the product right + from our website! +
+
+ + + +
+
+ +
+

+ Features +

+
+
+
+
+ + You can view the 3d model uploaded inside the + product in the website. +
+
+ + It helps to render interactive 3D models. +
+
+ + It only support 3D images with .glb extension. +
+
+
+ + Zoom in and zoom out feature is available. + +
+
+ + Use the mouse or touchpad to rotate the model + in different directions, view it from different angles. +
+
+ + + + +
+
+ +
+

+ Screenshots +

+ +
+
+
+ +
+

+ Product page +

+

+ Go to the product page that has a + 3D model uploaded.

+ +
+ +
+

+ You can move the 3D model in any direction.

+ +
+ + +
+

+ Default View +

+

+ If the corresponding product has no 3D model uploaded then, + by default it will display the following 3D model. +

+ +
+ + +
+

+ Website view of product +

+

+ Product image

+ +
+
+

+ Default view of 3D model

+

+ Use the mouse or touchpad to rotate the model in + different directions, zoom in and out, and view it from + different angles.

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

+ 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_model_viewer_widget/static/src/js/3d_product_view.js b/website_model_viewer_widget/static/src/js/3d_product_view.js new file mode 100644 index 000000000..741bfff9f --- /dev/null +++ b/website_model_viewer_widget/static/src/js/3d_product_view.js @@ -0,0 +1,45 @@ +odoo.define('website_model_viewer_widget.product_3d_view', function (require) { +'use strict'; + + var publicWidget = require('web.public.widget'); + var rpc = require('web.rpc'); + publicWidget.registry.product_detail_view_3d = publicWidget.Widget.extend({ + selector: '.o_wsale_product_page', + events: { + 'click .product_images':'_3dBtn', + }, + /** + *While clicking the extra image of the product in the website the 3D model + is displayed. + */ + _3dBtn:function (ev){ + var self = this; + if (this.$(ev.target).data('type') == "3d"){ + this.$('.o_carousel_product_outer').hide() + this.$('#product_main').show() + this.$('#product_main').html('') + var product_id = this.$("span[data-oe-model|='product.template']").data('oe-id') + rpc.query({ + route: '/product/3d', + params: { + product_id: product_id} + }).then(function(data) { + if (data['3D_model'] != false){ + var val = `data:model/gltf-binary;base64, ${data['3D_model']}`; + self.view3D = new View3D('#product_main', { + src: val + }); + }else{ + var val = `/model_viewer_widget/static/src/assets/3d.glb`; + self.view3D = new View3D('#product_main', { + src: val + }); + } + }); + }else{ + this.$('.o_carousel_product_outer').show() + this.$('#product_main').hide() + } + }, + }); +}); diff --git a/website_model_viewer_widget/views/website_sale_templates.xml b/website_model_viewer_widget/views/website_sale_templates.xml new file mode 100644 index 000000000..89a403aa8 --- /dev/null +++ b/website_model_viewer_widget/views/website_sale_templates.xml @@ -0,0 +1,35 @@ + + + + + +