diff --git a/custom_robots_txt/README.rst b/custom_robots_txt/README.rst new file mode 100755 index 000000000..3ecb3be47 --- /dev/null +++ b/custom_robots_txt/README.rst @@ -0,0 +1,37 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: http://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 `__ + +Credits +------- +Developer: Renu M @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..0f09aeb9b --- /dev/null +++ b/custom_robots_txt/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Renu M (odoo@cybrosys.com) +# +# 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 wizards diff --git a/custom_robots_txt/__manifest__.py b/custom_robots_txt/__manifest__.py new file mode 100644 index 000000000..c370aea2f --- /dev/null +++ b/custom_robots_txt/__manifest__.py @@ -0,0 +1,41 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Renu M (odoo@cybrosys.com) +# +# 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': '16.0.1.0.0', + 'summary': 'Custom website Robots.txt file for odoo 16', + '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', + 'category': 'Tools', + 'website': 'https://www.cybrosys.com', + 'depends': ['website'], + 'data': [ + 'wizards/website_robots_view.xml', + ], + 'image': ['static/description/banner.png'], + 'installable': True, + 'auto_install': False, + 'application': False, + 'license': 'AGPL-3', +} diff --git a/custom_robots_txt/doc/RELEASE_NOTES.md b/custom_robots_txt/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..c5525631f --- /dev/null +++ b/custom_robots_txt/doc/RELEASE_NOTES.md @@ -0,0 +1,7 @@ +## Module + +#### 20.02.2023 +#### Version 16.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..fec9ab3cc --- /dev/null +++ b/custom_robots_txt/models/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Renu M (odoo@cybrosys.com) +# +# 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..c2b478fa1 --- /dev/null +++ b/custom_robots_txt/models/website.py @@ -0,0 +1,33 @@ +"""Module that inherit the website to add a field called mode to make custom + robots.txt file""" +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Renu M (odoo@cybrosys.com) +# +# 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/cybro-icon.png b/custom_robots_txt/static/description/assets/cybro-icon.png new file mode 100644 index 000000000..06e73e11d Binary files /dev/null and b/custom_robots_txt/static/description/assets/cybro-icon.png differ diff --git a/custom_robots_txt/static/description/assets/cybro-odoo.png b/custom_robots_txt/static/description/assets/cybro-odoo.png new file mode 100644 index 000000000..ed02e07a4 Binary files /dev/null and b/custom_robots_txt/static/description/assets/cybro-odoo.png differ diff --git a/custom_robots_txt/static/description/assets/h2.png b/custom_robots_txt/static/description/assets/h2.png new file mode 100644 index 000000000..0bfc4707d Binary files /dev/null and b/custom_robots_txt/static/description/assets/h2.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/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/test-1.png b/custom_robots_txt/static/description/assets/icons/test-1.png new file mode 100644 index 000000000..f6a902663 Binary files /dev/null and b/custom_robots_txt/static/description/assets/icons/test-1.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/screenshots/disallow.png b/custom_robots_txt/static/description/assets/screenshots/disallow.png new file mode 100644 index 000000000..8ffc1bad9 Binary files /dev/null and b/custom_robots_txt/static/description/assets/screenshots/disallow.png differ diff --git a/custom_robots_txt/static/description/assets/screenshots/responsive.jpg b/custom_robots_txt/static/description/assets/screenshots/responsive.jpg new file mode 100644 index 000000000..cdce361da Binary files /dev/null and b/custom_robots_txt/static/description/assets/screenshots/responsive.jpg differ diff --git a/custom_robots_txt/static/description/assets/screenshots/responsive.png b/custom_robots_txt/static/description/assets/screenshots/responsive.png new file mode 100644 index 000000000..c070e41d0 Binary files /dev/null and b/custom_robots_txt/static/description/assets/screenshots/responsive.png 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..5fd42ca32 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/robot_allow.png b/custom_robots_txt/static/description/assets/screenshots/robot_allow.png new file mode 100644 index 000000000..2f73cd325 Binary files /dev/null and b/custom_robots_txt/static/description/assets/screenshots/robot_allow.png differ diff --git a/custom_robots_txt/static/description/assets/y18.jpg b/custom_robots_txt/static/description/assets/y18.jpg new file mode 100644 index 000000000..eea1714f2 Binary files /dev/null and b/custom_robots_txt/static/description/assets/y18.jpg 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..d06ccc714 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..1eb8730b5 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..d915065d3 --- /dev/null +++ b/custom_robots_txt/static/description/index.html @@ -0,0 +1,556 @@ + +
+
+
+

+ Website Robots.Txt +

+

+ We can easily Custom our website robots.txt file

+
+ + + +
+

+ 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 noindex or password-protect the page. +

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

Demo Video

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

Detailed Video Playlist

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

+ KEY Highlights +

+ + +
+
+
+
+ +
+
+

Custom Robots.txt

+

User can custom robots.txt file as per the users wish

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

+ Video Demo +

+ + + + +
+ +
+
+
+

Apps Name

+

In the Gantt view, similar records will be grouped together having a link to the parent record. There are five types of views available. They are 'Quarter Day',

+
+
+

QUICK DEMO HERE

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

+ Screenshots +

+ + + +

+ Custom Robots.txt file

+
+ +
+

Website--> settings -->SEO -->Edit Robots.txt file

+ +
+
+ +
+
+

Allow all

+
+
+ +
+
+

Disallow all

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

Related Modules

+

Explore our related modules

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

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? Get in touch. +

+
+
+
+
+
+ +
+
+

Need Help?

+

Got questions or need help? Get in touch.

+ +

+ odoo@cybrosys.com

+
+
+
+
+
+
+
+ +
+
+

WhatsApp

+

Say hi to us on WhatsApp!

+ +

+91 + 86068 + 27707

+
+
+
+
+
+ +
+ +
+
+ +
+ +
+ +
+
+ + diff --git a/custom_robots_txt/wizards/__init__.py b/custom_robots_txt/wizards/__init__.py new file mode 100644 index 000000000..dab09cdd2 --- /dev/null +++ b/custom_robots_txt/wizards/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Renu M (odoo@cybrosys.com) +# +# 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/wizards/website_robots.py b/custom_robots_txt/wizards/website_robots.py new file mode 100644 index 000000000..8f1848699 --- /dev/null +++ b/custom_robots_txt/wizards/website_robots.py @@ -0,0 +1,57 @@ +"""Module that allows to custom robots.txt """ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Renu M (odoo@cybrosys.com) +# +# 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, api + + +class Robots(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(Robots, 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/wizards/website_robots_view.xml b/custom_robots_txt/wizards/website_robots_view.xml new file mode 100644 index 000000000..26d026dd9 --- /dev/null +++ b/custom_robots_txt/wizards/website_robots_view.xml @@ -0,0 +1,20 @@ + + + + Edit Robots.txt + website.robots + + + + + +