diff --git a/odoo_icecat_connector/README.rst b/odoo_icecat_connector/README.rst new file mode 100644 index 000000000..799d1ef25 --- /dev/null +++ b/odoo_icecat_connector/README.rst @@ -0,0 +1,43 @@ +.. 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 + +Odoo Icecat Connector +===================== +* Fetch product information from icecat + + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +------- +General Public License, Version 3 (LGPL v3). +(https://www.odoo.com/documentation/user/16.0/legal/licenses/licenses.html) + +Credits +------- +Developer: Gokul P I @cybrosys, Contact: odoo@cybrosys.com + +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: ``__ \ No newline at end of file diff --git a/odoo_icecat_connector/__init__.py b/odoo_icecat_connector/__init__.py new file mode 100644 index 000000000..eedc6fc82 --- /dev/null +++ b/odoo_icecat_connector/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Gokul PI () +# +# 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 models +from . import controllers diff --git a/odoo_icecat_connector/__manifest__.py b/odoo_icecat_connector/__manifest__.py new file mode 100644 index 000000000..c1b39713c --- /dev/null +++ b/odoo_icecat_connector/__manifest__.py @@ -0,0 +1,58 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Gokul PI () +# +# 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': 'Odoo Icecat Connector', + 'description': 'The Odoo Icecat Connector is a specialized module designed' + ' to integrate the Icecat database with an Odoo e-commerce' + ' website. Icecat is a leading global provider of product ' + 'content, offering a vast repository of rich product data ' + 'including descriptions, images, specifications, and more.', + 'summary': 'With the Odoo Icecat Connector, businesses can unleash the ' + 'full potential of their Odoo e-commerce platform. By integrating' + ' the Icecat database with Odoo, businesses can import ' + 'accurate product details', + 'category': 'eCommerce', + 'version': '16.0.1.0.0', + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'depends': ['website', 'website_sale', 'stock'], + 'data': [ + 'views/shop_templates.xml', + 'views/product_template_views.xml', + 'views/res_config_settings_views.xml', + ], + 'images': [ + 'static/description/banner.jpg', + ], + 'assets': { + 'web.assets_frontend': [ + 'odoo_icecat_connector/static/src/js/icecat.js', + 'https://live.icecat.biz/js/live-current-2.js' + ], + }, + 'license': 'LGPL-3', + 'installable': True, + 'application': False, + 'auto_install': False, +} diff --git a/odoo_icecat_connector/controllers/__init__.py b/odoo_icecat_connector/controllers/__init__.py new file mode 100644 index 000000000..7622a9b49 --- /dev/null +++ b/odoo_icecat_connector/controllers/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Gokul PI () +# +# 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 odoo_icecat_connector diff --git a/odoo_icecat_connector/controllers/odoo_icecat_connector.py b/odoo_icecat_connector/controllers/odoo_icecat_connector.py new file mode 100644 index 000000000..17a6340c9 --- /dev/null +++ b/odoo_icecat_connector/controllers/odoo_icecat_connector.py @@ -0,0 +1,99 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Gokul PI () +# +# 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 . +# +############################################################################# + +import requests +from odoo.addons.website_sale.controllers.main import WebsiteSale +from odoo.addons.website.controllers.main import QueryURL +from odoo.http import request + + +class Icecat(WebsiteSale): + def _prepare_product_values(self, product, category, search, **kwargs): + """Override method to pass the product details from the icecat to + odoo website""" + product_category = request.env['product.public.category'] + if category: + category = product_category.browse(int(category)).exists() + attrib_list = request.httprequest.args.getlist('attrib') + attrib_values = [[int(attr) for attr in attribute.split("-")] for attribute in attrib_list if + attribute] + attrib_set = {attribute[1] for attribute in attrib_values} + keep = QueryURL( + '/shop', + **self._product_get_query_url_kwargs( + category=category and category.id, search=search, **kwargs, ), ) + # Needed to trigger the recently viewed product rpc + view_track = request.website.viewref("website_sale.product").track + username = request.env['ir.config_parameter'].get_param( + 'odoo_icecat_connector.user_id_icecat') + if username: + response = requests.get( + "https://live.icecat.biz/api?UserName=%s&Language=en&Content" + "=&Brand=%s&ProductCode=%s" % ( + str(username), product.brand, product.default_code)) + icecat = response.json() + if 'data' in icecat: + return { + 'search': search, + 'category': category, + 'pricelist': request.website.get_current_pricelist(), + 'attrib_values': attrib_values, + 'attrib_set': attrib_set, + 'keep': keep, + 'categories': product_category.search( + [('parent_id', '=', False)]), + 'main_object': product, + 'product': product, + 'add_qty': 1, + 'view_track': view_track, + 'icecat': icecat['data'] + } + else: + return { + 'search': search, + 'category': category, + 'pricelist': request.website.get_current_pricelist(), + 'attrib_values': attrib_values, + 'attrib_set': attrib_set, + 'keep': keep, + 'categories': product_category.search( + [('parent_id', '=', False)]), + 'main_object': product, + 'product': product, + 'add_qty': 1, + 'view_track': view_track, + } + else: + return { + 'search': search, + 'category': category, + 'pricelist': request.website.get_current_pricelist(), + 'attrib_values': attrib_values, + 'attrib_set': attrib_set, + 'keep': keep, + 'categories': product_category.search( + [('parent_id', '=', False)]), + 'main_object': product, + 'product': product, + 'add_qty': 1, + 'view_track': view_track, + } diff --git a/odoo_icecat_connector/doc/RELEASE_NOTES.md b/odoo_icecat_connector/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..77deb7052 --- /dev/null +++ b/odoo_icecat_connector/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 23.06.2023 +#### Version 16.0.1.0.0 +#### ADD +- Initial commit for Odoo Icecat Connector diff --git a/odoo_icecat_connector/models/__init__.py b/odoo_icecat_connector/models/__init__.py new file mode 100644 index 000000000..497e07e5c --- /dev/null +++ b/odoo_icecat_connector/models/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Gokul PI () +# +# 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 product_template +from . import res_config_settings diff --git a/odoo_icecat_connector/models/product_template.py b/odoo_icecat_connector/models/product_template.py new file mode 100644 index 000000000..e2b528ffa --- /dev/null +++ b/odoo_icecat_connector/models/product_template.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Gokul PI () +# +# 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 fields, models + + +class ProductTemplateInherited(models.Model): + """Inheriting the product template for adding the field for icecat + product brand""" + _inherit = 'product.template' + + brand = fields.Char(string="Brand", + help="The brand name of product in the icecat") + + def get_icecat_product_details(self, product_id): + """Returns the details of a product""" + if product_id: + products = self.env['product.product'].browse(int(product_id)) + username = self.env['ir.config_parameter'].get_param( + 'odoo_icecat_connector.user_id_icecat') + icecat_product_details = {'brand': products.brand, + 'product_code': products.default_code, + 'username': str(username)} + return icecat_product_details + + diff --git a/odoo_icecat_connector/models/res_config_settings.py b/odoo_icecat_connector/models/res_config_settings.py new file mode 100644 index 000000000..72acec65f --- /dev/null +++ b/odoo_icecat_connector/models/res_config_settings.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Gokul PI () +# +# 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 fields, models + + +class ResConfigSettings(models.TransientModel): + """Inheriting the config settings for adding the field for icecat user + id""" + _inherit = 'res.config.settings' + + user_id_icecat = fields.Char( + config_parameter= + 'odoo_icecat_connector.user_id_icecat', help='user id of the icecat') diff --git a/odoo_icecat_connector/static/description/assets/Screenshots/ice1.png b/odoo_icecat_connector/static/description/assets/Screenshots/ice1.png new file mode 100644 index 000000000..c0cd8ccd2 Binary files /dev/null and b/odoo_icecat_connector/static/description/assets/Screenshots/ice1.png differ diff --git a/odoo_icecat_connector/static/description/assets/Screenshots/ice2.png b/odoo_icecat_connector/static/description/assets/Screenshots/ice2.png new file mode 100644 index 000000000..219ceeaf3 Binary files /dev/null and b/odoo_icecat_connector/static/description/assets/Screenshots/ice2.png differ diff --git a/odoo_icecat_connector/static/description/assets/Screenshots/ice4.png b/odoo_icecat_connector/static/description/assets/Screenshots/ice4.png new file mode 100644 index 000000000..cf5e0a629 Binary files /dev/null and b/odoo_icecat_connector/static/description/assets/Screenshots/ice4.png differ diff --git a/odoo_icecat_connector/static/description/assets/Screenshots/ice5.png b/odoo_icecat_connector/static/description/assets/Screenshots/ice5.png new file mode 100644 index 000000000..80b80c51e Binary files /dev/null and b/odoo_icecat_connector/static/description/assets/Screenshots/ice5.png differ diff --git a/odoo_icecat_connector/static/description/assets/Screenshots/ice6.png b/odoo_icecat_connector/static/description/assets/Screenshots/ice6.png new file mode 100644 index 000000000..9caa7073e Binary files /dev/null and b/odoo_icecat_connector/static/description/assets/Screenshots/ice6.png differ diff --git a/odoo_icecat_connector/static/description/assets/Screenshots/icecat_product.png b/odoo_icecat_connector/static/description/assets/Screenshots/icecat_product.png new file mode 100644 index 000000000..c5fd49318 Binary files /dev/null and b/odoo_icecat_connector/static/description/assets/Screenshots/icecat_product.png differ diff --git a/odoo_icecat_connector/static/description/assets/Screenshots/icecat_site.png b/odoo_icecat_connector/static/description/assets/Screenshots/icecat_site.png new file mode 100644 index 000000000..864664bdf Binary files /dev/null and b/odoo_icecat_connector/static/description/assets/Screenshots/icecat_site.png differ diff --git a/odoo_icecat_connector/static/description/assets/Screenshots/icecatseting.png b/odoo_icecat_connector/static/description/assets/Screenshots/icecatseting.png new file mode 100644 index 000000000..e4a004858 Binary files /dev/null and b/odoo_icecat_connector/static/description/assets/Screenshots/icecatseting.png differ diff --git a/odoo_icecat_connector/static/description/assets/Screenshots/icecatsetingd.png b/odoo_icecat_connector/static/description/assets/Screenshots/icecatsetingd.png new file mode 100644 index 000000000..5914fb764 Binary files /dev/null and b/odoo_icecat_connector/static/description/assets/Screenshots/icecatsetingd.png differ diff --git a/odoo_icecat_connector/static/description/assets/Screenshots/img.png b/odoo_icecat_connector/static/description/assets/Screenshots/img.png new file mode 100644 index 000000000..1d51d5faf Binary files /dev/null and b/odoo_icecat_connector/static/description/assets/Screenshots/img.png differ diff --git a/odoo_icecat_connector/static/description/assets/Screenshots/img_1.png b/odoo_icecat_connector/static/description/assets/Screenshots/img_1.png new file mode 100644 index 000000000..68a7c266e Binary files /dev/null and b/odoo_icecat_connector/static/description/assets/Screenshots/img_1.png differ diff --git a/odoo_icecat_connector/static/description/assets/Screenshots/img_2.png b/odoo_icecat_connector/static/description/assets/Screenshots/img_2.png new file mode 100644 index 000000000..3fc43d975 Binary files /dev/null and b/odoo_icecat_connector/static/description/assets/Screenshots/img_2.png differ diff --git a/odoo_icecat_connector/static/description/assets/icons/check.png b/odoo_icecat_connector/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/odoo_icecat_connector/static/description/assets/icons/check.png differ diff --git a/odoo_icecat_connector/static/description/assets/icons/chevron.png b/odoo_icecat_connector/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/odoo_icecat_connector/static/description/assets/icons/chevron.png differ diff --git a/odoo_icecat_connector/static/description/assets/icons/cogs.png b/odoo_icecat_connector/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/odoo_icecat_connector/static/description/assets/icons/cogs.png differ diff --git a/odoo_icecat_connector/static/description/assets/icons/consultation.png b/odoo_icecat_connector/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/odoo_icecat_connector/static/description/assets/icons/consultation.png differ diff --git a/odoo_icecat_connector/static/description/assets/icons/ecom-black.png b/odoo_icecat_connector/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/odoo_icecat_connector/static/description/assets/icons/ecom-black.png differ diff --git a/odoo_icecat_connector/static/description/assets/icons/education-black.png b/odoo_icecat_connector/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/odoo_icecat_connector/static/description/assets/icons/education-black.png differ diff --git a/odoo_icecat_connector/static/description/assets/icons/hotel-black.png b/odoo_icecat_connector/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/odoo_icecat_connector/static/description/assets/icons/hotel-black.png differ diff --git a/odoo_icecat_connector/static/description/assets/icons/license.png b/odoo_icecat_connector/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/odoo_icecat_connector/static/description/assets/icons/license.png differ diff --git a/odoo_icecat_connector/static/description/assets/icons/lifebuoy.png b/odoo_icecat_connector/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/odoo_icecat_connector/static/description/assets/icons/lifebuoy.png differ diff --git a/odoo_icecat_connector/static/description/assets/icons/manufacturing-black.png b/odoo_icecat_connector/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/odoo_icecat_connector/static/description/assets/icons/manufacturing-black.png differ diff --git a/odoo_icecat_connector/static/description/assets/icons/pos-black.png b/odoo_icecat_connector/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/odoo_icecat_connector/static/description/assets/icons/pos-black.png differ diff --git a/odoo_icecat_connector/static/description/assets/icons/puzzle.png b/odoo_icecat_connector/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/odoo_icecat_connector/static/description/assets/icons/puzzle.png differ diff --git a/odoo_icecat_connector/static/description/assets/icons/restaurant-black.png b/odoo_icecat_connector/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/odoo_icecat_connector/static/description/assets/icons/restaurant-black.png differ diff --git a/odoo_icecat_connector/static/description/assets/icons/service-black.png b/odoo_icecat_connector/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/odoo_icecat_connector/static/description/assets/icons/service-black.png differ diff --git a/odoo_icecat_connector/static/description/assets/icons/trading-black.png b/odoo_icecat_connector/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/odoo_icecat_connector/static/description/assets/icons/trading-black.png differ diff --git a/odoo_icecat_connector/static/description/assets/icons/training.png b/odoo_icecat_connector/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/odoo_icecat_connector/static/description/assets/icons/training.png differ diff --git a/odoo_icecat_connector/static/description/assets/icons/update.png b/odoo_icecat_connector/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/odoo_icecat_connector/static/description/assets/icons/update.png differ diff --git a/odoo_icecat_connector/static/description/assets/icons/user.png b/odoo_icecat_connector/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/odoo_icecat_connector/static/description/assets/icons/user.png differ diff --git a/odoo_icecat_connector/static/description/assets/icons/wrench.png b/odoo_icecat_connector/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/odoo_icecat_connector/static/description/assets/icons/wrench.png differ diff --git a/odoo_icecat_connector/static/description/assets/misc/categories.png b/odoo_icecat_connector/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/odoo_icecat_connector/static/description/assets/misc/categories.png differ diff --git a/odoo_icecat_connector/static/description/assets/misc/check-box.png b/odoo_icecat_connector/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/odoo_icecat_connector/static/description/assets/misc/check-box.png differ diff --git a/odoo_icecat_connector/static/description/assets/misc/compass.png b/odoo_icecat_connector/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/odoo_icecat_connector/static/description/assets/misc/compass.png differ diff --git a/odoo_icecat_connector/static/description/assets/misc/corporate.png b/odoo_icecat_connector/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/odoo_icecat_connector/static/description/assets/misc/corporate.png differ diff --git a/odoo_icecat_connector/static/description/assets/misc/customer-support.png b/odoo_icecat_connector/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/odoo_icecat_connector/static/description/assets/misc/customer-support.png differ diff --git a/odoo_icecat_connector/static/description/assets/misc/cybrosys-logo.png b/odoo_icecat_connector/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/odoo_icecat_connector/static/description/assets/misc/cybrosys-logo.png differ diff --git a/odoo_icecat_connector/static/description/assets/misc/features.png b/odoo_icecat_connector/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/odoo_icecat_connector/static/description/assets/misc/features.png differ diff --git a/odoo_icecat_connector/static/description/assets/misc/logo.png b/odoo_icecat_connector/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/odoo_icecat_connector/static/description/assets/misc/logo.png differ diff --git a/odoo_icecat_connector/static/description/assets/misc/pictures.png b/odoo_icecat_connector/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/odoo_icecat_connector/static/description/assets/misc/pictures.png differ diff --git a/odoo_icecat_connector/static/description/assets/misc/pie-chart.png b/odoo_icecat_connector/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/odoo_icecat_connector/static/description/assets/misc/pie-chart.png differ diff --git a/odoo_icecat_connector/static/description/assets/misc/right-arrow.png b/odoo_icecat_connector/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/odoo_icecat_connector/static/description/assets/misc/right-arrow.png differ diff --git a/odoo_icecat_connector/static/description/assets/misc/star.png b/odoo_icecat_connector/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/odoo_icecat_connector/static/description/assets/misc/star.png differ diff --git a/odoo_icecat_connector/static/description/assets/misc/support.png b/odoo_icecat_connector/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/odoo_icecat_connector/static/description/assets/misc/support.png differ diff --git a/odoo_icecat_connector/static/description/assets/misc/whatsapp.png b/odoo_icecat_connector/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/odoo_icecat_connector/static/description/assets/misc/whatsapp.png differ diff --git a/odoo_icecat_connector/static/description/assets/modules/1.png b/odoo_icecat_connector/static/description/assets/modules/1.png new file mode 100644 index 000000000..489f44e86 Binary files /dev/null and b/odoo_icecat_connector/static/description/assets/modules/1.png differ diff --git a/odoo_icecat_connector/static/description/assets/modules/2.png b/odoo_icecat_connector/static/description/assets/modules/2.png new file mode 100644 index 000000000..4f9e87f6e Binary files /dev/null and b/odoo_icecat_connector/static/description/assets/modules/2.png differ diff --git a/odoo_icecat_connector/static/description/assets/modules/3.png b/odoo_icecat_connector/static/description/assets/modules/3.png new file mode 100644 index 000000000..e571015b1 Binary files /dev/null and b/odoo_icecat_connector/static/description/assets/modules/3.png differ diff --git a/odoo_icecat_connector/static/description/assets/modules/4.png b/odoo_icecat_connector/static/description/assets/modules/4.png new file mode 100644 index 000000000..624ef69b7 Binary files /dev/null and b/odoo_icecat_connector/static/description/assets/modules/4.png differ diff --git a/odoo_icecat_connector/static/description/assets/modules/5.gif b/odoo_icecat_connector/static/description/assets/modules/5.gif new file mode 100644 index 000000000..8f40aab85 Binary files /dev/null and b/odoo_icecat_connector/static/description/assets/modules/5.gif differ diff --git a/odoo_icecat_connector/static/description/assets/modules/6.png b/odoo_icecat_connector/static/description/assets/modules/6.png new file mode 100644 index 000000000..31ed46762 Binary files /dev/null and b/odoo_icecat_connector/static/description/assets/modules/6.png differ diff --git a/odoo_icecat_connector/static/description/assets/modules/img.png b/odoo_icecat_connector/static/description/assets/modules/img.png new file mode 100644 index 000000000..c6a9ead2f Binary files /dev/null and b/odoo_icecat_connector/static/description/assets/modules/img.png differ diff --git a/odoo_icecat_connector/static/description/banner.jpg b/odoo_icecat_connector/static/description/banner.jpg new file mode 100644 index 000000000..cbcc848e2 Binary files /dev/null and b/odoo_icecat_connector/static/description/banner.jpg differ diff --git a/odoo_icecat_connector/static/description/icon.png b/odoo_icecat_connector/static/description/icon.png new file mode 100644 index 000000000..40e744339 Binary files /dev/null and b/odoo_icecat_connector/static/description/icon.png differ diff --git a/odoo_icecat_connector/static/description/index.html b/odoo_icecat_connector/static/description/index.html new file mode 100644 index 000000000..c64972add --- /dev/null +++ b/odoo_icecat_connector/static/description/index.html @@ -0,0 +1,641 @@ + +
+ +
+ +
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+ +
+
+

+ Odoo Icecat Connector +

+

+ Icecat Connector for Odoo 16

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

+ Fetch the product information from icecat database using + product id internal reference. + Using Icecat we can fetch the data from the icecat database + rather than odoo's database + Instead of manually inputting product information, integrating + with Icecat allows for automatic import of product data, which + saves time and reduces errors. + +

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

+ Features

+
+

+ 1. Product Information Enrichment: With the Odoo Icecat + Connector, businesses can easily enrich their product + catalog by importing detailed and accurate information from + the Icecat database. This includes product descriptions, + images, technical specifications, and marketing content, + all of which contribute to an enhanced user experience and + increase customer confidence in their purchase decisions. +

+

+ 2. Automatic Updates: The integration provides automatic + synchronization between the Icecat database and the Odoo + e-commerce website. Any changes or additions made to the + Icecat database are automatically reflected in the + corresponding products on the e-commerce site, saving + valuable time and effort for the business. +

+

+ 3. Time Efficiency: By leveraging the Odoo Icecat + Connector, businesses can significantly reduce the time + required to manage and update product information. The + module allows for the bulk import of product details, + eliminating the need for manual entry and reducing the + likelihood of errors. +

+

+ 4. Enhanced User Experience: With comprehensive product + information readily available, customers visiting the Odoo + e-commerce website can make informed purchasing decisions. + Detailed descriptions, high-quality images, and accurate + specifications empower customers to evaluate products + effectively, leading to increased trust and satisfaction +

+
+
+
+ + +
+
+
+

+ First set your username of icecat like picture shown below +

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

+ Create or import the product with internal reference as the + product code of the product in the icecat and brand of + product as brand in the icecat +

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

+ After that we can see the details of the product in the + website. Here all the details are coming from the icecat + database +

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

+ 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

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

+ Need Help?

+
+
+ + + +
+ +
+
+ +
+ +
+ +
+
+ +
+
\ No newline at end of file diff --git a/odoo_icecat_connector/static/src/js/icecat.js b/odoo_icecat_connector/static/src/js/icecat.js new file mode 100644 index 000000000..f8d9a8ae5 --- /dev/null +++ b/odoo_icecat_connector/static/src/js/icecat.js @@ -0,0 +1,36 @@ +odoo.define('odoo_icecat_connector.icecat_products', function(require) { + 'use strict'; + // Calling the method to get the product details from the icecat db and pass + //the corresponding details to the website + var rpc = require('web.rpc') + rpc.query({ + model: 'product.template', + method: 'get_icecat_product_details', + args: [ + [], $('.product_id').val() + ], + }).then(function(data) { + if (data) { + if (data.brand != false) { + IcecatLive.getDatasheet({ + 'title': '#icecat_title', + 'essentialinfo': '#icecat_essentialinfo', + 'marketingtext': '#icecat_marketingtext', + 'manuals': '#icecat_manuals', + 'reasonstobuy': '#icecat_reasonstobuy', + 'reviews': '#icecat_reviews', + 'featuregroups': '#icecat_featuregroups', + 'gallery': '#icecat_gallery', + 'featurelogos': '#icecat_featurelogos', + 'tours3d': '#icecat_tours3d', + 'videos': '#icecat_videos', + 'productstory': '#icecat_productstory' + }, { + Brand: data.brand, + PartCode: data.product_code, + UserName: data.username, + }, 'en') + } + } + }); +}); \ No newline at end of file diff --git a/odoo_icecat_connector/views/product_template_views.xml b/odoo_icecat_connector/views/product_template_views.xml new file mode 100644 index 000000000..11f442998 --- /dev/null +++ b/odoo_icecat_connector/views/product_template_views.xml @@ -0,0 +1,15 @@ + + + + + product.template.view.form.inherit.odoo.icecat.connector + product.template + + + + + + + + diff --git a/odoo_icecat_connector/views/res_config_settings_views.xml b/odoo_icecat_connector/views/res_config_settings_views.xml new file mode 100644 index 000000000..76e68828d --- /dev/null +++ b/odoo_icecat_connector/views/res_config_settings_views.xml @@ -0,0 +1,32 @@ + + + + + + + res.config.settings.view.form.inherit.odoo.icecat.connector + + res.config.settings + + + + +
+
+
+
+
+ Select your Icecat username here +
+
+ +
+
+
+
+
+
+
+
\ No newline at end of file diff --git a/odoo_icecat_connector/views/shop_templates.xml b/odoo_icecat_connector/views/shop_templates.xml new file mode 100644 index 000000000..28bec6f2b --- /dev/null +++ b/odoo_icecat_connector/views/shop_templates.xml @@ -0,0 +1,62 @@ + + + + + + +