Browse Source

Jun 24: [ADD] Initial commit 'theme_autofly'

pull/331/head
RisvanaCybro 10 months ago
parent
commit
3d332a41b1
  1. 48
      theme_autofly/README.rst
  2. 23
      theme_autofly/__init__.py
  3. 88
      theme_autofly/__manifest__.py
  4. 22
      theme_autofly/controllers/__init__.py
  5. 165
      theme_autofly/controllers/website_autofly.py
  6. 13
      theme_autofly/data/theme_autofly_sequence.xml
  7. 6
      theme_autofly/doc/RELEASE_NOTES.md
  8. 27
      theme_autofly/models/__init__.py
  9. 31
      theme_autofly/models/car_brand.py
  10. 31
      theme_autofly/models/car_garage.py
  11. 51
      theme_autofly/models/car_types.py
  12. 37
      theme_autofly/models/product_template.py
  13. 44
      theme_autofly/models/service_booking.py
  14. 35
      theme_autofly/models/testimonial.py
  15. 6
      theme_autofly/security/ir.model.access.csv
  16. BIN
      theme_autofly/static/description/Images/BLOG-4.png
  17. BIN
      theme_autofly/static/description/Images/Edu.png
  18. BIN
      theme_autofly/static/description/Images/Hero-banner.png
  19. BIN
      theme_autofly/static/description/Images/Home-1.png
  20. BIN
      theme_autofly/static/description/Images/Home-2.png
  21. BIN
      theme_autofly/static/description/Images/Home-3.png
  22. BIN
      theme_autofly/static/description/Images/Home-4.png
  23. BIN
      theme_autofly/static/description/Images/Home-5.png
  24. BIN
      theme_autofly/static/description/Images/Home-6.png
  25. BIN
      theme_autofly/static/description/Images/Home-7.png
  26. BIN
      theme_autofly/static/description/Images/POS.png
  27. BIN
      theme_autofly/static/description/Images/Production.png
  28. 0
      theme_autofly/static/description/Images/about-1.png
  29. BIN
      theme_autofly/static/description/Images/about-2.png
  30. BIN
      theme_autofly/static/description/Images/about-3.png
  31. BIN
      theme_autofly/static/description/Images/arrow-black.png
  32. BIN
      theme_autofly/static/description/Images/banner-thumb.png
  33. BIN
      theme_autofly/static/description/Images/contact-1.png
  34. BIN
      theme_autofly/static/description/Images/contact-2.png
  35. BIN
      theme_autofly/static/description/Images/icon-Compatibility-with-plugins.png
  36. BIN
      theme_autofly/static/description/Images/icon-Fast-loading-times.png
  37. BIN
      theme_autofly/static/description/Images/icon-One-Click-Installation.png
  38. BIN
      theme_autofly/static/description/Images/icon-Responsive-design.png
  39. BIN
      theme_autofly/static/description/Images/icon-Up-to-date-development.png
  40. BIN
      theme_autofly/static/description/Images/icon-design.png
  41. BIN
      theme_autofly/static/description/Images/icons8-search-32.png
  42. BIN
      theme_autofly/static/description/Images/icons8-search-64.png
  43. BIN
      theme_autofly/static/description/Images/logo-cybro.png
  44. BIN
      theme_autofly/static/description/Images/odoo-consultency.png
  45. BIN
      theme_autofly/static/description/Images/odoo-customization.png
  46. BIN
      theme_autofly/static/description/Images/odoo-developer.png
  47. BIN
      theme_autofly/static/description/Images/odoo-implement.png
  48. BIN
      theme_autofly/static/description/Images/odoo-intergration.png
  49. BIN
      theme_autofly/static/description/Images/odoo-licencing.png
  50. BIN
      theme_autofly/static/description/Images/odoo-logo.png
  51. BIN
      theme_autofly/static/description/Images/odoo-migration.png
  52. BIN
      theme_autofly/static/description/Images/odoo-support.png
  53. BIN
      theme_autofly/static/description/Images/portfolio-1.png
  54. BIN
      theme_autofly/static/description/Images/portfolio-2.png
  55. BIN
      theme_autofly/static/description/Images/portfolio-3.png
  56. BIN
      theme_autofly/static/description/Images/portfolio-4.png
  57. BIN
      theme_autofly/static/description/Images/services-1.png
  58. BIN
      theme_autofly/static/description/Images/services-2.png
  59. BIN
      theme_autofly/static/description/Images/services-3.png
  60. BIN
      theme_autofly/static/description/Images/services-4.png
  61. BIN
      theme_autofly/static/description/Images/services-5.png
  62. BIN
      theme_autofly/static/description/Images/services-6.png
  63. BIN
      theme_autofly/static/description/Images/services-7.png
  64. BIN
      theme_autofly/static/description/Images/services.png
  65. BIN
      theme_autofly/static/description/Images/team-1.png
  66. BIN
      theme_autofly/static/description/Images/team-2.png
  67. BIN
      theme_autofly/static/description/Images/team-3.png
  68. BIN
      theme_autofly/static/description/Images/tittle.png
  69. BIN
      theme_autofly/static/description/Images/trading.png
  70. BIN
      theme_autofly/static/description/banner.jpg
  71. BIN
      theme_autofly/static/description/icon.png
  72. 1388
      theme_autofly/static/description/index.html
  73. BIN
      theme_autofly/static/description/theme_screenshot.jpg
  74. BIN
      theme_autofly/static/src/assets/Rectangle 5.png
  75. BIN
      theme_autofly/static/src/assets/Rectangle 5@2x.png
  76. BIN
      theme_autofly/static/src/assets/about_page/about.jpg
  77. BIN
      theme_autofly/static/src/assets/about_page/city.jpg
  78. BIN
      theme_autofly/static/src/assets/about_page/deals/buy.jpg
  79. BIN
      theme_autofly/static/src/assets/about_page/deals/hand.jpg
  80. BIN
      theme_autofly/static/src/assets/about_page/deals/owner.jpg
  81. BIN
      theme_autofly/static/src/assets/about_page/deals/plan.jpg
  82. BIN
      theme_autofly/static/src/assets/about_page/tech/tech (1).jpg
  83. BIN
      theme_autofly/static/src/assets/about_page/tech/tech (2).jpg
  84. BIN
      theme_autofly/static/src/assets/about_page/tech/tech (3).jpg
  85. BIN
      theme_autofly/static/src/assets/about_page/tech/tech (4).jpg
  86. BIN
      theme_autofly/static/src/assets/banner/banner.png
  87. BIN
      theme_autofly/static/src/assets/banner/blog.jpg
  88. BIN
      theme_autofly/static/src/assets/banner/contact.jpg
  89. BIN
      theme_autofly/static/src/assets/banner/image8.png
  90. BIN
      theme_autofly/static/src/assets/banner/man-polish-salon-car-garage 1.png
  91. BIN
      theme_autofly/static/src/assets/banner/service.jpg
  92. BIN
      theme_autofly/static/src/assets/banner/team.jpg
  93. BIN
      theme_autofly/static/src/assets/blog/2021-Audi-S1-Hoonitron-Concept-002-1600 1.png
  94. BIN
      theme_autofly/static/src/assets/blog/Rectangle 50.png
  95. BIN
      theme_autofly/static/src/assets/blog/image 2.png
  96. BIN
      theme_autofly/static/src/assets/brand icon/barnd_icon.png
  97. 10
      theme_autofly/static/src/assets/card_icon/c1.svg
  98. BIN
      theme_autofly/static/src/assets/card_icon/engine (1) 1.png
  99. BIN
      theme_autofly/static/src/assets/card_icon/fuel-station 1.png
  100. BIN
      theme_autofly/static/src/assets/card_icon/speedometer 1.png

48
theme_autofly/README.rst

@ -0,0 +1,48 @@
.. image:: https://img.shields.io/badge/license-LGPL--3-green.svg
:target: https://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
Theme Autofly
=============
* Theme Autofly module provide attractive and unique front end theme mainly suitable for eCommerce website.
Installation
============
- www.odoo.com/documentation/16.0/setup/install.html
- Install our Theme
License
-------
General Public License, Version 3 (LGPL v3).
(https://www.gnu.org/licenses/lgpl-3.0-standalone.html)
Company
-------
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__
Credits
-------
* Developer: (V17) Fouzan M, 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 https://www.cybrosys.com.
Further information
===================
HTML Description: `<static/description/index.html>`__

23
theme_autofly/__init__.py

@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from . import controllers
from . import models

88
theme_autofly/__manifest__.py

@ -0,0 +1,88 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
{
'name': 'Theme Autofly',
'version': '17.0.1.0.0',
'category': 'Theme/Corporate',
'summary': 'Design eCommerce Website with Theme AutoFly',
'description': 'Theme Autofly module provide attractive and unique '
'front end theme mainly suitable for eCommerce website',
'author': 'Cybrosys Techno Solutions',
'company': 'Cybrosys Techno Solutions',
'maintainer': 'Cybrosys Techno Solutions',
'website': "https://www.cybrosys.com",
'depends': ['website', 'website_blog', 'website_sale_wishlist'],
'data': [
'security/ir.model.access.csv',
'data/theme_autofly_sequence.xml',
'views/car_type_views.xml',
'views/car_brand_views.xml',
'views/car_garage_views.xml',
'views/blog_page_templates.xml',
'views/portfolio_templates.xml',
'views/about_us_templates.xml',
'views/footer_templates.xml',
'views/header_templates.xml',
'views/contact_us_templates.xml',
'views/team_templates.xml',
'views/service_templates.xml',
'views/snippets/snippet_templates.xml',
'views/snippets/popular_model_templates.xml',
'views/snippets/blog_templates.xml',
'views/snippets/find_car_templates.xml',
'views/snippets/partners_templates.xml',
'views/snippets/testimonial_templates.xml',
'views/snippets/choose_us_templates.xml',
'views/snippets/banner_templates.xml',
'views/snippets/search_templates.xml',
'views/service_booking_views.xml',
'views/product_template_views.xml',
'views/testimonial_views.xml',
],
'assets': {
'web.assets_frontend': [
'/theme_autofly/static/src/xml/blog_snippet_templates.xml',
'/theme_autofly/static/src/xml/testimonial_snippet_templates.xml',
'/theme_autofly/static/src/js/service_products.js',
'/theme_autofly/static/src/js/car_garage.js',
'theme_autofly/static/src/css/style.css',
'/theme_autofly/static/src/js/owl.carousel.js',
'/theme_autofly/static/src/js/owl.carousel.min.js',
'theme_autofly/static/src/css/owl.theme.default.min.css',
'/theme_autofly/static/src/js/owl.carousel.js',
'/theme_autofly/static/src/js/product_tab.js',
'/theme_autofly/static/src/js/find_car.js',
'/theme_autofly/static/src/js/search.js',
'/theme_autofly/static/src/js/blog.js',
'/theme_autofly/static/src/js/testimonial.js',
'/theme_autofly/static/src/js/all_type.js',
],
},
'images': [
'static/description/banner.jpg',
'static/description/theme_screenshot.jpg',
],
'license': 'LGPL-3',
'installable': True,
'application': False,
'auto_install': False,
}

22
theme_autofly/controllers/__init__.py

@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from . import website_autofly

165
theme_autofly/controllers/website_autofly.py

@ -0,0 +1,165 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import http
from odoo.http import request
class WebsiteAutoFly(http.Controller):
"""Controller used to fetch product related data and also for about page,
portfolio page, team page, service page."""
@http.route('/about', website=True, type='http', auth='public',
csrf=False)
def about_page(self):
"""Render the about page."""
return request.render('theme_autofly.about_page')
@http.route('/portfolio', website=True, type='http', auth='public',
csrf=False)
def portfolio_page(self):
"""Render the portfolio page."""
return request.render('theme_autofly.portfolio_page')
@http.route('/team', website=True, type='http', auth='public',
csrf=False)
def team_page(self):
"""Render the team page."""
return request.render('theme_autofly.team_page')
@http.route('/service', website=True, type='http', auth='public',
csrf=False)
def service_page(self):
"""Render the service page."""
return request.render('theme_autofly.service_page')
@http.route('/blog_snippet', auth="public", type='json')
def latest_blog(self):
"""Return the data for dynamic blog snippet."""
return request.env['blog.post'].sudo().search_read(
[], ['name', 'blog_id', 'subtitle', 'published_date'],
order='id desc', limit=3)
@http.route('/get_testimonial', auth="public", type='json')
def get_testimonial(self):
"""Return the data for testimonial snippet."""
testimonial = request.env['autofly.testimonial'].sudo().search(
[], order='id desc', limit=12)
values = {
f'slide{i + 1}': [{'id': record.id,
'name': record.display_name,
'partner_id': record.partner_id.id,
'rating': record.rating,
'review': record.review,
} for record in testimonial[i * 3:(i + 1) * 3]]
for i in range((len(testimonial) + 2) // 3)
}
return values
@http.route('/autofly/service', type='http', website=True, auth='public',
csrf=False)
def service_booking(self, **kwargs):
"""Render the service page."""
request.env['service.booking'].sudo().create({
'name': kwargs.get('usr1'),
'email': kwargs.get('email'),
'description': kwargs.get('text')
})
return request.render('theme_autofly.service_page')
@http.route('/cars-search', website=True, type='http', auth='public',
csrf=False)
def car_search(self, **kwargs):
"""Used for searching particular cars."""
domain = []
if kwargs.get('car-selection'):
domain.append(
('car_brand_id', '=', int(kwargs.get('car-selection'))))
if kwargs.get('car-type-selection'):
domain.append(('car_type_id', '=', int(kwargs.get(
'car-type-selection'))))
if kwargs.get('car-price'):
domain.append(('list_price', '=', float(kwargs.get('car-price'))))
if kwargs.get('car-model'):
domain.append(
('car_model', '=', int(float(kwargs.get('car-model')))))
if kwargs.get('car-location'):
domain.append(('location', 'ilike', kwargs.get('car-location')))
result = request.env['product.template'].sudo().search(domain)
return request.render('theme_autofly.specific_car',
qcontext={'hot_deals': result})
@http.route('/get_product_tab', auth="public", type='json')
def get_product_tab(self):
"""Controller used to Fetch popular products."""
hot_deals = request.env['product.template'].sudo().search([
('website_published', '=', True),
('popular_product', '=', True)])
response = http.Response(template='theme_autofly.popular_modal',
qcontext={'hot_deals': hot_deals})
return response.render()
@http.route('/find_car', auth="public", type='json')
def get_find_car(self):
"""Controller used to fetch car types."""
hot_deals = request.env['car.types'].sudo().search([],
order='id desc',
limit=6)
response = http.Response(template='theme_autofly.autofly_find_car',
qcontext={'hot_deals': hot_deals})
return response.render()
@http.route('/get_searched_car', auth="public", type='json')
def get_search_car(self):
"""Controller used to fetch car brands."""
brands = request.env['car.brand'].sudo().search([])
types = request.env['car.types'].sudo().search([])
brand = [{'id': record.id, 'name': record.name} for record in brands]
car_type = [{'id': record.id, 'name': record.name} for record in types]
return {'type': car_type, 'brand': brand}
@http.route('/get_service_product', auth="public", type='json')
def get_service_product(self):
"""Controller used to fetch service products."""
hot_deals = request.env['product.template'].sudo().search([
('website_published', '=', True),
('detailed_type', '=', 'service')])
response = http.Response(template='theme_autofly.service_products',
qcontext={'hot_deals': hot_deals})
return response.render()
@http.route('/get_garage_car', auth="public", type='json')
def get_garage_car(self):
"""Controller used to fetch garages."""
hot_deals = request.env['car.garage'].sudo().search([])
car_types = request.env['car.types'].sudo().search([])
values = {'hot_deals': hot_deals, 'car_types': car_types}
response = http.Response(template='theme_autofly.portfolio_garage_page',
qcontext=values)
return response.render()
@http.route('/get_all_type', auth="public", type='json')
def get_all_type(self):
"""Controller used to fetch car types."""
hot_deals = request.env['car.types'].sudo().search([])
response = http.Response(template='theme_autofly.portfolio_type_page',
qcontext={'hot_deals': hot_deals})
return response.render()

13
theme_autofly/data/theme_autofly_sequence.xml

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data noupdate="1">
<!-- Sequences for booking -->
<record id="seq_booking" model="ir.sequence">
<field name="name">Service Booking</field>
<field name="code">reference.sequence</field>
<field name="prefix">SB</field>
<field name="padding">3</field>
<field name="company_id" eval="False"/>
</record>
</data>
</odoo>

6
theme_autofly/doc/RELEASE_NOTES.md

@ -0,0 +1,6 @@
## Module <theme_autofly>
#### 20.06.2024
#### Version 17.0.1.0.0
#### ADD
- Initial Commit for Theme Autofly

27
theme_autofly/models/__init__.py

@ -0,0 +1,27 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from . import car_brand
from . import car_garage
from . import car_types
from . import product_template
from . import service_booking
from . import testimonial

31
theme_autofly/models/car_brand.py

@ -0,0 +1,31 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import fields, models
class CarBrand(models.Model):
"""This model is used define Brand Model fields and functionalities."""
_name = "car.brand"
_description = "Website Car Brand"
name = fields.Char(help="Add your brand name.")
image = fields.Image(help="Add your brand image.")

31
theme_autofly/models/car_garage.py

@ -0,0 +1,31 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import fields, models
class CarGarage(models.Model):
"""This model is used define car garage details."""
_name = "car.garage"
_description = "Website Car Garage"
name = fields.Char(help="Add your garage name.")
image = fields.Image(help="Add your garage image.")

51
theme_autofly/models/car_types.py

@ -0,0 +1,51 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import fields, models
class CarTypes(models.Model):
"""This model is used define car type fields and it's functionalities."""
_name = "car.types"
_description = "Website Car Type"
name = fields.Char(help="Add your car type name.")
image = fields.Image(help="Add your car type image.")
product_count = fields.Integer(string='Products Count',
compute='_compute_product_count',
help="Used to show product in smart button.")
def _compute_product_count(self):
"""Product count fetching based on car type."""
for record in self:
record.product_count = self.env['product.template'].search_count(
[('car_type_id', '=', record.id)])
def action_view_products(self):
"""Action to view corresponding products"""
return {
'type': 'ir.actions.act_window',
'name': 'Products',
'view_mode': 'tree',
'res_model': 'product.template',
'domain': [('car_type_id', '=', self.id)],
'context': "{'create': False}"
}

37
theme_autofly/models/product_template.py

@ -0,0 +1,37 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import fields, models
class ProductTemplate(models.Model):
"""Inheriting product_product model to add new fields."""
_inherit = "product.template"
popular_product = fields.Boolean(string="Popular Product",
help="Please enable this field to make the"
"product as popular product.")
car_type_id = fields.Many2one('car.types', string="Car Type",
help="Add your car type.")
car_brand_id = fields.Many2one('car.brand', string="Car Brand",
help="Add your car brand.")
car_model = fields.Integer(string="Model", help="Add your car model.")
location = fields.Char(help="Add your car location.")

44
theme_autofly/models/service_booking.py

@ -0,0 +1,44 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import _, api, fields, models
class ServiceBooking(models.Model):
"""This model is used managing service booking details."""
_name = "service.booking"
_description = "Website Car Service Booking"
name = fields.Char(required=True, help="Name of the service")
reference = fields.Char(readonly=True, help="Booking sequence")
state = fields.Selection([('draft', 'Draft'), ('running', 'Running'),
('cancel', 'Cancel'), ('done', 'Done')])
email = fields.Char(help="Email address")
description = fields.Char(help="Add if you have any description")
@api.model_create_multi
def create(self, vals_list):
"""Supering create function for generating sequence."""
for vals in vals_list:
if vals.get('reference', _('New')) == _('New'):
vals['reference'] = self.env['ir.sequence'].next_by_code(
'reference.sequence') or _('New')
return super().create(vals)

35
theme_autofly/models/testimonial.py

@ -0,0 +1,35 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import fields, models
class Testimonial(models.Model):
"""model to manage testimonials"""
_name = 'autofly.testimonial'
_description = 'Testimonials'
_rec_name = 'partner_id'
partner_id = fields.Many2one('res.partner', string='Customer',
required=True)
rating = fields.Selection(selection=[('1', '1'), ('2', '2'), ('3', '3'),
('4', '4'), ('5', '5')])
review = fields.Text(help='Add your review here')

6
theme_autofly/security/ir.model.access.csv

@ -0,0 +1,6 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_car_type_user,access.car.type.user,model_car_types,base.group_user,1,1,1,1
access_car_brand_user,access.car.brand.user,model_car_brand,base.group_user,1,1,1,1
access_service_booking_user,access.service.booking.user,model_service_booking,base.group_user,1,1,1,1
access_car_garage_user,access.car.garage.user,model_car_garage,base.group_user,1,1,1,1
access_testimonial_user,access.autofly.testimonial,model_autofly_testimonial,base.group_user,1,1,1,1
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 access_car_type_user access.car.type.user model_car_types base.group_user 1 1 1 1
3 access_car_brand_user access.car.brand.user model_car_brand base.group_user 1 1 1 1
4 access_service_booking_user access.service.booking.user model_service_booking base.group_user 1 1 1 1
5 access_car_garage_user access.car.garage.user model_car_garage base.group_user 1 1 1 1
6 access_testimonial_user access.autofly.testimonial model_autofly_testimonial base.group_user 1 1 1 1

BIN
theme_autofly/static/description/Images/BLOG-4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 833 KiB

BIN
theme_autofly/static/description/Images/Edu.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

BIN
theme_autofly/static/description/Images/Hero-banner.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 312 KiB

BIN
theme_autofly/static/description/Images/Home-1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 490 KiB

BIN
theme_autofly/static/description/Images/Home-2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 135 KiB

BIN
theme_autofly/static/description/Images/Home-3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 653 KiB

BIN
theme_autofly/static/description/Images/Home-4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 272 KiB

BIN
theme_autofly/static/description/Images/Home-5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 KiB

BIN
theme_autofly/static/description/Images/Home-6.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 765 KiB

BIN
theme_autofly/static/description/Images/Home-7.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

BIN
theme_autofly/static/description/Images/POS.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

BIN
theme_autofly/static/description/Images/Production.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

0
theme_autofly/static/description/Images/about-1.png

BIN
theme_autofly/static/description/Images/about-2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 374 KiB

BIN
theme_autofly/static/description/Images/about-3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 MiB

BIN
theme_autofly/static/description/Images/arrow-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
theme_autofly/static/description/Images/banner-thumb.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

BIN
theme_autofly/static/description/Images/contact-1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 490 KiB

BIN
theme_autofly/static/description/Images/contact-2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
theme_autofly/static/description/Images/icon-Compatibility-with-plugins.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 843 B

BIN
theme_autofly/static/description/Images/icon-Fast-loading-times.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
theme_autofly/static/description/Images/icon-One-Click-Installation.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 899 B

BIN
theme_autofly/static/description/Images/icon-Responsive-design.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 848 B

BIN
theme_autofly/static/description/Images/icon-Up-to-date-development.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 936 B

BIN
theme_autofly/static/description/Images/icon-design.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1001 B

BIN
theme_autofly/static/description/Images/icons8-search-32.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 690 B

BIN
theme_autofly/static/description/Images/icons8-search-64.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

BIN
theme_autofly/static/description/Images/logo-cybro.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.5 KiB

BIN
theme_autofly/static/description/Images/odoo-consultency.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

BIN
theme_autofly/static/description/Images/odoo-customization.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

BIN
theme_autofly/static/description/Images/odoo-developer.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

BIN
theme_autofly/static/description/Images/odoo-implement.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

BIN
theme_autofly/static/description/Images/odoo-intergration.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

BIN
theme_autofly/static/description/Images/odoo-licencing.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

BIN
theme_autofly/static/description/Images/odoo-logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

BIN
theme_autofly/static/description/Images/odoo-migration.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

BIN
theme_autofly/static/description/Images/odoo-support.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

BIN
theme_autofly/static/description/Images/portfolio-1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 343 KiB

BIN
theme_autofly/static/description/Images/portfolio-2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 KiB

BIN
theme_autofly/static/description/Images/portfolio-3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1010 KiB

BIN
theme_autofly/static/description/Images/portfolio-4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 MiB

BIN
theme_autofly/static/description/Images/services-1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 91 KiB

BIN
theme_autofly/static/description/Images/services-2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

BIN
theme_autofly/static/description/Images/services-3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 109 KiB

BIN
theme_autofly/static/description/Images/services-4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 109 KiB

BIN
theme_autofly/static/description/Images/services-5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 470 KiB

BIN
theme_autofly/static/description/Images/services-6.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

BIN
theme_autofly/static/description/Images/services-7.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 389 KiB

BIN
theme_autofly/static/description/Images/services.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 722 KiB

BIN
theme_autofly/static/description/Images/team-1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 525 KiB

BIN
theme_autofly/static/description/Images/team-2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

BIN
theme_autofly/static/description/Images/team-3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 825 KiB

BIN
theme_autofly/static/description/Images/tittle.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

BIN
theme_autofly/static/description/Images/trading.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
theme_autofly/static/description/banner.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 175 KiB

BIN
theme_autofly/static/description/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

1388
theme_autofly/static/description/index.html

File diff suppressed because it is too large

BIN
theme_autofly/static/description/theme_screenshot.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 419 KiB

BIN
theme_autofly/static/src/assets/Rectangle 5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 706 KiB

BIN
theme_autofly/static/src/assets/Rectangle 5@2x.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
theme_autofly/static/src/assets/about_page/about.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 520 KiB

BIN
theme_autofly/static/src/assets/about_page/city.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

BIN
theme_autofly/static/src/assets/about_page/deals/buy.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 602 KiB

BIN
theme_autofly/static/src/assets/about_page/deals/hand.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 183 KiB

BIN
theme_autofly/static/src/assets/about_page/deals/owner.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 MiB

BIN
theme_autofly/static/src/assets/about_page/deals/plan.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 312 KiB

BIN
theme_autofly/static/src/assets/about_page/tech/tech (1).jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

BIN
theme_autofly/static/src/assets/about_page/tech/tech (2).jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

BIN
theme_autofly/static/src/assets/about_page/tech/tech (3).jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

BIN
theme_autofly/static/src/assets/about_page/tech/tech (4).jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

BIN
theme_autofly/static/src/assets/banner/banner.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 593 KiB

BIN
theme_autofly/static/src/assets/banner/blog.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 MiB

BIN
theme_autofly/static/src/assets/banner/contact.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 MiB

BIN
theme_autofly/static/src/assets/banner/image8.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 849 KiB

BIN
theme_autofly/static/src/assets/banner/man-polish-salon-car-garage 1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 821 KiB

BIN
theme_autofly/static/src/assets/banner/service.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 558 KiB

BIN
theme_autofly/static/src/assets/banner/team.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 MiB

BIN
theme_autofly/static/src/assets/blog/2021-Audi-S1-Hoonitron-Concept-002-1600 1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 194 KiB

BIN
theme_autofly/static/src/assets/blog/Rectangle 50.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 199 KiB

BIN
theme_autofly/static/src/assets/blog/image 2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 245 KiB

BIN
theme_autofly/static/src/assets/brand icon/barnd_icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

10
theme_autofly/static/src/assets/card_icon/c1.svg

@ -0,0 +1,10 @@
<svg width="42" height="33" viewBox="0 0 42 33" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M5.10032 11.9606L4.84488 11.7052H4.67458H2.20528C1.69439 11.7052 1.3538 11.2794 1.3538 10.8537V8.38438C1.3538 7.87349 1.77954 7.5329 2.20528 7.5329H4.67458C5.18547 7.5329 5.52606 7.95864 5.52606 8.38438V10.2576C5.52606 10.3428 5.10032 11.7903 5.10032 11.9606Z" fill="white"/>
<path d="M40.6072 11.7052H38.1379H37.9676L37.4567 12.1309V11.8755C37.4567 11.7903 37.3716 11.5349 37.2864 11.1091L37.3716 11.024C37.3716 10.9388 37.3716 10.9388 37.3716 10.8537V8.38438C37.3716 7.87349 37.7973 7.5329 38.2231 7.5329H40.6072C41.1181 7.5329 41.4587 7.95864 41.4587 8.38438V10.8537C41.5438 11.3646 41.1181 11.7052 40.6072 11.7052Z" fill="white"/>
<path d="M9.35779 31.2039C9.35779 31.8851 8.76175 32.4812 8.08056 32.4812H3.31227C2.63108 32.4812 2.03504 31.9703 2.03504 31.2039V28.394H9.35779V31.2039Z" fill="white"/>
<path d="M40.4369 31.2039C40.4369 31.8851 39.8409 32.4812 39.1597 32.4812H34.3914C33.7102 32.4812 33.1141 31.9703 33.1141 31.2039V28.394H40.4369V31.2039Z" fill="white"/>
<path d="M2.12019 24.9882H40.4369C41.1181 24.9882 41.7141 25.5843 41.7141 26.2654C41.7141 26.9466 41.1181 27.5427 40.4369 27.5427H2.20533C1.52415 27.5427 0.928109 26.9466 0.928109 26.2654C0.928109 25.5843 1.439 24.9882 2.12019 24.9882Z" fill="white"/>
<path d="M40.7775 15.9626C40.9478 17.3249 40.6072 21.5823 40.4369 24.1368H39.7557H33.8805H8.59147H2.80139H2.12021C1.86476 21.5823 1.52417 17.3249 1.77961 15.9626C2.03506 14.1744 3.99347 13.323 4.9301 12.8972C19.0647 12.8972 23.1518 12.8972 37.7973 12.8972C38.6488 13.323 40.5221 14.1744 40.7775 15.9626ZM10.9756 19.8794C10.9756 19.4536 10.635 19.113 10.2093 19.113H4.84495C4.41921 19.113 4.07862 19.4536 4.07862 19.8794V22.519C4.07862 22.9447 4.41921 23.2853 4.84495 23.2853H10.2093C10.635 23.2853 10.9756 22.9447 10.9756 22.519V19.8794ZM28.1756 17.5804H14.2964V18.7724H28.1756V17.5804ZM28.1756 19.7942H14.2964V20.9863H28.1756V19.7942ZM37.7122 19.113H32.3478C31.9221 19.113 31.5815 19.4536 31.5815 19.8794V22.519C31.5815 22.9447 31.9221 23.2853 32.3478 23.2853H37.7122C38.1379 23.2853 38.4785 22.9447 38.4785 22.519V19.8794C38.4785 19.4536 38.1379 19.113 37.7122 19.113Z" fill="white"/>
<path d="M9.10235 2.93483C10.2944 0.97642 12.338 1.31701 12.6786 1.14672C18.5538 0.635827 24.3439 0.635827 29.8785 1.14672C30.134 1.23187 32.1775 0.97642 33.4547 2.93483C34.6468 4.97839 36.6052 12.0457 36.6052 12.0457H5.95186C5.95186 12.0457 7.91027 4.97839 9.10235 2.93483ZM33.3696 10.9388L30.9003 2.76453C29.8785 2.42394 12.6786 2.42394 11.6568 2.76453L9.18749 10.9388C25.2805 10.9388 7.99542 10.6833 33.3696 10.9388Z" fill="white"/>
<path d="M23.6627 3.78619H18.8944V4.97827H23.6627V3.78619Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 2.7 KiB

BIN
theme_autofly/static/src/assets/card_icon/engine (1) 1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 574 B

BIN
theme_autofly/static/src/assets/card_icon/fuel-station 1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 463 B

BIN
theme_autofly/static/src/assets/card_icon/speedometer 1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 624 B

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save