diff --git a/index_and_follow/README.rst b/index_and_follow/README.rst new file mode 100644 index 000000000..c13a263bc --- /dev/null +++ b/index_and_follow/README.rst @@ -0,0 +1,41 @@ +.. image:: https://img.shields.io/badge/licence-LGPL--3-blue.svg + :target: https://www.gnu.org/licenses/lgpl-3.0-standalone.html + :alt: License: LGPL-3 + +Website Index and Follow +========================= +This module lets you specify whether or not a particular page should be indexed. + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +Developer: (V14) Mohammed Dilshad Tk, Contact: odoo@cybrosys.com + +License +------- +General Public License, Version 3 (LGPL v3). +(https://www.gnu.org/licenses/lgpl-3.0-standalone.html) + +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/index_and_follow/__init__.py b/index_and_follow/__init__.py new file mode 100644 index 000000000..a6c7f376f --- /dev/null +++ b/index_and_follow/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Mohammed Dilshad Tk (odoo@cybrosys.com) +# +# 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 +from . import models diff --git a/index_and_follow/__manifest__.py b/index_and_follow/__manifest__.py new file mode 100644 index 000000000..0639986dd --- /dev/null +++ b/index_and_follow/__manifest__.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Mohammed Dilshad Tk (odoo@cybrosys.com) +# +# 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 Index And Follow', + 'version': '14.0.1.0.0', + 'category': 'Website', + 'summary': """Website Index and Follow Application for Odoo 14""", + 'description': """The module helps you to specify product-level + indexing.""", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'depends': ['website_sale'], + 'data': [ + 'views/assets.xml', + 'views/source_templates.xml', + 'views/website_templates.xml', + ], + 'images': ['static/description/banner.png', ], + 'license': 'LGPL-3', + 'auto_install': False, + 'installable': True, + 'application': False +} diff --git a/index_and_follow/controllers/__init__.py b/index_and_follow/controllers/__init__.py new file mode 100644 index 000000000..6024c2856 --- /dev/null +++ b/index_and_follow/controllers/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Mohammed Dilshad Tk (odoo@cybrosys.com) +# +# 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 index_and_follow diff --git a/index_and_follow/controllers/index_and_follow.py b/index_and_follow/controllers/index_and_follow.py new file mode 100644 index 000000000..057f65530 --- /dev/null +++ b/index_and_follow/controllers/index_and_follow.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Mohammed Dilshad Tk (odoo@cybrosys.com) +# +# 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 +from odoo.addons.website_sale.controllers.main import WebsiteSale + + +class WebIndexJson(http.Controller): + """ Controller for website index and follow """ + + @http.route('/web_index', type='json', auth='user') + def web_index(self, index, product): + """ Route for index """ + product_rec = request.env['product.template'].browse(int(product)) + if index: + product_rec.is_index = True + else: + product_rec.is_index = False + + +class WebsiteSale(WebsiteSale): + """ Class for website_sale """ + + def _prepare_product_values(self, product, category, search, **kwargs): + """ Function for access user along with product """ + res = super(WebsiteSale, self)._prepare_product_values(product, + category, + search) + res.update({ + 'page_index': product.is_index, + 'product_rec': product, + 'user': request.env.user.has_group('base.group_user') + }) + return res diff --git a/index_and_follow/doc/RELEASE_NOTES.md b/index_and_follow/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..3b0e38397 --- /dev/null +++ b/index_and_follow/doc/RELEASE_NOTES.md @@ -0,0 +1,7 @@ +## Module + +#### 24.08.2023 +#### Version 14.0.1.0.0 +#### ADD + +- Initial commit for Website Index and Follow diff --git a/index_and_follow/models/__init__.py b/index_and_follow/models/__init__.py new file mode 100644 index 000000000..745458c08 --- /dev/null +++ b/index_and_follow/models/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Mohammed Dilshad Tk (odoo@cybrosys.com) +# +# 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 diff --git a/index_and_follow/models/product_template.py b/index_and_follow/models/product_template.py new file mode 100644 index 000000000..ac629ad0c --- /dev/null +++ b/index_and_follow/models/product_template.py @@ -0,0 +1,30 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Mohammed Dilshad Tk (odoo@cybrosys.com) +# +# 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 ProductTemplate(models.Model): + """ Class for adding a field in product """ + _inherit = "product.template" + + is_index = fields.Boolean(default=True, help="Is indexed product", + String="Is indexed") diff --git a/index_and_follow/static/description/assets/icons/check.png b/index_and_follow/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/index_and_follow/static/description/assets/icons/check.png differ diff --git a/index_and_follow/static/description/assets/icons/chevron.png b/index_and_follow/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/index_and_follow/static/description/assets/icons/chevron.png differ diff --git a/index_and_follow/static/description/assets/icons/cogs.png b/index_and_follow/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/index_and_follow/static/description/assets/icons/cogs.png differ diff --git a/index_and_follow/static/description/assets/icons/consultation.png b/index_and_follow/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/index_and_follow/static/description/assets/icons/consultation.png differ diff --git a/index_and_follow/static/description/assets/icons/ecom-black.png b/index_and_follow/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/index_and_follow/static/description/assets/icons/ecom-black.png differ diff --git a/index_and_follow/static/description/assets/icons/education-black.png b/index_and_follow/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/index_and_follow/static/description/assets/icons/education-black.png differ diff --git a/index_and_follow/static/description/assets/icons/hotel-black.png b/index_and_follow/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/index_and_follow/static/description/assets/icons/hotel-black.png differ diff --git a/index_and_follow/static/description/assets/icons/license.png b/index_and_follow/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/index_and_follow/static/description/assets/icons/license.png differ diff --git a/index_and_follow/static/description/assets/icons/lifebuoy.png b/index_and_follow/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/index_and_follow/static/description/assets/icons/lifebuoy.png differ diff --git a/index_and_follow/static/description/assets/icons/logo.png b/index_and_follow/static/description/assets/icons/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/index_and_follow/static/description/assets/icons/logo.png differ diff --git a/index_and_follow/static/description/assets/icons/manufacturing-black.png b/index_and_follow/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/index_and_follow/static/description/assets/icons/manufacturing-black.png differ diff --git a/index_and_follow/static/description/assets/icons/pos-black.png b/index_and_follow/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/index_and_follow/static/description/assets/icons/pos-black.png differ diff --git a/index_and_follow/static/description/assets/icons/puzzle.png b/index_and_follow/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/index_and_follow/static/description/assets/icons/puzzle.png differ diff --git a/index_and_follow/static/description/assets/icons/restaurant-black.png b/index_and_follow/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/index_and_follow/static/description/assets/icons/restaurant-black.png differ diff --git a/index_and_follow/static/description/assets/icons/service-black.png b/index_and_follow/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/index_and_follow/static/description/assets/icons/service-black.png differ diff --git a/index_and_follow/static/description/assets/icons/trading-black.png b/index_and_follow/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/index_and_follow/static/description/assets/icons/trading-black.png differ diff --git a/index_and_follow/static/description/assets/icons/training.png b/index_and_follow/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/index_and_follow/static/description/assets/icons/training.png differ diff --git a/index_and_follow/static/description/assets/icons/update.png b/index_and_follow/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/index_and_follow/static/description/assets/icons/update.png differ diff --git a/index_and_follow/static/description/assets/icons/user.png b/index_and_follow/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/index_and_follow/static/description/assets/icons/user.png differ diff --git a/index_and_follow/static/description/assets/icons/wrench.png b/index_and_follow/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/index_and_follow/static/description/assets/icons/wrench.png differ diff --git a/index_and_follow/static/description/assets/misc/categories.png b/index_and_follow/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/index_and_follow/static/description/assets/misc/categories.png differ diff --git a/index_and_follow/static/description/assets/misc/check-box.png b/index_and_follow/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/index_and_follow/static/description/assets/misc/check-box.png differ diff --git a/index_and_follow/static/description/assets/misc/compass.png b/index_and_follow/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/index_and_follow/static/description/assets/misc/compass.png differ diff --git a/index_and_follow/static/description/assets/misc/corporate.png b/index_and_follow/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/index_and_follow/static/description/assets/misc/corporate.png differ diff --git a/index_and_follow/static/description/assets/misc/customer-support.png b/index_and_follow/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/index_and_follow/static/description/assets/misc/customer-support.png differ diff --git a/index_and_follow/static/description/assets/misc/cybrosys-logo.png b/index_and_follow/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/index_and_follow/static/description/assets/misc/cybrosys-logo.png differ diff --git a/index_and_follow/static/description/assets/misc/features.png b/index_and_follow/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/index_and_follow/static/description/assets/misc/features.png differ diff --git a/index_and_follow/static/description/assets/misc/logo.png b/index_and_follow/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/index_and_follow/static/description/assets/misc/logo.png differ diff --git a/index_and_follow/static/description/assets/misc/pictures.png b/index_and_follow/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/index_and_follow/static/description/assets/misc/pictures.png differ diff --git a/index_and_follow/static/description/assets/misc/pie-chart.png b/index_and_follow/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/index_and_follow/static/description/assets/misc/pie-chart.png differ diff --git a/index_and_follow/static/description/assets/misc/right-arrow.png b/index_and_follow/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/index_and_follow/static/description/assets/misc/right-arrow.png differ diff --git a/index_and_follow/static/description/assets/misc/star.png b/index_and_follow/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/index_and_follow/static/description/assets/misc/star.png differ diff --git a/index_and_follow/static/description/assets/misc/support.png b/index_and_follow/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/index_and_follow/static/description/assets/misc/support.png differ diff --git a/index_and_follow/static/description/assets/misc/whatsapp.png b/index_and_follow/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/index_and_follow/static/description/assets/misc/whatsapp.png differ diff --git a/index_and_follow/static/description/assets/modules/odoo_website_helpdesk.png b/index_and_follow/static/description/assets/modules/odoo_website_helpdesk.png new file mode 100644 index 000000000..6f15f8214 Binary files /dev/null and b/index_and_follow/static/description/assets/modules/odoo_website_helpdesk.png differ diff --git a/index_and_follow/static/description/assets/modules/odoo_website_helpdesk_dashboard.png b/index_and_follow/static/description/assets/modules/odoo_website_helpdesk_dashboard.png new file mode 100644 index 000000000..cbf8e2131 Binary files /dev/null and b/index_and_follow/static/description/assets/modules/odoo_website_helpdesk_dashboard.png differ diff --git a/index_and_follow/static/description/assets/modules/openai_product_images.png b/index_and_follow/static/description/assets/modules/openai_product_images.png new file mode 100644 index 000000000..a21794b89 Binary files /dev/null and b/index_and_follow/static/description/assets/modules/openai_product_images.png differ diff --git a/index_and_follow/static/description/assets/modules/openai_website_product_media.png b/index_and_follow/static/description/assets/modules/openai_website_product_media.png new file mode 100644 index 000000000..87f387c1f Binary files /dev/null and b/index_and_follow/static/description/assets/modules/openai_website_product_media.png differ diff --git a/index_and_follow/static/description/assets/modules/product_catalogue.png b/index_and_follow/static/description/assets/modules/product_catalogue.png new file mode 100644 index 000000000..a4a82130f Binary files /dev/null and b/index_and_follow/static/description/assets/modules/product_catalogue.png differ diff --git a/index_and_follow/static/description/assets/modules/website_custom_contact_us.png b/index_and_follow/static/description/assets/modules/website_custom_contact_us.png new file mode 100644 index 000000000..0cfb293ec Binary files /dev/null and b/index_and_follow/static/description/assets/modules/website_custom_contact_us.png differ diff --git a/index_and_follow/static/description/assets/modules/website_sale_advanced_search.png b/index_and_follow/static/description/assets/modules/website_sale_advanced_search.png new file mode 100644 index 000000000..668fd27bc Binary files /dev/null and b/index_and_follow/static/description/assets/modules/website_sale_advanced_search.png differ diff --git a/index_and_follow/static/description/assets/screenshots/1.png b/index_and_follow/static/description/assets/screenshots/1.png new file mode 100644 index 000000000..8286884dc Binary files /dev/null and b/index_and_follow/static/description/assets/screenshots/1.png differ diff --git a/index_and_follow/static/description/assets/screenshots/2.png b/index_and_follow/static/description/assets/screenshots/2.png new file mode 100644 index 000000000..0010f9191 Binary files /dev/null and b/index_and_follow/static/description/assets/screenshots/2.png differ diff --git a/index_and_follow/static/description/assets/screenshots/3.png b/index_and_follow/static/description/assets/screenshots/3.png new file mode 100644 index 000000000..98093fe0b Binary files /dev/null and b/index_and_follow/static/description/assets/screenshots/3.png differ diff --git a/index_and_follow/static/description/assets/screenshots/4.png b/index_and_follow/static/description/assets/screenshots/4.png new file mode 100644 index 000000000..3733716d2 Binary files /dev/null and b/index_and_follow/static/description/assets/screenshots/4.png differ diff --git a/index_and_follow/static/description/assets/screenshots/5.png b/index_and_follow/static/description/assets/screenshots/5.png new file mode 100644 index 000000000..84735432f Binary files /dev/null and b/index_and_follow/static/description/assets/screenshots/5.png differ diff --git a/index_and_follow/static/description/assets/screenshots/6.png b/index_and_follow/static/description/assets/screenshots/6.png new file mode 100644 index 000000000..fa830fdbe Binary files /dev/null and b/index_and_follow/static/description/assets/screenshots/6.png differ diff --git a/index_and_follow/static/description/assets/screenshots/7.png b/index_and_follow/static/description/assets/screenshots/7.png new file mode 100644 index 000000000..6a75c7116 Binary files /dev/null and b/index_and_follow/static/description/assets/screenshots/7.png differ diff --git a/index_and_follow/static/description/assets/screenshots/hero.gif b/index_and_follow/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..c596e0e8e Binary files /dev/null and b/index_and_follow/static/description/assets/screenshots/hero.gif differ diff --git a/index_and_follow/static/description/banner.png b/index_and_follow/static/description/banner.png new file mode 100644 index 000000000..ad7a8bdc0 Binary files /dev/null and b/index_and_follow/static/description/banner.png differ diff --git a/index_and_follow/static/description/icon.png b/index_and_follow/static/description/icon.png new file mode 100644 index 000000000..e44aef1e0 Binary files /dev/null and b/index_and_follow/static/description/icon.png differ diff --git a/index_and_follow/static/description/index.html b/index_and_follow/static/description/index.html new file mode 100644 index 000000000..f9c572f97 --- /dev/null +++ b/index_and_follow/static/description/index.html @@ -0,0 +1,642 @@ +
+ +
+ +
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+ + +
+
+
+

+ Website Index And Follow

+

+ This System Specify How The Product-Level Settings Can Be + Used To Adjust How Google Presents Your Content In Search + Results

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

+ Explore This + Module

+
+ + + + +
+
+ +
+

+ Overview +

+
+
+
+ Website Index and Follow is an application which is used to maintain the + Google search results. + You can specify product-level settings by including a meta tag on HTML + pages or in an HTTP header. + The robots meta tag lets you utilize a granular, product-specific + approach to controlling how an individual + product should be indexed and served to users in Google Search results. + Place the robots meta tag in the head section of a given page. +
+
+ + + +
+
+ +
+

+ Features +

+
+
+
+
+ + User can enable "Is Indexed" in website. +
+
+ + "Is Indexed" enabling helps to show those products in google search as a Suggestion +
+
+
+ + + +
+
+ +
+

+ Screenshots +

+
+
+
+ +
+

+ An option 'Is Indexed' for Internal Users

+

+ Internal user can enable the checkbox 'Is indexed' if they want + to index the product

+ +
+
+

+ After Enabling The Option, Click View Frame Source

+ +
+
+

+ A Meta tag will be added inside the Header tag

+ +
+
+

+ If 'Is Indexed' is Unchecked

+ +
+
+

+ View Frame Source After Disabling 'Is indexed'

+ +
+
+

+ Another Meta tag will be added to the Header tag

+ +
+
+

+ Portal User and Public Users has NO ACCESS to the 'Is Indexed' + Checkbox

+ +
+
+
+ + + +
+
+

Suggested 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/index_and_follow/static/src/js/website.js b/index_and_follow/static/src/js/website.js new file mode 100644 index 000000000..5c81141de --- /dev/null +++ b/index_and_follow/static/src/js/website.js @@ -0,0 +1,38 @@ +odoo.define('index_and_follow.index', function (require) { +'use strict'; + //Extend the publicWidget to add function for add index for the products by calling + // the controller functions + var ajax = require('web.ajax'); + var publicWidget = require('web.public.widget'); + publicWidget.registry.IndexAndFollow = publicWidget.Widget.extend({ + selector: '#product_details', + events: { + 'change .is_index': '_setProductIndex', + }, + _setProductIndex: function(event){ + //Function to set product index + var product = this.el.querySelector('.product').value; + if (event.target.checked == true){ + /*check index input is checked, if input is checked, it sends an AJAX request + to the server to set the product's indexing status to true.*/ + this.el.querySelector('.is_index').checked = true; + ajax.jsonRpc('/web_index', 'call',{ + 'index': true, + 'product': product, + }).then(function(){ + window.location.reload(); + }); + } + else{ + //Input is unchecked, it sends an AJAX request to set the status to false. + ajax.jsonRpc('/web_index', 'call',{ + 'index': false, + 'product': product, + }).then(function(){ + window.location.reload(); + }); + } + }, + }); + return publicWidget.registry.IndexAndFollow; + }); \ No newline at end of file diff --git a/index_and_follow/views/assets.xml b/index_and_follow/views/assets.xml new file mode 100644 index 000000000..1f35dcad0 --- /dev/null +++ b/index_and_follow/views/assets.xml @@ -0,0 +1,10 @@ + + + +