diff --git a/index_and_follow/README.rst b/index_and_follow/README.rst new file mode 100644 index 000000000..76c409b08 --- /dev/null +++ b/index_and_follow/README.rst @@ -0,0 +1,50 @@ +.. image:: https://img.shields.io/badge/license-LGPL--3-green.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. + +Configuration +============= +No additional configuration required + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +------- +General Public License, Version 3 (LGPL v3). +(https://www.odoo.com/documentation/17.0/legal/licenses.html) + +Credits +======= +Developer: + (v16) Ayisha Sumayya K, + (v17) Jumana Haseen, +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: ``__ diff --git a/index_and_follow/__init__.py b/index_and_follow/__init__.py new file mode 100644 index 000000000..3659bc211 --- /dev/null +++ b/index_and_follow/__init__.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Jumana Haseen (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..a80dfce5f --- /dev/null +++ b/index_and_follow/__manifest__.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Jumana Haseen (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': '17.0.1.0.0', + 'category': 'Website', + 'summary': """Website Index and Follow Application for Odoo 17""", + '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/portal_views.xml', + 'views/website_sale_views.xml', + ], + 'assets': { + 'web.assets_frontend': [ + 'index_and_follow/static/src/js/index_and_follow.js', ], + }, + 'images': ['static/description/banner.jpg'], + '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..b42b7df84 --- /dev/null +++ b/index_and_follow/controllers/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Jumana Haseen (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..b5629eaf8 --- /dev/null +++ b/index_and_follow/controllers/index_and_follow.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Jumana Haseen (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 WebIndex(WebsiteSale): + """ Class for website_sale """ + + def _prepare_product_values(self, product, category, search, **kwargs): + """ Function for access user along with product """ + + res = super(WebIndex, 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..7927e0d19 --- /dev/null +++ b/index_and_follow/doc/RELEASE_NOTES.md @@ -0,0 +1,7 @@ +## Module + +#### 06.02.2024 +#### Version 17.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..1bd1774f8 --- /dev/null +++ b/index_and_follow/models/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Jumana Haseen (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..eaf321712 --- /dev/null +++ b/index_and_follow/models/product_template.py @@ -0,0 +1,30 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Jumana Haseen (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) diff --git a/index_and_follow/static/description/assets/icons/capture (1).png b/index_and_follow/static/description/assets/icons/capture (1).png new file mode 100644 index 000000000..8824deafc Binary files /dev/null and b/index_and_follow/static/description/assets/icons/capture (1).png differ 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/img.png b/index_and_follow/static/description/assets/icons/img.png new file mode 100644 index 000000000..70197f477 Binary files /dev/null and b/index_and_follow/static/description/assets/icons/img.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/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/photo-capture.png b/index_and_follow/static/description/assets/icons/photo-capture.png new file mode 100644 index 000000000..06c111758 Binary files /dev/null and b/index_and_follow/static/description/assets/icons/photo-capture.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/Cybrosys R.png b/index_and_follow/static/description/assets/misc/Cybrosys R.png new file mode 100644 index 000000000..da4058087 Binary files /dev/null and b/index_and_follow/static/description/assets/misc/Cybrosys R.png differ diff --git a/index_and_follow/static/description/assets/misc/email.svg b/index_and_follow/static/description/assets/misc/email.svg new file mode 100644 index 000000000..15291cdc3 --- /dev/null +++ b/index_and_follow/static/description/assets/misc/email.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/index_and_follow/static/description/assets/misc/phone.svg b/index_and_follow/static/description/assets/misc/phone.svg new file mode 100644 index 000000000..b7bd7f251 --- /dev/null +++ b/index_and_follow/static/description/assets/misc/phone.svg @@ -0,0 +1,3 @@ + + + diff --git a/index_and_follow/static/description/assets/misc/star (1) 2.svg b/index_and_follow/static/description/assets/misc/star (1) 2.svg new file mode 100644 index 000000000..5ae9f507a --- /dev/null +++ b/index_and_follow/static/description/assets/misc/star (1) 2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/index_and_follow/static/description/assets/misc/support (1) 1.svg b/index_and_follow/static/description/assets/misc/support (1) 1.svg new file mode 100644 index 000000000..7d37a8f30 --- /dev/null +++ b/index_and_follow/static/description/assets/misc/support (1) 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/index_and_follow/static/description/assets/misc/support-email.svg b/index_and_follow/static/description/assets/misc/support-email.svg new file mode 100644 index 000000000..eb70370d6 --- /dev/null +++ b/index_and_follow/static/description/assets/misc/support-email.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/index_and_follow/static/description/assets/misc/tick-mark.svg b/index_and_follow/static/description/assets/misc/tick-mark.svg new file mode 100644 index 000000000..2dbb40187 --- /dev/null +++ b/index_and_follow/static/description/assets/misc/tick-mark.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/index_and_follow/static/description/assets/misc/whatsapp 1.svg b/index_and_follow/static/description/assets/misc/whatsapp 1.svg new file mode 100644 index 000000000..0bfaf8fc6 --- /dev/null +++ b/index_and_follow/static/description/assets/misc/whatsapp 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/index_and_follow/static/description/assets/misc/whatsapp.svg b/index_and_follow/static/description/assets/misc/whatsapp.svg new file mode 100644 index 000000000..b618aea1d --- /dev/null +++ b/index_and_follow/static/description/assets/misc/whatsapp.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/index_and_follow/static/description/assets/modules/1.png b/index_and_follow/static/description/assets/modules/1.png new file mode 100644 index 000000000..252b87fe1 Binary files /dev/null and b/index_and_follow/static/description/assets/modules/1.png differ diff --git a/index_and_follow/static/description/assets/modules/2.png b/index_and_follow/static/description/assets/modules/2.png new file mode 100644 index 000000000..7a5f7fe4d Binary files /dev/null and b/index_and_follow/static/description/assets/modules/2.png differ diff --git a/index_and_follow/static/description/assets/modules/3.png b/index_and_follow/static/description/assets/modules/3.png new file mode 100644 index 000000000..39c0bbfdf Binary files /dev/null and b/index_and_follow/static/description/assets/modules/3.png differ diff --git a/index_and_follow/static/description/assets/modules/4.png b/index_and_follow/static/description/assets/modules/4.png new file mode 100644 index 000000000..5e4e52652 Binary files /dev/null and b/index_and_follow/static/description/assets/modules/4.png differ diff --git a/index_and_follow/static/description/assets/modules/5.png b/index_and_follow/static/description/assets/modules/5.png new file mode 100644 index 000000000..d86d01437 Binary files /dev/null and b/index_and_follow/static/description/assets/modules/5.png differ diff --git a/index_and_follow/static/description/assets/modules/6.png b/index_and_follow/static/description/assets/modules/6.png new file mode 100644 index 000000000..872241201 Binary files /dev/null and b/index_and_follow/static/description/assets/modules/6.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..dc0f1093f 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..2c1215874 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..7de9efec7 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..5e169b88c 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..9f5d2e1e6 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..f2d1b6ae3 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..5a6171ac0 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..99a43a948 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.jpg b/index_and_follow/static/description/banner.jpg new file mode 100644 index 000000000..c6cb937bd Binary files /dev/null and b/index_and_follow/static/description/banner.jpg 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..c81adb6e2 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..39218cda6 --- /dev/null +++ b/index_and_follow/static/description/index.html @@ -0,0 +1,734 @@ + + + + + + Odoo App 3 Index + + + + + + + + +
+
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+
+
+
+

+ Website Index and Follow

+

+ This systems specify how the product-level settings can be used + to adjust how Google presents your content in search results +

+
+ +
+
+
+
+
+

+ Key Highlights +

+
+
+
+
+
+ +
+
+

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

+
+
+
+
+
+
+ +
+
+

+ Used to + maintain the Google search results..

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

+ 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.

+
+
+
+
+
+
+
    +
  • + Available in Odoo 17.0 Community and Enterprise. +
  • +
  • + Website Index and Follow +
      +
    • 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. +
    • +
    +
  • +
+
+
+
+
+
+
Version + 17.0.1.0.0|Released on:17th January 2024 +
+

+ Initial Commit for Website Index and Follow +

+
+
+
+
+
+
+
+

+ Related Products

+
+
+ +
+
+

+ Our Services

+
+
+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Customization

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Implementation

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Support

+
+
+
+
+
+
+ service-icon +
+
+

Hire + Odoo Developer

+
+
+
+
+ +
+
+ service-icon +
+
+

Odoo + Integration

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Migration

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Consultancy

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Implementation

+
+
+
+
+
+
+ service-icon +
+
+

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 + 99456767686 +
+
+
+
+
+
+
+
+
+ + + + + + diff --git a/index_and_follow/static/src/js/index_and_follow.js b/index_and_follow/static/src/js/index_and_follow.js new file mode 100644 index 000000000..9a7253f2b --- /dev/null +++ b/index_and_follow/static/src/js/index_and_follow.js @@ -0,0 +1,37 @@ +/** @odoo-module */ +import publicWidget from '@web/legacy/js/public/public_widget'; +import { jsonrpc } from "@web/core/network/rpc_service"; + publicWidget.registry.IndexAndFollow = publicWidget.Widget.extend({ + selector: '#product_detail_main', + events: { + 'change .is_index': '_setProductIndex', + }, + init() { + this._super(...arguments); + }, + async _setProductIndex(event){ +// //function to set product index + var product = this.el.querySelector('.product').value; + if (event.target.checked == true){ + console.log("event.target.checked",event.target.checked) +// check index input is checked, if input is checked, it sends an request +// to the server to set the product's indexing status to true.*/ + this.el.querySelector('.is_index').checked = true; + await jsonrpc('/web_index',{ + 'index': true, + 'product': product, + }).then(function(){ + location.reload(); + }); + } + else{ +// input is unchecked, it sends an request to set the status to false. + await jsonrpc('/web_index',{ + 'index': false, + 'product': product, + }).then(function(){ + location.reload(); + }); + } + }, + }); diff --git a/index_and_follow/views/portal_views.xml b/index_and_follow/views/portal_views.xml new file mode 100644 index 000000000..6846abf39 --- /dev/null +++ b/index_and_follow/views/portal_views.xml @@ -0,0 +1,10 @@ + + + + + diff --git a/index_and_follow/views/website_sale_views.xml b/index_and_follow/views/website_sale_views.xml new file mode 100644 index 000000000..80cd9aec0 --- /dev/null +++ b/index_and_follow/views/website_sale_views.xml @@ -0,0 +1,14 @@ + + + + + +