diff --git a/custom_robots_txt/README.rst b/custom_robots_txt/README.rst new file mode 100755 index 000000000..61d8dfd99 --- /dev/null +++ b/custom_robots_txt/README.rst @@ -0,0 +1,44 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: https://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +Website Robots.Txt +================== +This module allow to control robot.txt file. + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +------- +Affero General Public License v3.0 (AGPL v3) +(https://www.gnu.org/licenses/agpl-3.0-standalone.html) + +Credits +------- +Developer: (V16) Renu M @cybrosys, + (V15) Busthana Shirin @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: ``__ diff --git a/custom_robots_txt/__init__.py b/custom_robots_txt/__init__.py new file mode 100644 index 000000000..6239b8fbf --- /dev/null +++ b/custom_robots_txt/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Cybrosys Techno Solutions() +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +################################################################################ +from . import models +from . import wizard diff --git a/custom_robots_txt/__manifest__.py b/custom_robots_txt/__manifest__.py new file mode 100644 index 000000000..bceb7d7ce --- /dev/null +++ b/custom_robots_txt/__manifest__.py @@ -0,0 +1,41 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Cybrosys Techno Solutions() +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +################################################################################ +{ + 'name': 'Website Robots.Txt', + 'version': '15.0.1.0.0', + 'category': 'Tools', + 'summary': 'Custom Website Robots.txt File for Odoo 15', + 'description': """The module helps you to custom robots.txt file as per needs.""", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'depends': ['website'], + 'data': [ + 'wizard/website_robots_views.xml', + ], + 'images': ['static/description/banner.png'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/custom_robots_txt/doc/RELEASE_NOTES.md b/custom_robots_txt/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..97cdac644 --- /dev/null +++ b/custom_robots_txt/doc/RELEASE_NOTES.md @@ -0,0 +1,7 @@ +## Module + +#### 25.10.2024 +#### Version 15.0.1.0.0 +#### ADD + +- Initial commit for Website Robots.Txt diff --git a/custom_robots_txt/models/__init__.py b/custom_robots_txt/models/__init__.py new file mode 100644 index 000000000..c0e8be129 --- /dev/null +++ b/custom_robots_txt/models/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Cybrosys Techno Solutions() +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +################################################################################ +from . import website diff --git a/custom_robots_txt/models/website.py b/custom_robots_txt/models/website.py new file mode 100644 index 000000000..524ee7645 --- /dev/null +++ b/custom_robots_txt/models/website.py @@ -0,0 +1,31 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Cybrosys Techno Solutions() +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +################################################################################ +from odoo import fields, models + + +class Website(models.Model): + """Module that allows to custom robots.txt """ + _inherit = "website" + + mode = fields.Selection([('custom', 'Custom'), ('allow_all', 'Allow All'), + ('disallow_all', 'Disallow All')], + help="Select mode of the robots.txt file that helps you in indexing") diff --git a/custom_robots_txt/static/description/assets/icons/check-box.png b/custom_robots_txt/static/description/assets/icons/check-box.png new file mode 100755 index 000000000..42caf24b9 Binary files /dev/null and b/custom_robots_txt/static/description/assets/icons/check-box.png differ diff --git a/custom_robots_txt/static/description/assets/icons/check.png b/custom_robots_txt/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/custom_robots_txt/static/description/assets/icons/check.png differ diff --git a/custom_robots_txt/static/description/assets/icons/chevron.png b/custom_robots_txt/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/custom_robots_txt/static/description/assets/icons/chevron.png differ diff --git a/custom_robots_txt/static/description/assets/icons/cogs.png b/custom_robots_txt/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/custom_robots_txt/static/description/assets/icons/cogs.png differ diff --git a/custom_robots_txt/static/description/assets/icons/consultation.png b/custom_robots_txt/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/custom_robots_txt/static/description/assets/icons/consultation.png differ diff --git a/custom_robots_txt/static/description/assets/icons/down.svg b/custom_robots_txt/static/description/assets/icons/down.svg new file mode 100644 index 000000000..f21c36271 --- /dev/null +++ b/custom_robots_txt/static/description/assets/icons/down.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/custom_robots_txt/static/description/assets/icons/ecom-black.png b/custom_robots_txt/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/custom_robots_txt/static/description/assets/icons/ecom-black.png differ diff --git a/custom_robots_txt/static/description/assets/icons/education-black.png b/custom_robots_txt/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/custom_robots_txt/static/description/assets/icons/education-black.png differ diff --git a/custom_robots_txt/static/description/assets/icons/hotel-black.png b/custom_robots_txt/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/custom_robots_txt/static/description/assets/icons/hotel-black.png differ diff --git a/custom_robots_txt/static/description/assets/icons/license.png b/custom_robots_txt/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/custom_robots_txt/static/description/assets/icons/license.png differ diff --git a/custom_robots_txt/static/description/assets/icons/lifebuoy.png b/custom_robots_txt/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/custom_robots_txt/static/description/assets/icons/lifebuoy.png differ diff --git a/custom_robots_txt/static/description/assets/icons/logo.png b/custom_robots_txt/static/description/assets/icons/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/custom_robots_txt/static/description/assets/icons/logo.png differ diff --git a/custom_robots_txt/static/description/assets/icons/manufacturing-black.png b/custom_robots_txt/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/custom_robots_txt/static/description/assets/icons/manufacturing-black.png differ diff --git a/custom_robots_txt/static/description/assets/icons/pos-black.png b/custom_robots_txt/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/custom_robots_txt/static/description/assets/icons/pos-black.png differ diff --git a/custom_robots_txt/static/description/assets/icons/puzzle.png b/custom_robots_txt/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/custom_robots_txt/static/description/assets/icons/puzzle.png differ diff --git a/custom_robots_txt/static/description/assets/icons/restaurant-black.png b/custom_robots_txt/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/custom_robots_txt/static/description/assets/icons/restaurant-black.png differ diff --git a/custom_robots_txt/static/description/assets/icons/service-black.png b/custom_robots_txt/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/custom_robots_txt/static/description/assets/icons/service-black.png differ diff --git a/custom_robots_txt/static/description/assets/icons/support.png b/custom_robots_txt/static/description/assets/icons/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/custom_robots_txt/static/description/assets/icons/support.png differ diff --git a/custom_robots_txt/static/description/assets/icons/trading-black.png b/custom_robots_txt/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/custom_robots_txt/static/description/assets/icons/trading-black.png differ diff --git a/custom_robots_txt/static/description/assets/icons/training.png b/custom_robots_txt/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/custom_robots_txt/static/description/assets/icons/training.png differ diff --git a/custom_robots_txt/static/description/assets/icons/update.png b/custom_robots_txt/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/custom_robots_txt/static/description/assets/icons/update.png differ diff --git a/custom_robots_txt/static/description/assets/icons/user.png b/custom_robots_txt/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/custom_robots_txt/static/description/assets/icons/user.png differ diff --git a/custom_robots_txt/static/description/assets/icons/whatsapp.png b/custom_robots_txt/static/description/assets/icons/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/custom_robots_txt/static/description/assets/icons/whatsapp.png differ diff --git a/custom_robots_txt/static/description/assets/icons/wrench.png b/custom_robots_txt/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/custom_robots_txt/static/description/assets/icons/wrench.png differ diff --git a/custom_robots_txt/static/description/assets/misc/Cybrosys R.png b/custom_robots_txt/static/description/assets/misc/Cybrosys R.png new file mode 100644 index 000000000..da4058087 Binary files /dev/null and b/custom_robots_txt/static/description/assets/misc/Cybrosys R.png differ diff --git a/custom_robots_txt/static/description/assets/misc/email.svg b/custom_robots_txt/static/description/assets/misc/email.svg new file mode 100644 index 000000000..15291cdc3 --- /dev/null +++ b/custom_robots_txt/static/description/assets/misc/email.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/custom_robots_txt/static/description/assets/misc/phone.svg b/custom_robots_txt/static/description/assets/misc/phone.svg new file mode 100644 index 000000000..b7bd7f251 --- /dev/null +++ b/custom_robots_txt/static/description/assets/misc/phone.svg @@ -0,0 +1,3 @@ + + + diff --git a/custom_robots_txt/static/description/assets/misc/star (1) 2.svg b/custom_robots_txt/static/description/assets/misc/star (1) 2.svg new file mode 100644 index 000000000..5ae9f507a --- /dev/null +++ b/custom_robots_txt/static/description/assets/misc/star (1) 2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/custom_robots_txt/static/description/assets/misc/support (1) 1.svg b/custom_robots_txt/static/description/assets/misc/support (1) 1.svg new file mode 100644 index 000000000..7d37a8f30 --- /dev/null +++ b/custom_robots_txt/static/description/assets/misc/support (1) 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/custom_robots_txt/static/description/assets/misc/support-email.svg b/custom_robots_txt/static/description/assets/misc/support-email.svg new file mode 100644 index 000000000..eb70370d6 --- /dev/null +++ b/custom_robots_txt/static/description/assets/misc/support-email.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/custom_robots_txt/static/description/assets/misc/tick-mark.svg b/custom_robots_txt/static/description/assets/misc/tick-mark.svg new file mode 100644 index 000000000..2dbb40187 --- /dev/null +++ b/custom_robots_txt/static/description/assets/misc/tick-mark.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/custom_robots_txt/static/description/assets/misc/whatsapp 1.svg b/custom_robots_txt/static/description/assets/misc/whatsapp 1.svg new file mode 100644 index 000000000..0bfaf8fc6 --- /dev/null +++ b/custom_robots_txt/static/description/assets/misc/whatsapp 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/custom_robots_txt/static/description/assets/misc/whatsapp.svg b/custom_robots_txt/static/description/assets/misc/whatsapp.svg new file mode 100644 index 000000000..b618aea1d --- /dev/null +++ b/custom_robots_txt/static/description/assets/misc/whatsapp.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/custom_robots_txt/static/description/assets/modules/automatic_image.png b/custom_robots_txt/static/description/assets/modules/automatic_image.png new file mode 100644 index 000000000..a49c2a820 Binary files /dev/null and b/custom_robots_txt/static/description/assets/modules/automatic_image.png differ diff --git a/custom_robots_txt/static/description/assets/modules/budget_image.png b/custom_robots_txt/static/description/assets/modules/budget_image.png new file mode 100644 index 000000000..b50130c7d Binary files /dev/null and b/custom_robots_txt/static/description/assets/modules/budget_image.png differ diff --git a/custom_robots_txt/static/description/assets/modules/crm_dashboard_image.png b/custom_robots_txt/static/description/assets/modules/crm_dashboard_image.png new file mode 100644 index 000000000..6547c3081 Binary files /dev/null and b/custom_robots_txt/static/description/assets/modules/crm_dashboard_image.png differ diff --git a/custom_robots_txt/static/description/assets/modules/crm_image.png b/custom_robots_txt/static/description/assets/modules/crm_image.png new file mode 100644 index 000000000..8793336c0 Binary files /dev/null and b/custom_robots_txt/static/description/assets/modules/crm_image.png differ diff --git a/custom_robots_txt/static/description/assets/modules/crm_kit_image.png b/custom_robots_txt/static/description/assets/modules/crm_kit_image.png new file mode 100644 index 000000000..0bbad468d Binary files /dev/null and b/custom_robots_txt/static/description/assets/modules/crm_kit_image.png differ diff --git a/custom_robots_txt/static/description/assets/modules/employee_image.png b/custom_robots_txt/static/description/assets/modules/employee_image.png new file mode 100644 index 000000000..30ad58232 Binary files /dev/null and b/custom_robots_txt/static/description/assets/modules/employee_image.png differ diff --git a/custom_robots_txt/static/description/assets/modules/ip_image.png b/custom_robots_txt/static/description/assets/modules/ip_image.png new file mode 100644 index 000000000..707e2b7ed Binary files /dev/null and b/custom_robots_txt/static/description/assets/modules/ip_image.png differ diff --git a/custom_robots_txt/static/description/assets/modules/payable_image.png b/custom_robots_txt/static/description/assets/modules/payable_image.png new file mode 100644 index 000000000..fd1059dec Binary files /dev/null and b/custom_robots_txt/static/description/assets/modules/payable_image.png differ diff --git a/custom_robots_txt/static/description/assets/modules/product_custom_image.png b/custom_robots_txt/static/description/assets/modules/product_custom_image.png new file mode 100644 index 000000000..9c34fd89f Binary files /dev/null and b/custom_robots_txt/static/description/assets/modules/product_custom_image.png differ diff --git a/custom_robots_txt/static/description/assets/modules/salesperson_image.png b/custom_robots_txt/static/description/assets/modules/salesperson_image.png new file mode 100644 index 000000000..958ed2bf4 Binary files /dev/null and b/custom_robots_txt/static/description/assets/modules/salesperson_image.png differ diff --git a/custom_robots_txt/static/description/assets/modules/task_deadline_image.png b/custom_robots_txt/static/description/assets/modules/task_deadline_image.png new file mode 100644 index 000000000..c128be58a Binary files /dev/null and b/custom_robots_txt/static/description/assets/modules/task_deadline_image.png differ diff --git a/custom_robots_txt/static/description/assets/screenshots/hero.gif b/custom_robots_txt/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..450f28073 Binary files /dev/null and b/custom_robots_txt/static/description/assets/screenshots/hero.gif differ diff --git a/custom_robots_txt/static/description/assets/screenshots/robot1.png b/custom_robots_txt/static/description/assets/screenshots/robot1.png new file mode 100644 index 000000000..d021be8c9 Binary files /dev/null and b/custom_robots_txt/static/description/assets/screenshots/robot1.png differ diff --git a/custom_robots_txt/static/description/assets/screenshots/robot2.png b/custom_robots_txt/static/description/assets/screenshots/robot2.png new file mode 100644 index 000000000..d5bf69e40 Binary files /dev/null and b/custom_robots_txt/static/description/assets/screenshots/robot2.png differ diff --git a/custom_robots_txt/static/description/assets/screenshots/robot3.png b/custom_robots_txt/static/description/assets/screenshots/robot3.png new file mode 100644 index 000000000..4622474ea Binary files /dev/null and b/custom_robots_txt/static/description/assets/screenshots/robot3.png differ diff --git a/custom_robots_txt/static/description/banner.png b/custom_robots_txt/static/description/banner.png new file mode 100644 index 000000000..c10604a79 Binary files /dev/null and b/custom_robots_txt/static/description/banner.png differ diff --git a/custom_robots_txt/static/description/icon.png b/custom_robots_txt/static/description/icon.png new file mode 100644 index 000000000..31e4d40fd Binary files /dev/null and b/custom_robots_txt/static/description/icon.png differ diff --git a/custom_robots_txt/static/description/index.html b/custom_robots_txt/static/description/index.html new file mode 100644 index 000000000..620bf018a --- /dev/null +++ b/custom_robots_txt/static/description/index.html @@ -0,0 +1,548 @@ +
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+ +
+
+
+
+ +
+
+
+

+ Website Robots.Txt

+

+ A Robots.txt File Tells Search Engine Crawlers which URLs The + Crawler can Access on Your Site. This is Used Mainly To Avoid + Overloading Your Site With Requests; It Is Not a Mechanism For + Keeping a Web Page Out of Google. To keep a Web Page Out of Google, + Block Indexing with no Index or Password-Protect the Page. +

+ +
+
+ + + + +
+
+

+ Overview +

+
+ +
+

+ Allow users to easily set the Robots.txt file according to the mode +

+ +
+
+ + +
+
+

+ Features +

+
+ +
+
+ +
+
+

+ Enterprise and Community compatible.

+
+
+
+ +
+
+

+ Can easily set the Robots.txt file according to the mode

+
+
+
+ +
+
+

+ Screenshots +

+
+
+

+ Custom Robots.txt file

+

Website --> Settings --> SEO --> Edit Robots.txt File +

+ +
+ +
+

+ Allow all

+ +
+ +
+

+ Disallow all

+ +
+ +
+ + +
+
+

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

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

Need Help?

+
+
+
+ + +
+ +
+ + +
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+
+
+ + +
\ No newline at end of file diff --git a/custom_robots_txt/wizard/__init__.py b/custom_robots_txt/wizard/__init__.py new file mode 100644 index 000000000..eab200b09 --- /dev/null +++ b/custom_robots_txt/wizard/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Cybrosys Techno Solutions() +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +################################################################################ +from . import website_robots diff --git a/custom_robots_txt/wizard/website_robots.py b/custom_robots_txt/wizard/website_robots.py new file mode 100644 index 000000000..467336b91 --- /dev/null +++ b/custom_robots_txt/wizard/website_robots.py @@ -0,0 +1,56 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Cybrosys Techno Solutions() +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +################################################################################ +from odoo import api, fields, models + + +class WebsiteRobots(models.TransientModel): + """Module that allows to custom robots.txt """ + _inherit = "website.robots" + + mode = fields.Selection([('custom', 'Custom'), ('allow_all', 'Allow All'), + ('disallow_all', 'Disallow All')], + default=lambda s: s.env[ + 'website'].get_current_website().mode, + help="Select mode of the robots.txt file that helps you in indexing") + + @api.onchange('mode') + def _onchange_mode(self): + """Adding data according to the change of mode""" + if not self.env['website'].get_current_website().robots_txt: + if self.mode == 'custom': + self.content = " " + else: + self.content = self.env[ + 'website'].get_current_website().robots_txt + if self.mode == 'allow_all': + self.content = """User-agent: * + Allow: /""" + if self.mode == 'disallow_all': + self.content = """User-agent: * + Disallow: /""" + + def action_save(self): + """Supering the action save""" + res = super(WebsiteRobots, self).action_save() + self.env['website'].get_current_website().mode = self.mode + self.env['website'].get_current_website().robots_txt = self.content + return res diff --git a/custom_robots_txt/wizard/website_robots_views.xml b/custom_robots_txt/wizard/website_robots_views.xml new file mode 100644 index 000000000..654448ee1 --- /dev/null +++ b/custom_robots_txt/wizard/website_robots_views.xml @@ -0,0 +1,27 @@ + + + + website.robots.view.form.inherit.custom.robots.txt + website.robots + + + +
+
+
+
+ +
+
+
+ + + How to create robots.txt + + +
+
+
+