Browse Source

Apr 14 : [UPDT] Updated Module 'custom_robots_txt'

dependabot/npm_and_yarn/odoo_website_helpdesk/static/src/cdn/minimist-1.2.8
Sayooj 2 years ago
parent
commit
5c47335992
  1. 37
      custom_robots_txt/README.rst
  2. 23
      custom_robots_txt/__init__.py
  3. 41
      custom_robots_txt/__manifest__.py
  4. 7
      custom_robots_txt/doc/RELEASE_NOTES.md
  5. 22
      custom_robots_txt/models/__init__.py
  6. 33
      custom_robots_txt/models/website.py
  7. BIN
      custom_robots_txt/static/description/assets/cybro-icon.png
  8. BIN
      custom_robots_txt/static/description/assets/cybro-odoo.png
  9. BIN
      custom_robots_txt/static/description/assets/h2.png
  10. BIN
      custom_robots_txt/static/description/assets/icons/check.png
  11. BIN
      custom_robots_txt/static/description/assets/icons/chevron.png
  12. BIN
      custom_robots_txt/static/description/assets/icons/cogs.png
  13. BIN
      custom_robots_txt/static/description/assets/icons/consultation.png
  14. 1
      custom_robots_txt/static/description/assets/icons/down.svg
  15. BIN
      custom_robots_txt/static/description/assets/icons/ecom-black.png
  16. BIN
      custom_robots_txt/static/description/assets/icons/education-black.png
  17. BIN
      custom_robots_txt/static/description/assets/icons/hotel-black.png
  18. BIN
      custom_robots_txt/static/description/assets/icons/license.png
  19. BIN
      custom_robots_txt/static/description/assets/icons/lifebuoy.png
  20. BIN
      custom_robots_txt/static/description/assets/icons/manufacturing-black.png
  21. BIN
      custom_robots_txt/static/description/assets/icons/pos-black.png
  22. BIN
      custom_robots_txt/static/description/assets/icons/puzzle.png
  23. BIN
      custom_robots_txt/static/description/assets/icons/restaurant-black.png
  24. BIN
      custom_robots_txt/static/description/assets/icons/service-black.png
  25. BIN
      custom_robots_txt/static/description/assets/icons/support.png
  26. BIN
      custom_robots_txt/static/description/assets/icons/test-1.png
  27. BIN
      custom_robots_txt/static/description/assets/icons/trading-black.png
  28. BIN
      custom_robots_txt/static/description/assets/icons/training.png
  29. BIN
      custom_robots_txt/static/description/assets/icons/update.png
  30. BIN
      custom_robots_txt/static/description/assets/icons/user.png
  31. BIN
      custom_robots_txt/static/description/assets/icons/whatsapp.png
  32. BIN
      custom_robots_txt/static/description/assets/icons/wrench.png
  33. BIN
      custom_robots_txt/static/description/assets/screenshots/disallow.png
  34. BIN
      custom_robots_txt/static/description/assets/screenshots/responsive.jpg
  35. BIN
      custom_robots_txt/static/description/assets/screenshots/responsive.png
  36. BIN
      custom_robots_txt/static/description/assets/screenshots/robot1.png
  37. BIN
      custom_robots_txt/static/description/assets/screenshots/robot_allow.png
  38. BIN
      custom_robots_txt/static/description/assets/y18.jpg
  39. BIN
      custom_robots_txt/static/description/banner.png
  40. BIN
      custom_robots_txt/static/description/icon.png
  41. 556
      custom_robots_txt/static/description/index.html
  42. 22
      custom_robots_txt/wizards/__init__.py
  43. 57
      custom_robots_txt/wizards/website_robots.py
  44. 20
      custom_robots_txt/wizards/website_robots_view.xml

37
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 <https://cybrosys.com/>`__
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 <https://cybrosys.com/>`__
Further information
===================
HTML Description: `<static/description/index.html>`__

23
custom_robots_txt/__init__.py

@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# 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 <http://www.gnu.org/licenses/>.
#
################################################################################
from . import models
from . import wizards

41
custom_robots_txt/__manifest__.py

@ -0,0 +1,41 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# 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 <http://www.gnu.org/licenses/>.
#
################################################################################
{
'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',
}

7
custom_robots_txt/doc/RELEASE_NOTES.md

@ -0,0 +1,7 @@
## Module <custom_robots_txt>
#### 20.02.2023
#### Version 16.0.1.0.0
#### ADD
- Initial commit for Website Robots.Txt

22
custom_robots_txt/models/__init__.py

@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# 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 <http://www.gnu.org/licenses/>.
#
################################################################################
from . import website

33
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(<https://www.cybrosys.com>).
# 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 <http://www.gnu.org/licenses/>.
#
################################################################################
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")

BIN
custom_robots_txt/static/description/assets/cybro-icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

BIN
custom_robots_txt/static/description/assets/cybro-odoo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

BIN
custom_robots_txt/static/description/assets/h2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 628 KiB

BIN
custom_robots_txt/static/description/assets/icons/check.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

BIN
custom_robots_txt/static/description/assets/icons/chevron.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 B

BIN
custom_robots_txt/static/description/assets/icons/cogs.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
custom_robots_txt/static/description/assets/icons/consultation.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

1
custom_robots_txt/static/description/assets/icons/down.svg

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.com/svgjs" width="512" height="512" x="0" y="0" viewBox="0 0 24 24" style="enable-background:new 0 0 512 512" xml:space="preserve" class=""><g><g id="Layer_2" data-name="Layer 2"><path d="m12 1a11 11 0 1 0 11 11 11.013 11.013 0 0 0 -11-11zm5.707 9.707-5 5a1 1 0 0 1 -1.414 0l-5-5a1 1 0 0 1 1.414-1.414l4.293 4.293 4.293-4.293a1 1 0 0 1 1.414 1.414z" fill="#781d96" data-original="#000000" class=""></path></g></g></svg>

After

Width:  |  Height:  |  Size: 542 B

BIN
custom_robots_txt/static/description/assets/icons/ecom-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 576 B

BIN
custom_robots_txt/static/description/assets/icons/education-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 733 B

BIN
custom_robots_txt/static/description/assets/icons/hotel-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 911 B

BIN
custom_robots_txt/static/description/assets/icons/license.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
custom_robots_txt/static/description/assets/icons/lifebuoy.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
custom_robots_txt/static/description/assets/icons/manufacturing-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 673 B

BIN
custom_robots_txt/static/description/assets/icons/pos-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 878 B

BIN
custom_robots_txt/static/description/assets/icons/puzzle.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 653 B

BIN
custom_robots_txt/static/description/assets/icons/restaurant-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 905 B

BIN
custom_robots_txt/static/description/assets/icons/service-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 839 B

BIN
custom_robots_txt/static/description/assets/icons/support.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

BIN
custom_robots_txt/static/description/assets/icons/test-1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

BIN
custom_robots_txt/static/description/assets/icons/trading-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 427 B

BIN
custom_robots_txt/static/description/assets/icons/training.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 627 B

BIN
custom_robots_txt/static/description/assets/icons/update.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
custom_robots_txt/static/description/assets/icons/user.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 988 B

BIN
custom_robots_txt/static/description/assets/icons/whatsapp.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

BIN
custom_robots_txt/static/description/assets/icons/wrench.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
custom_robots_txt/static/description/assets/screenshots/disallow.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 187 KiB

BIN
custom_robots_txt/static/description/assets/screenshots/responsive.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 203 KiB

BIN
custom_robots_txt/static/description/assets/screenshots/responsive.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 562 KiB

BIN
custom_robots_txt/static/description/assets/screenshots/robot1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 191 KiB

BIN
custom_robots_txt/static/description/assets/screenshots/robot_allow.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 195 KiB

BIN
custom_robots_txt/static/description/assets/y18.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 880 KiB

BIN
custom_robots_txt/static/description/banner.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

BIN
custom_robots_txt/static/description/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

556
custom_robots_txt/static/description/index.html

@ -0,0 +1,556 @@
<!-- HERO -->
<div class="container shadow style="margin-left:calc(-42vw + 50%); width:84vw"">
<div class="row"
style="padding: 4rem 2.5rem 0 !important; background-color: #fff !important;">
<div class="col-lg-12 d-flex flex-column align-items-center">
<h1 class="text-center text-uppercase"
style="font-family: Montserrat, 'sans-serif' !important; font-size: 67px !important; color: #791d97; font-weight: 900 !important;">
<span style="color:#5154a5;">Website </span> Robots.Txt <sup>
</h1>
<p class="my-1 text-center text-uppercase"
style="letter-spacing: 4px !important; color: #74788D !important;">
We can easily Custom our website robots.txt file</p>
</div>
<div class="col-lg-12 d-flex flex-column justify-content-center">
<p class="my-1 text-center"
style="font-family: Montserrat, 'sans-serif' !important; color: #212121 !important;">
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.
</p>
</div>
<div class="col-lg-12 d-flex justify-content-center align-items-center"
style="margin: 2rem 0;">
<img src="./assets/cybro-odoo.png" width="100%" height="auto" style="width:50%;"
class="img-responsive">
</div>
<div class="col-md-12 text-center ">
<a href="mailto:odoo@cybrosys.com" target="_blank" style="background-color:#5154a5; border-radius:35px; font-family:Montserrat; display:inline-block; padding:7px 33px; border:1px solid #5154a5" class="mx-1 mb-2 deep-1 deep_hover">
<img class="img" style="width:30px" src="assets/icons/support.png">
<span class="pl-2" style="color:#fff; font-size:16px; vertical-align:middle">Email Us</span>
</a>
<a href="https://api.whatsapp.com/send?phone=918606827707" target="_blank" style="background-color:#7f289b; font-family:Montserrat; display:inline-block; padding:7px 33px; border:1px solid #7f289b; border-radius:35px" class="mx-1 mb-2 deep-1 deep_hover">
<img class="img" style="width:27px" src="assets/icons/whatsapp.png">
<span class="pl-2" style="color:#fff; font-size:16px; vertical-align:middle">What's App</span>
</a>
</div>
<div class="pb32 pt-3" style="display:block; margin:0 auto; text-align:center">
<div class="d-inline-block mx-3 my-3" style="max-width:348px">
<div class="s_panel_video" data-video-id="k6yh5ULy26U">
<h3 style="color:#091E42; font-family:Montserrat; font-weight:600; text-align:center; font-size:17px; opacity:1; margin:8px 0 16px" class="oe_slogan">Demo Video</h3>
<a class="s_figure_link d-inline-block p-0 position-absolute" href="#" style="height:7%; width:5.5%; margin-top:6.5%; margin-left:13.2%">
<img src="assets/cybro-icon.png" style="width:56px; margin:-17%; margin-left:-100%; display:inline-block" class="img img-fluid position-absolute">
</a>
<img src="assets/y18.jpg" style="border-radius:10px" class="img img-fluid shadow">
</div>
</div>
<div style="vertical-align:middle" class="d-inline-block mx-3 my-3">
<img class="img img-responsive" src="//apps.odoocdn.com/apps/assets/16.0/woo_commerce_ept/vertical_line.svg?4834775" style="margin:0 auto; display:block; width:1px; height:150px">
</div>
<div class="d-inline-block mx-3 my-3" style="max-width:348px">
<!-- <div class="s_panel_video" data-video-id="w17dnsMTt8M"> -->
<h3 style="color:#091E42; font-family:Montserrat; font-weight:600; text-align:center; font-size:17px; opacity:1; margin:8px 0 16px; text-transform:uppercase" class="oe_slogan">Detailed Video Playlist </h3>
<a class="s_figure_link d-inline-block p-0 position-absolute" target="_blank" href="https://www.youtube.com/watch?v=Lf_vaJkqTRY&list=PLeJtXzTubzj9lZDlweZA0ZhIkFcayrcjX" style="height:7%; width:5.5%; margin-top:6.5%; margin-left:13.2%">
<img src="assets/cybro-icon.png" style="width:56px; margin:-17%; margin-left:-100%; display:inline-block" class="img img-fluid position-absolute">
</a>
<img src="assets/y18.jpg" style="border-radius:10px" class="img img-fluid shadow">
<!-- </div> -->
</div>
</div>
</div>
</div>
<!-- END OF HERO -->
<!-- Start OF slide -->
<div class="col-lg-12 d-flex justify-content-center align-items-center" style="margin:2rem 0">
<img src="assets/h2.png" width="100%" height="auto" class="img-responsive">
</div>
<!-- END OF slide -->
<section class="oe_container pb-5">
<div class="mt64 mb64">
<h2 class="text-center text-uppercase"
style="font-family: Montserrat, 'sans-serif' !important; font-size: 50px !important; color: #791d97; font-weight: 900 !important;">
<span style="color:#5154a5;">KEY </span> <b>Highlights</b> <sup>
</h2>
<div class="row">
<div class="col-md-6 col-sm-12 mt32">
<div class="container shadow" style="border-radius: 5px;padding: 33px 0px;">
<div class="col-md-3" style="float:left">
<img class="img img-responsive" src="assets/icons/test-1.png">
</div>
<div class="col-md-9" style="padding-left:0; float:left; width:70%">
<h3 class="mt16 mb0" style="font-family:Roboto; font-weight:500; font-size:22px; color: #781d96;">Custom Robots.txt</h3>
<p class=" mt8" style="font-family:Roboto ; color: #280135;"> User can custom robots.txt file as per the users wish</p>
</div>
</div>
</div>
</div>
</div>
</section>
<!--Video Demo-->
<div class="container shadow style="margin-left:calc(-42vw + 50%); width:84vw"">
<div class="row"
style="padding: 4rem 2.5rem 0 !important; background-color: #fff !important;">
<div class="col-lg-12 d-flex flex-column align-items-center">
<h1 class="text-center text-uppercase"
style="font-family: Montserrat, 'sans-serif' !important; font-size: 40px !important; color: #791d97; font-weight: 900 !important;">
<span style="color:#5154a5;">Video Demo </span> <sup>
</h1>
</div>
<div class="tab-pane" id="video">
<section class="oe_container mt48">
<div style="margin-bottom:4%">
<h3 class="text-center mb32" style="letter-spacing:-1px !important; font-family:Roboto; font-weight:400">Apps Name</h3>
<p>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',</p>
<div class="mt16 mb16">
<div class="s_panel_video" data-video-id="k6yh5ULy26U">
<h3 style="color:#2e7dda; font-family:Montserrat; font-weight:600; text-align:center; font-size:17px; opacity:1; margin:8px 0 16px" class="oe_slogan"> QUICK DEMO HERE</h3>
<a class="s_figure_link d-inline-block p-0 position-absolute" href="#" style="height: 7%;width: 100%; margin-top: 3.5%;margin-left: 13.2%;">
<img src="assets/cybro-icon.png" style="width: 56px;margin: 25%; margin-left: -67%;" class="img img-fluid position-absolute">
</a>
<img src="assets/y18.jpg" style="border-radius:10px" class="img img-fluid shadow">
</div>
</div>
</div>
</section>
</div>
</div>
</div>
<!--Video Demo-->
<!--Screen Shorts-->
<div class="container shadow style="margin-left:calc(-42vw + 50%); width:84vw"">
<div class="row"
style="padding: 4rem 2.5rem 0 !important; background-color: #fff !important;">
<div class="col-lg-12 d-flex flex-column align-items-center">
<h1 class="text-center text-uppercase"
style="font-family: Montserrat, 'sans-serif' !important; font-size: 40px !important; color: #791d97; font-weight: 900 !important;">
<span style="color:#5154a5;">Screenshots </span> <sup>
</h1>
<p class="my-1 text-center text-uppercase"
style="letter-spacing: 4px !important; color: #74788D !important;">
Custom Robots.txt file</p>
</div>
<div class="col-lg-12 d-flex flex-column align-items-center">
<p class=" mt8" style="font-family:Roboto ; color:#280135"> Website--> settings -->SEO -->Edit Robots.txt file </p>
</div>
<div class="col-lg-12 d-flex justify-content-center align-items-center"
style="margin: 2rem 0;">
<img src="assets/screenshots/robot1.png" class="img img-responsive center-block">
</div>
<div class="col-lg-12 d-flex flex-column align-items-center">
<p class=" mt8" style="font-family:Roboto ; color:#280135"> Allow all </p>
</div>
<div class="col-lg-12 d-flex justify-content-center align-items-center"
style="margin: 2rem 0;">
<img src="assets/screenshots/robot_allow.png" class="img img-responsive center-block">
</div>
<div class="col-lg-12 d-flex flex-column align-items-center">
<p class=" mt8" style="font-family:Roboto ; color:#280135"> Disallow all </p>
</div>
<div class="col-lg-12 d-flex justify-content-center align-items-center"
style="margin: 2rem 0;">
<img src="assets/screenshots/disallow.png" class="img img-responsive center-block">
</div>
</div>
</div>
<!--Screen Shorts-->
<section>
<div class="row">
<div class="col-sm-12 col-md-12-col-lg-2">
<h2 style="font-weight:bold; color:#3D3D4E">Related Modules</h2>
<p style="color:#777783">Explore our related modules</p>
<hr>
</div>
<div class="col-sm-12">
<div id="demo1" class="row carousel slide" data-ride="carousel">
<!-- The slideshow -->
<div class="carousel-inner" style="padding:30px">
<div class="carousel-item" style="min-height:198.656px">
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/whatsapp_redirect/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-radius:0px" src="//apps.odoocdn.com/apps/assets/16.0/base_accounting_kit/assets/modules/1.png?6d5ca15">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/hr_payroll_community/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-radius:0px" src="//apps.odoocdn.com/apps/assets/16.0/base_accounting_kit/assets/modules/2.png?6d5ca15">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/crm_dashboard/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-radius:0px" src="//apps.odoocdn.com/apps/assets/16.0/base_accounting_kit/assets/modules/3.png?6d5ca15">
</div>
</a>
</div>
</div>
<div class="carousel-item active" style="min-height:198.656px">
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/export_stockinfo_xls/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-radius:0px" src="//apps.odoocdn.com/apps/assets/16.0/base_accounting_kit/assets/modules/4.png?6d5ca15">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/sale_discount_total/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-radius:0px" src="//apps.odoocdn.com/apps/assets/16.0/base_accounting_kit/assets/modules/5.png?6d5ca15">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/fleet_rental/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-radius:0px" src="//apps.odoocdn.com/apps/assets/16.0/base_accounting_kit/assets/modules/6.png?6d5ca15">
</div>
</a>
</div>
</div>
</div>
<!-- Left and right controls -->
<a class="carousel-control-prev" href="#demo1" data-slide="prev" style="width:35px; color:#000"> <span class="carousel-control-prev-icon"><i class="fa fa-chevron-left" style="font-size:24px"></i></span>
</a> <a class="carousel-control-next" href="#demo1" data-slide="next" style="width:35px; color:#000">
<span class="carousel-control-next-icon"><i class="fa fa-chevron-right" style="font-size:24px"></i></span>
</a>
</div>
</div>
</div>
</section>
<section>
<div class="d-flex align-items-center" style="border-bottom:2px solid #714B67; padding:15px 0px">
<div class="d-flex justify-content-center align-items-center mr-2" style="background-color:#F5F5F5; border-radius:0px; width:40px; height:40px">
<img src="//apps.odoocdn.com/apps/assets/16.0/export_stockinfo_xls/assets/misc/star.png?aedef96">
</div>
<h2 class="mt-2" style="font-family:'Montserrat', sans-serif; font-size:24px; font-weight:bold">Our Services
</h2>
</div>
<div class="container my-5">
<div class="row">
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3" style="background-color:#1dd1a1 !important; border-radius:15px !important; height:80px; width:80px">
<img src="//apps.odoocdn.com/apps/assets/16.0/export_stockinfo_xls/assets/icons/cogs.png?aedef96" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family:Montserrat, 'sans-serif' !important; font-weight:bold">
Odoo
Customization</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3" style="background-color:#ff6b6b !important; border-radius:15px !important; height:80px; width:80px">
<img src="//apps.odoocdn.com/apps/assets/16.0/export_stockinfo_xls/assets/icons/wrench.png?aedef96" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family:Montserrat, 'sans-serif' !important; font-weight:bold">
Odoo
Implementation</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3" style="background-color:#6462CD !important; border-radius:15px !important; height:80px; width:80px">
<img src="//apps.odoocdn.com/apps/assets/16.0/export_stockinfo_xls/assets/icons/lifebuoy.png?aedef96" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family:Montserrat, 'sans-serif' !important; font-weight:bold">
Odoo
Support</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3" style="background-color:#ffa801 !important; border-radius:15px !important; height:80px; width:80px">
<img src="//apps.odoocdn.com/apps/assets/16.0/export_stockinfo_xls/assets/icons/user.png?aedef96" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family:Montserrat, 'sans-serif' !important; font-weight:bold">
Hire
Odoo
Developer</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3" style="background-color:#54a0ff !important; border-radius:15px !important; height:80px; width:80px">
<img src="//apps.odoocdn.com/apps/assets/16.0/export_stockinfo_xls/assets/icons/puzzle.png?aedef96" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family:Montserrat, 'sans-serif' !important; font-weight:bold">
Odoo
Integration</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3" style="background-color:#6d7680 !important; border-radius:15px !important; height:80px; width:80px">
<img src="//apps.odoocdn.com/apps/assets/16.0/export_stockinfo_xls/assets/icons/update.png?aedef96" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family:Montserrat, 'sans-serif' !important; font-weight:bold">
Odoo
Migration</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3" style="background-color:#786fa6 !important; border-radius:15px !important; height:80px; width:80px">
<img src="//apps.odoocdn.com/apps/assets/16.0/export_stockinfo_xls/assets/icons/consultation.png?aedef96" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family:Montserrat, 'sans-serif' !important; font-weight:bold">
Odoo
Consultancy</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3" style="background-color:#f8a5c2 !important; border-radius:15px !important; height:80px; width:80px">
<img src="//apps.odoocdn.com/apps/assets/16.0/export_stockinfo_xls/assets/icons/training.png?aedef96" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family:Montserrat, 'sans-serif' !important; font-weight:bold">
Odoo
Implementation</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3" style="background-color:#e6be26 !important; border-radius:15px !important; height:80px; width:80px">
<img src="//apps.odoocdn.com/apps/assets/16.0/export_stockinfo_xls/assets/icons/license.png?aedef96" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family:Montserrat, 'sans-serif' !important; font-weight:bold">
Odoo
Licensing Consultancy</h6>
</div>
</div>
</div>
</section>
<section class="container" style="margin-top:6rem !important">
<div class="row">
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center">
<h2 style="color:#212529 !important">Our Industries</h2>
<hr style="border:3px solid #714B67 !important; background-color:#714B67 !important; width:80px !important; margin-bottom:2rem !important">
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center" style="background-color:#f6f8f9 !important; border-radius:10px; padding:2rem !important; height:250px !important">
<img src="//apps.odoocdn.com/apps/assets/15.0/combo_product_pos/assets/icons/trading-black.png?2d98612" class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family:Montserrat, sans-serif !important; color:#000 !important; font-weight:bold">
Trading
</h5>
<p style="font-family:Montserrat, sans-serif !important; font-size:0.9rem !important">
Easily procure
and
sell your products</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center" style="background-color:#f6f8f9 !important; border-radius:10px; padding:2rem !important; height:250px !important">
<img src="//apps.odoocdn.com/apps/assets/15.0/combo_product_pos/assets/icons/pos-black.png?2d98612" class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family:Montserrat, sans-serif !important; color:#000 !important; font-weight:bold">
POS
</h5>
<p style="font-family:Montserrat, sans-serif !important; font-size:0.9rem !important">
Easy
configuration
and convivial experience</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center" style="background-color:#f6f8f9 !important; border-radius:10px; padding:2rem !important; height:250px !important">
<img src="//apps.odoocdn.com/apps/assets/15.0/combo_product_pos/assets/icons/education-black.png?2d98612" class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family:Montserrat, sans-serif !important; color:#000 !important; font-weight:bold">
Education
</h5>
<p style="font-family:Montserrat, sans-serif !important; font-size:0.9rem !important">
A platform for
educational management</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center" style="background-color:#f6f8f9 !important; border-radius:10px; padding:2rem !important; height:250px !important">
<img src="//apps.odoocdn.com/apps/assets/15.0/combo_product_pos/assets/icons/manufacturing-black.png?2d98612" class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family:Montserrat, sans-serif !important; color:#000 !important; font-weight:bold">
Manufacturing
</h5>
<p style="font-family:Montserrat, sans-serif !important; font-size:0.9rem !important">
Plan, track and
schedule your operations</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center" style="background-color:#f6f8f9 !important; border-radius:10px; padding:2rem !important; height:250px !important">
<img src="//apps.odoocdn.com/apps/assets/15.0/combo_product_pos/assets/icons/ecom-black.png?2d98612" class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family:Montserrat, sans-serif !important; color:#000 !important; font-weight:bold">
E-commerce &amp; Website
</h5>
<p style="font-family:Montserrat, sans-serif !important; font-size:0.9rem !important">
Mobile
friendly,
awe-inspiring product pages</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center" style="background-color:#f6f8f9 !important; border-radius:10px; padding:2rem !important; height:250px !important">
<img src="//apps.odoocdn.com/apps/assets/15.0/combo_product_pos/assets/icons/service-black.png?2d98612" class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family:Montserrat, sans-serif !important; color:#000 !important; font-weight:bold">
Service Management
</h5>
<p style="font-family:Montserrat, sans-serif !important; font-size:0.9rem !important">
Keep track of
services and invoice</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center" style="background-color:#f6f8f9 !important; border-radius:10px; padding:2rem !important; height:250px !important">
<img src="//apps.odoocdn.com/apps/assets/15.0/combo_product_pos/assets/icons/restaurant-black.png?2d98612" class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family:Montserrat, sans-serif !important; color:#000 !important; font-weight:bold">
Restaurant
</h5>
<p style="font-family:Montserrat, sans-serif !important; font-size:0.9rem !important">
Run your bar or
restaurant methodically</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center" style="background-color:#f6f8f9 !important; border-radius:10px; padding:2rem !important; height:250px !important">
<img src="//apps.odoocdn.com/apps/assets/15.0/combo_product_pos/assets/icons/hotel-black.png?2d98612" class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family:Montserrat, sans-serif !important; color:#000 !important; font-weight:bold">
Hotel Management
</h5>
<p style="font-family:Montserrat, sans-serif !important; font-size:0.9rem !important">
An
all-inclusive
hotel management application</p>
</div>
</div>
</div>
</section>
<!-- FOOTER -->
<!-- Footer Section -->
<div class="container mt-5">
<div class="row">
<div class="col-sm-12 col-md-12-col-lg-2">
<h2 style="font-weight:bold; color:#3D3D4E">Support</h2>
<p style="color:#777783">Need help? Get in touch.
</p>
<hr>
</div>
<div class="col-sm-12 col-md-6">
<div class="d-flex align-items-center" style="background-color:#F6F8F9; padding:30px">
<div class="mr-4 d-flex justify-content-center align-items-center" style="background-color:#714B67; height:70px; width:70px">
<img src="assets/icons/support.png" height="48" width="48" style="width:42px; height:42px">
</div>
<div>
<h4>Need Help?</h4>
<p style="line-height:100%">Got questions or need help? Get in touch.</p>
<a href="mailto:odoo@cybrosys.com">
<p style="font-weight:400; font-size:28px; line-height:80%; color:#714B67">
odoo@cybrosys.com</p>
</a>
</div>
</div>
</div>
<div class="col-sm-12 col-md-6">
<div class="d-flex align-items-center" style="background-color:#F6F8F9; padding:30px">
<div class="mr-4 d-flex justify-content-center align-items-center" style="background-color:#2AC44D; height:70px; width:70px">
<img src="assets/icons/whatsapp.png" height="52" width="52" style="width:52px; height:52px">
</div>
<div>
<h4>WhatsApp</h4>
<p style="line-height:100%">Say hi to us on WhatsApp!</p>
<span href="https://api.whatsapp.com/send?phone=918606827707">
<p style="font-weight:400; font-size:28px; line-height:80%; color:#714B67">+91
86068
27707</p>
</span>
</div>
</div>
</div>
</div>
</div>
<!-- Footer -->
<section class="oe_container"
style="padding: 2rem 3rem 1rem; background-color: #fff !important;">
<div class="row"
style="max-width:1540px; margin: 0 auto; margin-right: 3rem; ">
<!-- Logo -->
<div class="col-lg-12 d-flex justify-content-center align-items-center"
style="margin-top: 3rem;">
<img src="https://www.cybrosys.com/images/logo.png"
width="200px" height="auto"/>
</div>
<!-- End of Logo -->
</div>
</section>
<!-- END OF FOOTER -->
</div>

22
custom_robots_txt/wizards/__init__.py

@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# 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 <http://www.gnu.org/licenses/>.
#
################################################################################
from . import website_robots

57
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(<https://www.cybrosys.com>).
# 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 <http://www.gnu.org/licenses/>.
#
################################################################################
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

20
custom_robots_txt/wizards/website_robots_view.xml

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="view_edit_robots_txt" model="ir.ui.view">
<field name="name">Edit Robots.txt</field>
<field name="model">website.robots</field>
<field name="inherit_id" ref="website.view_edit_robots"/>
<field name="arch" type="xml">
<field name="content" position="before">
<label for="mode" string="Mode"/>
<field name="mode"/>
</field>
<xpath expr="//a" position="after">
<a role="button" class="btn btn-link" target="_blank"
href="https://developers.google.com/search/docs/crawling-indexing/robots/create-robots-txt">
How to create robots.txt
</a>
</xpath>
</field>
</record>
</odoo>
Loading…
Cancel
Save