| @ -0,0 +1,47 @@ | |||||
|  | .. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg | ||||
|  |     :target: https://www.gnu.org/licenses/agpl-3.0-standalone.html | ||||
|  |     :alt: License: AGPL-3 | ||||
|  | 
 | ||||
|  | Fleet Dashboard | ||||
|  | =============== | ||||
|  | In this dashboard you can get all the details about fleet module | ||||
|  | 
 | ||||
|  | Configuration | ||||
|  | ============= | ||||
|  | * No additional configurations needed | ||||
|  | 
 | ||||
|  | License | ||||
|  | ------- | ||||
|  | Affero General Public License, Version 3 | ||||
|  | `(AGPL v3). | ||||
|  | <https://www.gnu.org/licenses/agpl-3.0-standalone.html>`__ | ||||
|  | 
 | ||||
|  | Company | ||||
|  | ------- | ||||
|  | * `Cybrosys Techno Solutions <https://cybrosys.com/>`__ | ||||
|  | 
 | ||||
|  | Credits | ||||
|  | ------- | ||||
|  | * Developer :  (V17) Ajith V, | ||||
|  |                (V16) Yadhukrishnan, 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>`__ | ||||
| @ -0,0 +1,22 @@ | |||||
|  | # -*- coding: utf-8 -*- | ||||
|  | ################################################################################ | ||||
|  | # | ||||
|  | #    Cybrosys Technologies Pvt. Ltd. | ||||
|  | # | ||||
|  | #    Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). | ||||
|  | #    Author: Ajith V (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 controllers | ||||
|  | from . import models | ||||
| @ -0,0 +1,48 @@ | |||||
|  | # -*- coding: utf-8 -*- | ||||
|  | ################################################################################ | ||||
|  | # | ||||
|  | #    Cybrosys Technologies Pvt. Ltd. | ||||
|  | # | ||||
|  | #    Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). | ||||
|  | #    Author: Ajith V (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": "Fleet Dashboard", | ||||
|  |     "version": "17.0.1.0.0", | ||||
|  |     "category": "Industries,Productivity", | ||||
|  |     "summary": """User can analyse the fleet module in easy ways """, | ||||
|  |     "description": """In this module can see all tha data related to the fleet  | ||||
|  |      module. Flee dashboard contain the graphical representation of the odometer | ||||
|  |      values, service cost, vehicle status and service types""", | ||||
|  |     "author": "Cybrosys Techno Solutions", | ||||
|  |     "company": "Cybrosys Techno Solutions", | ||||
|  |     "maintainer": "Cybrosys Techno Solutions", | ||||
|  |     "website": "https://www.cybrosys.com", | ||||
|  |     "depends": ["base", "hr", "fleet"], | ||||
|  |     "data": ["views/fleet_advanced_dashboard_menus.xml"], | ||||
|  |     "assets": { | ||||
|  |         "web.assets_backend": [ | ||||
|  |             "fleet_advanced_dashboard/static/src/xml/fleet_dashboard_templates.xml", | ||||
|  |             "fleet_advanced_dashboard/static/src/js/fleet_dashboard.js", | ||||
|  |             "https://www.gstatic.com/charts/loader.js", | ||||
|  |             "fleet_advanced_dashboard/static/src/css/fleet_dashboard.css" | ||||
|  |         ], | ||||
|  |     }, | ||||
|  |     "images": ["static/description/banner.jpg"], | ||||
|  |     "license": "AGPL-3", | ||||
|  |     "installable": True, | ||||
|  |     "auto_install": False, | ||||
|  |     "application": False, | ||||
|  | } | ||||
| @ -0,0 +1,21 @@ | |||||
|  | # -*- coding: utf-8 -*- | ||||
|  | ################################################################################ | ||||
|  | # | ||||
|  | #    Cybrosys Technologies Pvt. Ltd. | ||||
|  | # | ||||
|  | #    Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). | ||||
|  | #    Author: Ajith V (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 fleet_advanced_dashboard | ||||
| @ -0,0 +1,138 @@ | |||||
|  | # -*- coding: utf-8 -*- | ||||
|  | ################################################################################ | ||||
|  | # | ||||
|  | #    Cybrosys Technologies Pvt. Ltd. | ||||
|  | # | ||||
|  | #    Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). | ||||
|  | #    Author: Ajith V (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 datetime import date, timedelta | ||||
|  | from odoo import http | ||||
|  | from odoo.http import request | ||||
|  | 
 | ||||
|  | 
 | ||||
|  | class FleetFilter(http.Controller): | ||||
|  |     """ | ||||
|  |         The FleetFilter class provides the filter option to the js. | ||||
|  |         When applying the filter return the corresponding data. | ||||
|  |             Methods: | ||||
|  |                 fleet_filter(self): | ||||
|  |                     when the page is loaded adding filter options to the selection | ||||
|  |                     field. | ||||
|  |                     return a list variable. | ||||
|  |                 fleet_filter_data(self,**kw): | ||||
|  |                     after applying the filter receiving the values and return the | ||||
|  |                     filtered data. | ||||
|  |         """ | ||||
|  | 
 | ||||
|  |     @http.route('/fleet/filter', auth='public', type='json') | ||||
|  |     def fleet_filter(self): | ||||
|  |         """ | ||||
|  |         Summary: | ||||
|  |             transferring data to the selection field that works as a filter | ||||
|  |         Returns: | ||||
|  |             type:list of lists , it contains the data for the corresponding | ||||
|  |             filter. | ||||
|  |         """ | ||||
|  |         fleet_vehicle_ids = request.env['fleet.vehicle'].search([]) | ||||
|  |         driver_list = request.env['res.partner'].search_read([], ['name']) | ||||
|  |         # Getting vehicles model data | ||||
|  |         vehicle_list = [{'id': fleet_vehicle_id.model_id.id, | ||||
|  |                          'name': fleet_vehicle_id.model_id.name} | ||||
|  |                         for fleet_vehicle_id in fleet_vehicle_ids] | ||||
|  |         vehicle_list = [vehicle for n, vehicle in | ||||
|  |                         enumerate(vehicle_list) if | ||||
|  |                         vehicle not in vehicle_list[:n]] | ||||
|  |         # Getting vehicles brand data | ||||
|  |         manufacturers_list = [{'id': fleet_vehicle_id.model_id.brand_id.id, | ||||
|  |                                'name': fleet_vehicle_id.model_id.brand_id.name} | ||||
|  |                               for fleet_vehicle_id in fleet_vehicle_ids] | ||||
|  |         manufacturers_list = [manufacturer for n, manufacturer in | ||||
|  |                               enumerate(manufacturers_list) if | ||||
|  |                               manufacturer not in manufacturers_list[:n]] | ||||
|  |         return {'drivers': driver_list, 'vehicles': vehicle_list, 'manufactures': manufacturers_list} | ||||
|  | 
 | ||||
|  |     @http.route('/fleet_advanced_dashboard/filter_data', auth='public', | ||||
|  |                 type='json') | ||||
|  |     def fleet_filter_data(self, **kw): | ||||
|  |         data = kw.get('data') | ||||
|  |         driver = [partner.id for partner in | ||||
|  |                   request.env['res.partner'].search([])] \ | ||||
|  |             if data['driver'] == 'null' else [int(data['driver'])] | ||||
|  | 
 | ||||
|  |         vehicle = [fleet_vehicle_id.id for fleet_vehicle_id in | ||||
|  |                    request.env['fleet.vehicle.model'].search([])] \ | ||||
|  |             if data['vehicle'] == 'null' else [int(data['vehicle'])] | ||||
|  | 
 | ||||
|  |         fleet_vehicle_list = request.env['fleet.vehicle'].search( | ||||
|  |             [("model_id", 'in', vehicle)]) | ||||
|  | 
 | ||||
|  |         manufacturer = [fleet_vehicle_id.model_id.brand_id.id for | ||||
|  |                         fleet_vehicle_id in fleet_vehicle_list] \ | ||||
|  |             if data['manufacturer'] == 'null' else [int(data['manufacturer'])] | ||||
|  | 
 | ||||
|  |         if data['date'] == 'null': | ||||
|  |             fleet_vehicle_odometer_ids = request.env[ | ||||
|  |                 'fleet.vehicle.odometer'].search( | ||||
|  |                 [("vehicle_id", 'in', fleet_vehicle_list.ids), | ||||
|  |                  ("vehicle_id.brand_id", "in", manufacturer), | ||||
|  |                  ("driver_id", "in", driver)]) | ||||
|  |             fleet_vehicle_log_contract_ids = request.env[ | ||||
|  |                 'fleet.vehicle.log.contract'].search( | ||||
|  |                 [("vehicle_id.model_id", 'in', vehicle), | ||||
|  |                  ("vehicle_id.model_id.brand_id", 'in', manufacturer), | ||||
|  |                  ("state", "not in", ['expired', 'closed']), | ||||
|  |                  ("purchaser_id", "in", driver)]) | ||||
|  |             fleet_vehicle_log_services_ids = request.env[ | ||||
|  |                 'fleet.vehicle.log.services'].search( | ||||
|  |                 [("vehicle_id.model_id", 'in', vehicle), | ||||
|  |                  ("vehicle_id.model_id.brand_id", 'in', manufacturer), | ||||
|  |                  ("purchaser_id", "in", driver)]) | ||||
|  |         else: | ||||
|  |             range_date = date.today() - timedelta(days=int(data['date'])) | ||||
|  |             fleet_vehicle_odometer_ids = request.env[ | ||||
|  |                 'fleet.vehicle.odometer'].search( | ||||
|  |                 [("vehicle_id", 'in', fleet_vehicle_list.ids), | ||||
|  |                  ("vehicle_id.brand_id", "in", manufacturer), | ||||
|  |                  ("driver_id", "in", driver), | ||||
|  |                  ("date", ">", range_date)]) | ||||
|  |             fleet_vehicle_log_contract_ids = request.env[ | ||||
|  |                 'fleet.vehicle.log.contract'].search( | ||||
|  |                 [("vehicle_id.model_id", 'in', vehicle), | ||||
|  |                  ("vehicle_id.model_id.brand_id", 'in', manufacturer), | ||||
|  |                  ("state", "not in", ['expired', 'closed']), | ||||
|  |                  ("purchaser_id", "in", driver), | ||||
|  |                  ("expiration_date", ">", range_date)]) | ||||
|  |             fleet_vehicle_log_services_ids = request.env[ | ||||
|  |                 'fleet.vehicle.log.services'].search( | ||||
|  |                 [("vehicle_id.model_id", 'in', vehicle), | ||||
|  |                  ("vehicle_id.model_id.brand_id", 'in', manufacturer), | ||||
|  |                  ("purchaser_id", "in", driver), | ||||
|  |                  ("date", ">", range_date)]) | ||||
|  | 
 | ||||
|  |         total_odometer = sum(fleet_vehicle_odometer_ids.mapped('value')) | ||||
|  |         admin_odometer_list = fleet_vehicle_odometer_ids.ids | ||||
|  | 
 | ||||
|  |         service_cost = sum(fleet_vehicle_log_services_ids.mapped('amount')) | ||||
|  |         admin_fleet_cost_list = fleet_vehicle_log_services_ids.ids | ||||
|  | 
 | ||||
|  |         recurring_cost = sum( | ||||
|  |             fleet_vehicle_log_contract_ids.mapped('cost_generated')) | ||||
|  |         admin_recurring_list = fleet_vehicle_log_contract_ids.ids | ||||
|  | 
 | ||||
|  |         return [total_odometer, service_cost, recurring_cost, | ||||
|  |                 admin_odometer_list, admin_fleet_cost_list, | ||||
|  |                 admin_recurring_list, fleet_vehicle_list.ids, vehicle, | ||||
|  |                 manufacturer, len(fleet_vehicle_list.ids)] | ||||
| @ -0,0 +1,6 @@ | |||||
|  | ## Module <fleet_advanced_dashboard> | ||||
|  | 
 | ||||
|  | #### 16.09.2024 | ||||
|  | #### Version 17.0.1.0.0 | ||||
|  | ##### ADD | ||||
|  | - Initial Commit for Fleet Dashboard | ||||
| @ -0,0 +1,21 @@ | |||||
|  | # -*- coding: utf-8 -*- | ||||
|  | ################################################################################ | ||||
|  | # | ||||
|  | #    Cybrosys Technologies Pvt. Ltd. | ||||
|  | # | ||||
|  | #    Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). | ||||
|  | #    Author: Yadhukrishnan K (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 fleet_vehicle | ||||
| @ -0,0 +1,255 @@ | |||||
|  | # -*- coding: utf-8 -*- | ||||
|  | ################################################################################ | ||||
|  | # | ||||
|  | #    Cybrosys Technologies Pvt. Ltd. | ||||
|  | # | ||||
|  | #    Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). | ||||
|  | #    Author: Ajith V (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 datetime import date, timedelta | ||||
|  | from odoo import api, models | ||||
|  | 
 | ||||
|  | 
 | ||||
|  | class FleetVehicle(models.Model): | ||||
|  |     """ | ||||
|  |     The FleetVehicle class provides the data to the js when the dashboard is | ||||
|  |     loaded. | ||||
|  |         Methods: | ||||
|  |             get_tiles_data(self): | ||||
|  |                 when the page is loaded get the data from different models and | ||||
|  |                 transfer to the js file. | ||||
|  |                 return a dictionary variable. | ||||
|  |             get_graph_data(self, month, flag, model_ids): | ||||
|  |                 month and flag are Integer variables and model_ids is object. | ||||
|  |                 In this methode getting data to the corresponding month from the | ||||
|  |                 model_ids and return | ||||
|  |                 it to the get_tiles_data methode. return a list variable. | ||||
|  |     """ | ||||
|  |     _inherit = 'fleet.vehicle' | ||||
|  | 
 | ||||
|  |     @api.model | ||||
|  |     def get_tiles_data(self): | ||||
|  |         """ | ||||
|  |         Summary: | ||||
|  |             when the page is loaded get the data from different models and | ||||
|  |             transfer to the js file. | ||||
|  |             return a dictionary variable. | ||||
|  |         return: | ||||
|  |             type:It is a dictionary variable. This dictionary contain data that | ||||
|  |             affecting the dashboard view. | ||||
|  |         """ | ||||
|  |         # Checking login user is manager or not. | ||||
|  |         if self.env.user.user_has_groups('fleet.fleet_group_manager'): | ||||
|  |             flag = 1 | ||||
|  |             fleet_vehicle_odometer_ids = self.env[ | ||||
|  |                 'fleet.vehicle.odometer'].search([]) | ||||
|  |             fleet_vehicle_log_services_ids = self.env[ | ||||
|  |                 'fleet.vehicle.log.services'].search([]) | ||||
|  |             service_type_list = [['Service Type', 'Total Repair']] | ||||
|  |             # Getting service type and it's total services. | ||||
|  |             for fleet_service_type_id in self.env['fleet.service.type'].search( | ||||
|  |                     []): | ||||
|  |                 service_types_list = [fleet_service_type_id.name, | ||||
|  |                                       self.env['fleet.vehicle.log.services'] | ||||
|  |                                       .search_count([('service_type_id', '=', | ||||
|  |                                                       fleet_service_type_id.id)])] | ||||
|  |                 if service_types_list not in service_type_list: | ||||
|  |                     service_type_list.append(service_types_list) | ||||
|  |             fleet_vehicle_log_contract_ids = self.env[ | ||||
|  |                 'fleet.vehicle.log.contract'].search([]) | ||||
|  |             filtered_fleet_vehicle_log_contract_ids = \ | ||||
|  |                 fleet_vehicle_log_contract_ids.filtered( | ||||
|  |                     lambda fleet_vehicle_log_contract_id: | ||||
|  |                     fleet_vehicle_log_contract_id.state not in [ | ||||
|  |                         'expired', | ||||
|  |                         'closed']) | ||||
|  |             fleet_model_list = [fleet_vehicle_id.model_id.id for | ||||
|  |                                 fleet_vehicle_id in self.env | ||||
|  |                                 ['fleet.vehicle'].search([])] | ||||
|  |             fleet_model_list = [fleet_model for n, fleet_model in | ||||
|  |                                 enumerate(fleet_model_list) if | ||||
|  |                                 fleet_model not in fleet_model_list[:n]] | ||||
|  |             fleet_manufacture_list = [fleet_vehicle_id.model_id.brand_id.id for | ||||
|  |                                       fleet_vehicle_id in | ||||
|  |                                       self.env['fleet.vehicle'].search([])] | ||||
|  |             fleet_manufacture_list = [fleet_manufacture for n, fleet_manufacture | ||||
|  |                                       in enumerate(fleet_manufacture_list) if | ||||
|  |                                       fleet_manufacture not in | ||||
|  |                                       fleet_manufacture_list[:n]] | ||||
|  |             return { | ||||
|  |                 'total_odometer': sum( | ||||
|  |                     fleet_vehicle_odometer_ids.mapped('value')), | ||||
|  |                 'service_cost': sum( | ||||
|  |                     fleet_vehicle_log_services_ids.mapped('amount')), | ||||
|  |                 'recurring_cost': sum( | ||||
|  |                     filtered_fleet_vehicle_log_contract_ids.mapped( | ||||
|  |                         'cost_generated')), | ||||
|  |                 'all_vehicles': self.env['fleet.vehicle'].search_count([]), | ||||
|  |                 'service_type': service_type_list, | ||||
|  |                 'service_cost_list': self.get_graph_data(6, 1, self.env[ | ||||
|  |                     'fleet.vehicle.log.services'].search([])), | ||||
|  |                 'odometer_value_list': self.get_graph_data(13, 0, | ||||
|  |                                                            fleet_vehicle_odometer_ids), | ||||
|  |                 'fleet_state': [{'id': fleet_vehicle_state_id.id, | ||||
|  |                                  'state': fleet_vehicle_state_id.name, | ||||
|  |                                  'number': self.env[ | ||||
|  |                                      'fleet.vehicle'].search_count( | ||||
|  |                                      [('state_id', '=', | ||||
|  |                                        fleet_vehicle_state_id.id)])} | ||||
|  |                                 for fleet_vehicle_state_id in | ||||
|  |                                 self.env['fleet.vehicle.state'].search( | ||||
|  |                                     [])], | ||||
|  |                 'admin_odometer_list': [fleet_vehicle_odometer_id.id | ||||
|  |                                         for fleet_vehicle_odometer_id in | ||||
|  |                                         fleet_vehicle_odometer_ids], | ||||
|  |                 'admin_fleet_cost_list': [fleet_vehicle_log_services_id.id for | ||||
|  |                                           fleet_vehicle_log_services_id in | ||||
|  |                                           fleet_vehicle_log_services_ids], | ||||
|  |                 'admin_recurring_list': [fleet_vehicle_log_contract_id.id for | ||||
|  |                                          fleet_vehicle_log_contract_id in | ||||
|  |                                          fleet_vehicle_log_contract_ids if | ||||
|  |                                          fleet_vehicle_log_contract_id.state not in [ | ||||
|  |                                              'expired', | ||||
|  |                                              'closed']], | ||||
|  |                 'fleet_vehicle_list': [fleet_vehicle_id.id for fleet_vehicle_id | ||||
|  |                                        in | ||||
|  |                                        self.env['fleet.vehicle'].search([])], | ||||
|  |                 'fleet_model_list': fleet_model_list, | ||||
|  |                 'fleet_manufacture_list': fleet_manufacture_list, | ||||
|  |                 'flag': flag, | ||||
|  |             } | ||||
|  |         else: | ||||
|  |             flag = 0 | ||||
|  |             fleet_vehicle_odometer_ids = self.env[ | ||||
|  |                 'fleet.vehicle.odometer'].search( | ||||
|  |                 [('vehicle_id.manager_id.id', '=', self.env.uid)]) | ||||
|  |             # Getting total odometer value. | ||||
|  |             fleet_vehicle_log_services_ids = self.env[ | ||||
|  |                 'fleet.vehicle.log.services'].search( | ||||
|  |                 [('vehicle_id.manager_id.id', '=', self.env.uid)]) | ||||
|  |             # Getting total service cost. | ||||
|  |             service_type_list = [['Service Type', 'Total Repair']] | ||||
|  |             # Getting service type and it's total services. | ||||
|  |             for fleet_service_type_id in self.env['fleet.service.type'].search( | ||||
|  |                     []): | ||||
|  |                 service_types_list = [fleet_service_type_id.name, | ||||
|  |                                       self.env['fleet.vehicle.log.services']. | ||||
|  |                                       search_count( | ||||
|  |                                           [('service_type_id', '=', | ||||
|  |                                             fleet_service_type_id.id), | ||||
|  |                                            ('vehicle_id.manager_id.id', '=', | ||||
|  |                                             self.env.uid)])] | ||||
|  |                 if service_types_list not in service_type_list: | ||||
|  |                     service_type_list.append(service_types_list) | ||||
|  |             fleet_vehicle_log_contract_ids = self.env[ | ||||
|  |                 'fleet.vehicle.log.contract'].search([]) | ||||
|  |             filtered_fleet_vehicle_log_contract_ids = \ | ||||
|  |                 fleet_vehicle_log_contract_ids.filtered( | ||||
|  |                     lambda fleet_vehicle_log_contract_id: | ||||
|  |                     fleet_vehicle_log_contract_id.state not in [ | ||||
|  |                         'expired', | ||||
|  |                         'closed']) | ||||
|  |             fleet_vehicle_ids = self.env['fleet.vehicle'].search([]) | ||||
|  |             # Getting vehicle status and total number vehicles for the | ||||
|  |             # Corresponding state. | ||||
|  |             model_list = [fleet_vehicle_id.model_id.id for fleet_vehicle_id in | ||||
|  |                           fleet_vehicle_ids] | ||||
|  |             model_list = [model for n, model in enumerate(model_list) if | ||||
|  |                           model not in model_list[:n]] | ||||
|  |             manufacture_list = [fleet_vehicle_id.model_id.brand_id.id for | ||||
|  |                                 fleet_vehicle_id in fleet_vehicle_ids] | ||||
|  |             manufacture_list = [manufacture for n, manufacture in | ||||
|  |                                 enumerate(manufacture_list) if | ||||
|  |                                 manufacture not in manufacture_list[:n]] | ||||
|  |             return { | ||||
|  |                 'total_odometer': sum( | ||||
|  |                     fleet_vehicle_odometer_ids.mapped('value')), | ||||
|  |                 'service_cost': sum( | ||||
|  |                     fleet_vehicle_log_services_ids.mapped('amount')), | ||||
|  |                 'recurring_cost': sum( | ||||
|  |                     filtered_fleet_vehicle_log_contract_ids.mapped( | ||||
|  |                         'cost_generated')), | ||||
|  |                 'all_vehicles': self.env['fleet.vehicle'].search_count([]), | ||||
|  |                 'service_type': service_type_list, | ||||
|  |                 'service_cost_list': self.get_graph_data(6, 1, self.env[ | ||||
|  |                     'fleet.vehicle.log.services'].search( | ||||
|  |                     [('vehicle_id.manager_id.id', '=', self.env.uid)])), | ||||
|  |                 'odometer_value_list': self.get_graph_data(13, 0, | ||||
|  |                                                            fleet_vehicle_odometer_ids), | ||||
|  |                 'fleet_state': [{'state': fleet_vehicle_state_id.name, | ||||
|  |                                  'number': self.env[ | ||||
|  |                                      'fleet.vehicle'].search_count( | ||||
|  |                                      [('state_id', '=', | ||||
|  |                                        fleet_vehicle_state_id.id)])} | ||||
|  |                                 for fleet_vehicle_state_id in | ||||
|  |                                 self.env['fleet.vehicle.state'].search( | ||||
|  |                                     [])], | ||||
|  |                 'flag': flag, | ||||
|  |                 'model_list': model_list, | ||||
|  |                 'manufacture_list': manufacture_list | ||||
|  |             } | ||||
|  | 
 | ||||
|  |     def get_graph_data(self, month, flag, model_ids): | ||||
|  |         """ | ||||
|  |         summary: | ||||
|  |             In this meth ode getting data to the corresponding month from the | ||||
|  |             model_ids and return | ||||
|  |             it to the get_tiles_data methode. | ||||
|  |         Args: | ||||
|  |             month(int): This parameter used to calculate the month range. | ||||
|  |             flag(int): This parameter used to differentiate the need and | ||||
|  |             performing different functions. | ||||
|  |             model_ids(obj): This parameter used to identify the model to | ||||
|  |             performs the function. | ||||
|  |         Returns: | ||||
|  |             type:list of lists , it contains the data for the corresponding | ||||
|  |             month. | ||||
|  |         """ | ||||
|  |         data_list = [['Month', '']] | ||||
|  |         # Getting last "month" range | ||||
|  |         for i in range(0, month): | ||||
|  |             previous_month = date.today().replace(day=5) - timedelta( | ||||
|  |                 days=i * 30) | ||||
|  |             first_day_of_previous_month = previous_month.replace(day=1) | ||||
|  |             last_day_of_previous_month = previous_month.replace( | ||||
|  |                 day=1) + timedelta(days=32) | ||||
|  |             last_day_of_previous_month = last_day_of_previous_month.replace( | ||||
|  |                 day=1) - timedelta(days=1) | ||||
|  |             monthly_service_cost = 0 | ||||
|  |             if flag == 1: | ||||
|  |                 # Getting data to the corresponding month and append to | ||||
|  |                 # The data_list | ||||
|  |                 for fleet_vehicle_log_services_id in model_ids: | ||||
|  |                     if first_day_of_previous_month < \ | ||||
|  |                             fleet_vehicle_log_services_id.date < \ | ||||
|  |                             last_day_of_previous_month: | ||||
|  |                         monthly_service_cost += \ | ||||
|  |                             fleet_vehicle_log_services_id.amount | ||||
|  |                 data_list.append([ | ||||
|  |                     previous_month.strftime("%b"), monthly_service_cost | ||||
|  |                 ]) | ||||
|  |             else: | ||||
|  |                 # Getting data to the corresponding month and append to the | ||||
|  |                 # data_list | ||||
|  |                 monthly_odometer_value = 0 | ||||
|  |                 for fleet_vehicle_odometer_id in model_ids: | ||||
|  |                     if first_day_of_previous_month < \ | ||||
|  |                             fleet_vehicle_odometer_id.date < \ | ||||
|  |                             last_day_of_previous_month: | ||||
|  |                         monthly_odometer_value += \ | ||||
|  |                             fleet_vehicle_odometer_id.value | ||||
|  |                 data_list.append( | ||||
|  |                     [previous_month.strftime("%b-%y"), monthly_odometer_value]) | ||||
|  |         return data_list | ||||
| After Width: | Height: | Size: 36 KiB | 
| After Width: | Height: | Size: 3.6 KiB | 
| After Width: | Height: | Size: 310 B | 
| After Width: | Height: | Size: 1.3 KiB | 
| After Width: | Height: | Size: 1.4 KiB | 
| After Width: | Height: | Size: 576 B | 
| After Width: | Height: | Size: 733 B | 
| After Width: | Height: | Size: 911 B | 
| After Width: | Height: | Size: 1.1 KiB | 
| After Width: | Height: | Size: 1.1 KiB | 
| After Width: | Height: | Size: 1.2 KiB | 
| After Width: | Height: | Size: 673 B | 
| After Width: | Height: | Size: 11 KiB | 
| After Width: | Height: | Size: 878 B | 
| After Width: | Height: | Size: 653 B | 
| After Width: | Height: | Size: 905 B | 
| After Width: | Height: | Size: 839 B | 
| After Width: | Height: | Size: 427 B | 
| After Width: | Height: | Size: 627 B | 
| After Width: | Height: | Size: 1.2 KiB | 
| After Width: | Height: | Size: 988 B | 
| After Width: | Height: | Size: 1.2 KiB | 
| After Width: | Height: | Size: 80 KiB | 
| After Width: | Height: | Size: 3.2 KiB | 
| After Width: | Height: | Size: 565 B | 
| After Width: | Height: | Size: 26 KiB | 
| After Width: | Height: | Size: 43 KiB | 
| After Width: | Height: | Size: 1.4 KiB | 
| After Width: | Height: | Size: 4.0 KiB | 
| After Width: | Height: | Size: 38 KiB | 
| After Width: | Height: | Size: 4.3 KiB | 
| After Width: | Height: | Size: 41 KiB | 
| After Width: | Height: | Size: 43 KiB | 
| After Width: | Height: | Size: 57 KiB | 
| After Width: | Height: | Size: 63 KiB | 
| After Width: | Height: | Size: 56 KiB | 
| After Width: | Height: | Size: 62 KiB | 
| After Width: | Height: | Size: 175 KiB | 
| After Width: | Height: | Size: 209 KiB | 
| After Width: | Height: | Size: 220 KiB | 
| After Width: | Height: | Size: 155 KiB | 
| After Width: | Height: | Size: 150 KiB | 
| After Width: | Height: | Size: 245 KiB | 
| After Width: | Height: | Size: 77 KiB | 
| After Width: | Height: | Size: 8.8 KiB | 
| @ -0,0 +1,752 @@ | |||||
|  | <!DOCTYPE html> | ||||
|  | <html lang="en"> | ||||
|  | 
 | ||||
|  | <head> | ||||
|  |     <meta charset="UTF-8"> | ||||
|  |     <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||||
|  |     <title>Odoo App 3 Index</title> | ||||
|  |     <!-- Bootstrap CSS --> | ||||
|  |     <link rel="stylesheet" | ||||
|  |           href="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css" | ||||
|  |           integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" | ||||
|  |           crossorigin="anonymous"> | ||||
|  |     <link rel="stylesheet" | ||||
|  |           href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css"> | ||||
|  |     <link rel="preconnect" href="https://fonts.googleapis.com"> | ||||
|  |     <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> | ||||
|  |     <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" | ||||
|  |           rel="stylesheet"> | ||||
|  | </head> | ||||
|  | <body> | ||||
|  | <section> | ||||
|  |     <div class="container" | ||||
|  |          style="font-family: 'Inter', sans-serif !important;background-color: #fff !important;"> | ||||
|  |         <div class="row"> | ||||
|  |             <div class="col-sm-12 col-md-12 col-lg-12 d-flex justify-content-between flex-wrap align-items-sm-center" | ||||
|  |                  style="border-bottom:1px solid rgba(0, 0, 0, 0.22)"> | ||||
|  |                 <div class="my-3"> | ||||
|  |                     <img src="assets/misc/Cybrosys R.png" | ||||
|  |                          style="width:auto !important; height:40px !important"> | ||||
|  |                 </div> | ||||
|  |                 <div class="my-3 d-flex align-items-center"> | ||||
|  |                     <div class="text-center" | ||||
|  |                          style="background-color:#017E84 !important;font-size: 0.8rem !important; color:#fff !important; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:50px !important; min-width: 120px !important;"> | ||||
|  |                         Community | ||||
|  |                     </div> | ||||
|  |                     <div class="text-center" | ||||
|  |                          style="background-color:#875A7B !important; color:#fff !important;font-size: 0.8rem !important; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:50px !important;min-width: 120px !important;"> | ||||
|  |                         Enterprise | ||||
|  |                     </div> | ||||
|  |                     <div class="text-center" | ||||
|  |                          style="background-color:#7C7BAD !important; color:#fff !important;font-size: 0.8rem !important; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:50px !important; min-width: 120px !important;"> | ||||
|  |                         Odoo.sh | ||||
|  |                     </div> | ||||
|  |                 </div> | ||||
|  |             </div> | ||||
|  |         </div> | ||||
|  |         <div class="row"> | ||||
|  |             <div class="col-sm-12 col-md-12 col-lg-12 text-center d-flex align-items-center flex-column" | ||||
|  |                  style="margin: 80px 0px !important;"> | ||||
|  |                 <h1 style="font-size: 2.8rem;font-weight: 700; color: | ||||
|  |                     #1A202C;"> | ||||
|  |                     Fleet Dashboard</h1> | ||||
|  |                 <p class="my-3 mb-4" | ||||
|  |                    style="max-width: 80%; font-weight: 400 !important; line-height: 32px; color: #718096;"> | ||||
|  |                     In this dashboard you can get all the details about fleet | ||||
|  |                     module. | ||||
|  |                 </p> | ||||
|  |                 <div style="width: 80%; margin-top: 3rem;"> | ||||
|  |                     <img src="assets/screenshots/hero-v17.gif" | ||||
|  |                          class="img-responsive" width="100%" height="auto"> | ||||
|  |                 </div> | ||||
|  |             </div> | ||||
|  |         </div> | ||||
|  |         <div class="container mt-5 mb-5"> | ||||
|  |             <div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-4"> | ||||
|  |                 <p class="m-0" | ||||
|  |                    style="font-weight: 600; font-size: 24px; color:#714b67 !important"> | ||||
|  |                     Key Highlights | ||||
|  |                 </p> | ||||
|  |             </div> | ||||
|  |             <div class="row py-4"> | ||||
|  |                 <div class="col-md-6 col-sm-12 p-3"> | ||||
|  |                     <div class="d-flex   h-100" style="padding: 30px;border-radius: 12px; | ||||
|  |                                     background: #FFF; | ||||
|  |                                     box-shadow: 1px 2px 3px 0px rgba(0, 0, 0, 0.25); "> | ||||
|  |                         <div style="width: 36px; height: 36px; border-radius: 50%; background: #714B67; | ||||
|  |                                     display: flex; justify-content: center; align-items: center; | ||||
|  |                                     margin-right: 10px; flex-shrink: 0;"> | ||||
|  |                             <i class="fa-solid fa-star  " | ||||
|  |                                style="color: #fff;font-size:14px;"></i> | ||||
|  |                         </div> | ||||
|  |                         <div> | ||||
|  |                             <p style="color: #1A202C;font-weight: 600; | ||||
|  |                                       font-size: 1.2rem; margin-bottom: 2px;"> | ||||
|  |                                 This module provides the detailed graph view of | ||||
|  |                                 Odoometer</p> | ||||
|  |                         </div> | ||||
|  |                     </div> | ||||
|  |                 </div> | ||||
|  |                 <div class="col-md-6 col-sm-12 p-3"> | ||||
|  |                     <div class="d-flex   h-100" style="padding: 30px;border-radius: 12px; | ||||
|  |                                     background: #FFF; | ||||
|  |                                     box-shadow: 1px 2px 3px 0px rgba(0, 0, 0, 0.25); "> | ||||
|  |                         <div style="width: 36px; height: 36px; border-radius: 50%; background: #714B67; | ||||
|  |                                     display: flex; justify-content: center; align-items: center; | ||||
|  |                                     margin-right: 10px; flex-shrink: 0;"> | ||||
|  |                             <i class="fa-solid fa-star  " | ||||
|  |                                style="color: #fff;font-size:14px;"></i> | ||||
|  |                         </div> | ||||
|  |                         <div> | ||||
|  |                             <p style="color: #1A202C;font-weight: 600; | ||||
|  |                                       font-size: 1.2rem; margin-bottom: 2px;"> | ||||
|  |                                 The module provides the view of the service cost | ||||
|  |                                 in last six months.</p> | ||||
|  |                         </div> | ||||
|  |                     </div> | ||||
|  |                 </div> | ||||
|  |                 <div class="col-md-6 col-sm-12 p-3"> | ||||
|  |                     <div class="d-flex   h-100" style="padding: 30px;border-radius: 12px; | ||||
|  |                                     background: #FFF; | ||||
|  |                                     box-shadow: 1px 2px 3px 0px rgba(0, 0, 0, 0.25); "> | ||||
|  |                         <div style="width: 36px; height: 36px; border-radius: 50%; background: #714B67; | ||||
|  |                                     display: flex; justify-content: center; align-items: center; | ||||
|  |                                     margin-right: 10px; flex-shrink: 0;"> | ||||
|  |                             <i class="fa-solid fa-star  " | ||||
|  |                                style="color: #fff;font-size:14px;"></i> | ||||
|  |                         </div> | ||||
|  |                         <div> | ||||
|  |                             <p style="color: #1A202C;font-weight: 600; | ||||
|  |                                       font-size: 1.2rem; margin-bottom: 2px;"> | ||||
|  |                                 Can see Drivers and Contracts information.</p> | ||||
|  |                         </div> | ||||
|  |                     </div> | ||||
|  |                 </div> | ||||
|  |                 <div class="col-md-6 col-sm-12 p-3"> | ||||
|  |                     <div class="d-flex   h-100" style="padding: 30px;border-radius: 12px; | ||||
|  |                                     background: #FFF; | ||||
|  |                                     box-shadow: 1px 2px 3px 0px rgba(0, 0, 0, 0.25); "> | ||||
|  |                         <div style="width: 36px; height: 36px; border-radius: 50%; background: #714B67; | ||||
|  |                                     display: flex; justify-content: center; align-items: center; | ||||
|  |                                     margin-right: 10px; flex-shrink: 0;"> | ||||
|  |                             <i class="fa-solid fa-star  " | ||||
|  |                                style="color: #fff;font-size:14px;"></i> | ||||
|  |                         </div> | ||||
|  |                         <div> | ||||
|  |                             <p style="color: #1A202C;font-weight: 600; | ||||
|  |                                       font-size: 1.2rem; margin-bottom: 2px;"> | ||||
|  |                                 User can get details about Vehicles, | ||||
|  |                                 Manufacturers, Models and Vehicle Status</p> | ||||
|  |                         </div> | ||||
|  |                     </div> | ||||
|  |                 </div> | ||||
|  |             </div> | ||||
|  |         </div> | ||||
|  |         <div class="container rounded"> | ||||
|  |             <ul class="nav nav-tabs d-flex" | ||||
|  |                 style="width: fit-content;margin: 0 auto;gap: 1rem;"> | ||||
|  |                 <li class="col text-center py-2 text-nowrap " | ||||
|  |                     style="color: #fff; background-color: #714B67;border-radius: 6px 6px 0px 0px;"> | ||||
|  |                     <a | ||||
|  |                             class="active show" data-toggle="tab" href="#tab1" | ||||
|  |                             style="color: #fff;font-weight: 500; background-color: #714B67; text-decoration: none;"> | ||||
|  |                         <i class="fa-regular fa-image  pr-2" | ||||
|  |                            style="color: #fff;"></i> | ||||
|  |                         Screenshots</a></li> | ||||
|  |                 <li class="col text-center py-2 text-nowrap " | ||||
|  |                     style="color: #fff; background-color: #714B67;border-radius: 6px 6px 0px 0px;"> | ||||
|  |                     <a | ||||
|  |                             data-toggle="tab" href="#tab2" | ||||
|  |                             style="color: #fff;font-weight: 500;  text-decoration: none;"><i | ||||
|  |                             class="fa-solid fa-star  pr-2" | ||||
|  |                             style="color: #fff;"></i>Features</a></li> | ||||
|  |                 <li class="col text-center py-2 text-nowrap " | ||||
|  |                     style="color: #fff; background-color: #714B67;border-radius: 6px 6px 0px 0px;"> | ||||
|  |                     <a | ||||
|  |                             data-toggle="tab" href="#tab3" | ||||
|  |                             style="color: #fff;font-weight: 500; text-decoration: none; background-color: #714B67;"><i | ||||
|  |                             class="fa-solid fa-book-open  pr-2" | ||||
|  |                             style="color: #fff;"></i>Released Notes</a></li> | ||||
|  |             </ul> | ||||
|  |             <div class="tab-content" | ||||
|  |                  style="background-color: rgba(121, 113, 119, 0.04);"> | ||||
|  |                 <div id="tab1" class="tab-pane fade in active show"> | ||||
|  |                     <div class="col-lg-12 py-2" | ||||
|  |                          style="padding: 1rem 4rem !important;"> | ||||
|  |                         <div | ||||
|  |                                 style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> | ||||
|  |                             <div class="row justify-content-center p-3 w-100 m-0"> | ||||
|  |                                 <img src="assets/screenshots/1.png" | ||||
|  |                                      class="img-responsive" width="100%" | ||||
|  |                                      height="auto"> | ||||
|  |                             </div> | ||||
|  |                             <div class="px-3"> | ||||
|  |                                 <h4 class="mt-2" | ||||
|  |                                     style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> | ||||
|  |                                     Dynamic And Clickable Dashboard Tiles | ||||
|  |                                 </h4> | ||||
|  |                                 <p> | ||||
|  |                                     Users can click the tiles, which display a | ||||
|  |                                     detailed view of the corresponding tiles. | ||||
|  |                                 </p> | ||||
|  |                             </div> | ||||
|  |                         </div> | ||||
|  |                     </div> | ||||
|  |                     <div class="col-lg-12 py-2" | ||||
|  |                          style="padding: 1rem 4rem !important;"> | ||||
|  |                         <div | ||||
|  |                                 style="border: 1px solid #d8d6d6; border-radius: 4px;  background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> | ||||
|  |                             <div class="row justify-content-center p-3 w-100 m-0"> | ||||
|  |                                 <img src="assets/screenshots/2.png" | ||||
|  |                                      class="img-responsive" width="100%" | ||||
|  |                                      height="auto"> | ||||
|  |                             </div> | ||||
|  |                             <div class="px-3"> | ||||
|  |                                 <h4 class="mt-2" | ||||
|  |                                     style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> | ||||
|  |                                     Dynamic Filters | ||||
|  |                                 </h4> | ||||
|  |                                 <p>Users can apply the filters based on their | ||||
|  |                                     requirements. | ||||
|  |                                 </p> | ||||
|  |                             </div> | ||||
|  |                         </div> | ||||
|  |                     </div> | ||||
|  |                     <div class="col-lg-12 py-2" | ||||
|  |                          style="padding: 1rem 4rem !important;"> | ||||
|  |                         <div | ||||
|  |                                 style="border: 1px solid #d8d6d6; border-radius: 4px;  background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> | ||||
|  |                             <div class="row justify-content-center p-3 w-100 m-0"> | ||||
|  |                                 <img src="assets/screenshots/3.png" | ||||
|  |                                      class="img-responsive" width="100%" | ||||
|  |                                      height="auto"> | ||||
|  |                             </div> | ||||
|  |                             <div class="px-3"> | ||||
|  |                                 <h4 class="mt-2" | ||||
|  |                                     style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> | ||||
|  |                                     Different Types of Graphs | ||||
|  |                                 </h4> | ||||
|  |                                 <p>The Fleet Dashboard has different types of graphs that will give you a complete analysis of the Fleet Module. | ||||
|  |                                 </p> | ||||
|  |                             </div> | ||||
|  |                         </div> | ||||
|  |                     </div> | ||||
|  |                     <div class="col-lg-12 py-2" | ||||
|  |                          style="padding: 1rem 4rem !important;"> | ||||
|  |                         <div | ||||
|  |                                 style="border: 1px solid #d8d6d6; border-radius: 4px;  background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> | ||||
|  |                             <div class="row justify-content-center p-3 w-100 m-0"> | ||||
|  |                                 <img src="assets/screenshots/4.png" | ||||
|  |                                      class="img-responsive" width="100%" | ||||
|  |                                      height="auto"> | ||||
|  |                             </div> | ||||
|  |                         </div> | ||||
|  |                     </div> | ||||
|  |                     <div class="col-lg-12 py-2" | ||||
|  |                          style="padding: 1rem 4rem !important;"> | ||||
|  |                         <div | ||||
|  |                                 style="border: 1px solid #d8d6d6; border-radius: 4px;  background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> | ||||
|  |                             <div class="row justify-content-center p-3 w-100 m-0"> | ||||
|  |                                 <img src="assets/screenshots/5.png" | ||||
|  |                                      class="img-responsive" width="100%" | ||||
|  |                                      height="auto"> | ||||
|  |                             </div> | ||||
|  |                             <div class="px-3"> | ||||
|  |                                 <h4 class="mt-2" | ||||
|  |                                     style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> | ||||
|  |                                     Vehicle Table | ||||
|  |                                 </h4> | ||||
|  |                                 <p>User can see all vehicles and its current status. | ||||
|  |                                 </p> | ||||
|  |                             </div> | ||||
|  |                         </div> | ||||
|  |                     </div> | ||||
|  |                 </div> | ||||
|  |                 <div id="tab2" class="tab-pane fade"> | ||||
|  |                     <div class="col-mg-12" style="padding: 1rem 4rem;"> | ||||
|  |                         <ul style="list-style: none; padding: 1rem 0;font-weight: 500;"> | ||||
|  |                             <li class="py-3" | ||||
|  |                                 style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> | ||||
|  |                                     <span style="margin-right: 12px;"><img | ||||
|  |                                             src="assets/misc/star (1) 2.svg" | ||||
|  |                                             alt="" | ||||
|  |                                             width="16px"></span>Community & | ||||
|  |                                 Enterprise Support | ||||
|  |                             </li> | ||||
|  |                             <li class="py-3" | ||||
|  |                                 style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> | ||||
|  |                                     <span style="margin-right: 12px;"><img | ||||
|  |                                             src="assets/misc/star (1) 2.svg" | ||||
|  |                                             alt="" | ||||
|  |                                             width="16px"></span>Additional | ||||
|  |                                 Configuration | ||||
|  |                             </li> | ||||
|  |                             <li class="py-3" | ||||
|  |                                 style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> | ||||
|  |                                     <span style="margin-right: 12px;"><img | ||||
|  |                                             src="assets/misc/star (1) 2.svg" | ||||
|  |                                             alt="" | ||||
|  |                                             width="16px"></span>Delivery Status | ||||
|  |                             </li> | ||||
|  |                         </ul> | ||||
|  |                     </div> | ||||
|  |                 </div> | ||||
|  |                 <div id="tab3" class="tab-pane fade"> | ||||
|  |                     <div class="col-mg-12 active" style="padding: 1rem 4rem;"> | ||||
|  |                         <div class="py-3" | ||||
|  |                              style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> | ||||
|  |                             <div class="d-flex mb-3" | ||||
|  |                                  style="font-size: 0.8rem; font-weight: 500;"><span>Version | ||||
|  |                                         17.0.1.0.0</span><span | ||||
|  |                                     class="px-2">|</span><span | ||||
|  |                                     style="color: #714B67;font-weight: 600;">Released on:16th September 2024</span> | ||||
|  |                             </div> | ||||
|  |                             <p class="m-0" | ||||
|  |                                style=" color:#718096!important; font-size:1rem !important;line-height: 28px;"> | ||||
|  |                                 Initial Commit for Delivery Status on Sale | ||||
|  |                                 Order</p> | ||||
|  |                         </div> | ||||
|  |                     </div> | ||||
|  |                 </div> | ||||
|  |             </div> | ||||
|  |         </div> | ||||
|  |         <div class="container mt-5"> | ||||
|  |             <div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-5"> | ||||
|  |                 <p class="m-0" | ||||
|  |                    style="font-weight: 600; font-size: 24px; color:#000 !important"> | ||||
|  |                     Related Products</p> | ||||
|  |             </div> | ||||
|  |         </div> | ||||
|  |         <div id="myCarousel" class="carousel slide py-3" data-ride="carousel"> | ||||
|  |             <div class="carousel-inner"> | ||||
|  |                 <div class="carousel-item active"> | ||||
|  |                     <div class="row p-4"> | ||||
|  |                         <div class="col"> | ||||
|  |                             <div class="p-3"> | ||||
|  |                                 <a href="https://apps.odoo.com/apps/modules/17.0/project_dashboard_odoo" | ||||
|  |                                    style="color: #000; text-decoration: none;"> | ||||
|  |                                     <div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> | ||||
|  |                                         <div style="width: 300px; "> | ||||
|  |                                             <img src="assets/modules/l1.png" | ||||
|  |                                                  alt="" width="100%" | ||||
|  |                                                  height="auto"> | ||||
|  | 
 | ||||
|  |                                         </div> | ||||
|  |                                         <p class="text-center pt-2 text-black font-weight-bold"> | ||||
|  |                                             Project Dashboard</p> | ||||
|  |                                     </div> | ||||
|  |                                 </a> | ||||
|  |                             </div> | ||||
|  |                         </div> | ||||
|  |                         <div class="col"> | ||||
|  |                             <div class="p-3"> | ||||
|  |                                 <a href="https://apps.odoo.com/apps/modules/17.0/odoo_dynamic_dashboard" | ||||
|  |                                    style="color: #000; text-decoration: none;"> | ||||
|  |                                     <div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> | ||||
|  |                                         <div style="width: 300px; "> | ||||
|  |                                             <img src="assets/modules/l2.png" | ||||
|  |                                                  alt="" width="100%" | ||||
|  |                                                  height="auto"> | ||||
|  | 
 | ||||
|  |                                         </div> | ||||
|  |                                         <p class="text-center pt-2 text-black font-weight-bold"> | ||||
|  |                                             Odoo Dynamic Dashboard</p> | ||||
|  |                                     </div> | ||||
|  |                                 </a> | ||||
|  |                             </div> | ||||
|  |                         </div> | ||||
|  |                         <div class="col"> | ||||
|  |                             <div class="p-3"> | ||||
|  |                                 <a href="https://apps.odoo.com/apps/modules/17.0/crm_dashboard" | ||||
|  |                                    style="color: #000; text-decoration: none;"> | ||||
|  |                                     <div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> | ||||
|  |                                         <div style="width: 300px; "> | ||||
|  |                                             <img src="assets/modules/l3.png" | ||||
|  |                                                  alt="" width="100%" | ||||
|  |                                                  height="auto"> | ||||
|  | 
 | ||||
|  |                                         </div> | ||||
|  |                                         <p class="text-center pt-2 text-black font-weight-bold"> | ||||
|  |                                             CRM Dashboard</p> | ||||
|  |                                     </div> | ||||
|  |                                 </a> | ||||
|  |                             </div> | ||||
|  |                         </div> | ||||
|  |                     </div> | ||||
|  |                 </div> | ||||
|  |                 <div class="carousel-item"> | ||||
|  |                     <div class="row p-4"> | ||||
|  |                         <div class="col"> | ||||
|  |                             <div class="p-3"> | ||||
|  |                                 <a href="https://apps.odoo.com/apps/modules/17.0/odoo_accounting_dashboard" | ||||
|  |                                    style="color: #000; text-decoration: none;"> | ||||
|  |                                     <div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> | ||||
|  |                                         <div style="width: 300px; "> | ||||
|  |                                             <img src="assets/modules/l4.png" | ||||
|  |                                                  alt="" width="100%" | ||||
|  |                                                  height="auto"> | ||||
|  | 
 | ||||
|  |                                         </div> | ||||
|  |                                         <p class="text-center pt-2 text-black font-weight-bold"> | ||||
|  |                                             Accounting Dashboard Odoo17</p> | ||||
|  |                                     </div> | ||||
|  |                                 </a> | ||||
|  |                             </div> | ||||
|  |                         </div> | ||||
|  |                         <div class="col"> | ||||
|  |                             <div class="p-3"> | ||||
|  |                                 <a href="https://apps.odoo.com/apps/modules/17.0/dashboard_pos" | ||||
|  |                                    style="color: #000; text-decoration: none;"> | ||||
|  |                                     <div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> | ||||
|  |                                         <div style="width: 300px;"> | ||||
|  |                                             <img src="assets/modules/l5.png" | ||||
|  |                                                  alt="" width="100%" | ||||
|  |                                                  height="auto"> | ||||
|  | 
 | ||||
|  |                                         </div> | ||||
|  |                                         <p class="text-center pt-2 text-black font-weight-bold"> | ||||
|  |                                             POS Dashboard</p> | ||||
|  |                                     </div> | ||||
|  |                                 </a> | ||||
|  |                             </div> | ||||
|  |                         </div> | ||||
|  |                         <div class="col"> | ||||
|  |                             <div class="p-3"> | ||||
|  |                                 <a href="https://apps.odoo.com/apps/modules/17.0/inventory_stock_dashboard_odoo" | ||||
|  |                                    style="color: #000; text-decoration: none;"> | ||||
|  |                                     <div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> | ||||
|  |                                         <div style="width: 300px;"> | ||||
|  |                                             <img src="assets/modules/l6.png" | ||||
|  |                                                  alt="" width="100%" | ||||
|  |                                                  height="auto"> | ||||
|  |                                         </div> | ||||
|  |                                         <p class="text-center pt-2 text-black font-weight-bold"> | ||||
|  |                                             Inventory Dashboard Odoo 17</p> | ||||
|  |                                     </div> | ||||
|  |                                 </a> | ||||
|  |                             </div> | ||||
|  |                         </div> | ||||
|  |                     </div> | ||||
|  |                 </div> | ||||
|  |             </div> | ||||
|  |             <a class="carousel-control-prev" href="#myCarousel" | ||||
|  |                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="#myCarousel" | ||||
|  |                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 class="container mt-5"> | ||||
|  |             <div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-4"> | ||||
|  |                 <p class="m-0" | ||||
|  |                    style="font-weight: 600; font-size: 24px; color:#000 !important"> | ||||
|  |                     Our Services</p> | ||||
|  | 
 | ||||
|  |             </div> | ||||
|  |         </div> | ||||
|  |         <div class="container my-5"> | ||||
|  |             <div class="row py-3"> | ||||
|  |                 <div class="col-md-4 col-sm-6 px-4 py-4"> | ||||
|  |                     <div | ||||
|  |                             style="background-color: #fff; padding: 25px; text-align: center;  box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> | ||||
|  |                         <div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> | ||||
|  |                             <div style="background-color:#13EA36 ; border-radius: 50%; padding: 15px;    width: 68px; | ||||
|  |                                     height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> | ||||
|  |                                 <img src="assets/icons/cogs.png" | ||||
|  |                                      alt="service-icon" width="38px" | ||||
|  |                                      height="auto"> | ||||
|  |                             </div> | ||||
|  |                         </div> | ||||
|  |                         <p style="margin-top: 20px; font-weight: bold;">Odoo | ||||
|  |                             Customization</p> | ||||
|  |                     </div> | ||||
|  |                 </div> | ||||
|  |                 <div class="col-md-4 col-sm-6 px-4 py-4"> | ||||
|  |                     <div | ||||
|  |                             style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> | ||||
|  |                         <div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> | ||||
|  |                             <div style="background-color:#DBC711; border-radius: 50%; padding: 15px;    width: 68px; | ||||
|  |                                     height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> | ||||
|  |                                 <img src="assets/icons/wrench.png" | ||||
|  |                                      alt="service-icon" width="38px" | ||||
|  |                                      height="auto"> | ||||
|  |                             </div> | ||||
|  |                         </div> | ||||
|  |                         <p style="margin-top: 20px; font-weight: bold;">Odoo | ||||
|  |                             Implementation</p> | ||||
|  |                     </div> | ||||
|  |                 </div> | ||||
|  |                 <div class="col-md-4 col-sm-6 px-4 py-4"> | ||||
|  |                     <div | ||||
|  |                             style="background-color: #fff; padding: 25px; text-align: center;  box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative; border-radius: 4px;"> | ||||
|  |                         <div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> | ||||
|  |                             <div style="background-color:#FF6B6B ; border-radius: 50%; padding: 15px;    width: 68px; | ||||
|  |                                     height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> | ||||
|  |                                 <img src="assets/icons/lifebuoy.png" | ||||
|  |                                      alt="service-icon" width="38px" | ||||
|  |                                      height="auto"> | ||||
|  |                             </div> | ||||
|  |                         </div> | ||||
|  |                         <p style="margin-top: 20px; font-weight: bold;">Odoo | ||||
|  |                             Support</p> | ||||
|  |                     </div> | ||||
|  |                 </div> | ||||
|  |                 <div class="col-md-4 col-sm-6 px-4 py-4"> | ||||
|  |                     <div | ||||
|  |                             style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative; border-radius: 4px;"> | ||||
|  |                         <div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> | ||||
|  |                             <div style="background-color:#FFA801 ; border-radius: 50%; padding: 15px;    width: 68px; | ||||
|  |                                     height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> | ||||
|  |                                 <img src="assets/icons/user.png" | ||||
|  |                                      alt="service-icon" width="38px" | ||||
|  |                                      height="auto"> | ||||
|  |                             </div> | ||||
|  |                         </div> | ||||
|  |                         <p style="margin-top: 20px; font-weight: bold;">Hire | ||||
|  |                             Odoo Developer</p> | ||||
|  |                     </div> | ||||
|  |                 </div> | ||||
|  |                 <div class="col-md-4 col-sm-6 px-4 py-4"> | ||||
|  |                     <div | ||||
|  |                             style="background-color: #fff; padding: 25px; text-align: center;  box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative; border-radius: 4px;"> | ||||
|  | 
 | ||||
|  |                         <div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> | ||||
|  |                             <div style="background-color:#54A0FF; border-radius: 50%; padding: 15px;    width: 68px; | ||||
|  |                                     height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> | ||||
|  |                                 <img src="assets/icons/puzzle.png" | ||||
|  |                                      alt="service-icon" width="38px" | ||||
|  |                                      height="auto"> | ||||
|  |                             </div> | ||||
|  |                         </div> | ||||
|  |                         <p style="margin-top: 20px; font-weight: bold;">Odoo | ||||
|  |                             Integration</p> | ||||
|  |                     </div> | ||||
|  |                 </div> | ||||
|  |                 <div class="col-md-4 col-sm-6 px-4 py-4"> | ||||
|  |                     <div | ||||
|  |                             style="background-color: #fff; padding: 25px; text-align: center;  box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> | ||||
|  |                         <div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> | ||||
|  |                             <div style="background-color:#6D7680 ; border-radius: 50%; padding: 15px;    width: 68px; | ||||
|  |                                     height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> | ||||
|  |                                 <img src="assets/icons/update.png" | ||||
|  |                                      alt="service-icon" width="38px" | ||||
|  |                                      height="auto"> | ||||
|  |                             </div> | ||||
|  |                         </div> | ||||
|  |                         <p style="margin-top: 20px; font-weight: bold;">Odoo | ||||
|  |                             Migration</p> | ||||
|  |                     </div> | ||||
|  |                 </div> | ||||
|  |                 <div class="col-md-4 col-sm-6 px-4 py-4"> | ||||
|  |                     <div | ||||
|  |                             style="background-color: #fff; padding: 25px; text-align: center;  box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> | ||||
|  |                         <div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> | ||||
|  |                             <div style="background-color:#786FA6 ; border-radius: 50%; padding: 15px;    width: 68px; | ||||
|  |                                     height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> | ||||
|  |                                 <img src="assets/icons/consultation.png" | ||||
|  |                                      alt="service-icon" width="38px" | ||||
|  |                                      height="auto"> | ||||
|  |                             </div> | ||||
|  |                         </div> | ||||
|  |                         <p style="margin-top: 20px; font-weight: bold;">Odoo | ||||
|  |                             Consultancy</p> | ||||
|  |                     </div> | ||||
|  |                 </div> | ||||
|  |                 <div class="col-md-4 col-sm-6 px-4 py-4"> | ||||
|  |                     <div | ||||
|  |                             style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;position: relative;border-radius: 4px;"> | ||||
|  |                         <div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> | ||||
|  |                             <div style="background-color:#F8A5C2 ; border-radius: 50%; padding: 15px;    width: 68px; | ||||
|  |                                     height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> | ||||
|  |                                 <img src="assets/icons/training.png" | ||||
|  |                                      alt="service-icon" width="38px" | ||||
|  |                                      height="auto"> | ||||
|  |                             </div> | ||||
|  |                         </div> | ||||
|  |                         <p style="margin-top: 20px; font-weight: bold;">Odoo | ||||
|  |                             Implementation</p> | ||||
|  |                     </div> | ||||
|  |                 </div> | ||||
|  |                 <div class="col-md-4 col-sm-6 px-4 py-4"> | ||||
|  |                     <div | ||||
|  |                             style="background-color: #fff; padding: 25px; text-align: center;  box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> | ||||
|  |                         <div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> | ||||
|  |                             <div style="background-color:#E6BE26; border-radius: 50%; padding: 15px;    width: 68px; | ||||
|  |                                     height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> | ||||
|  |                                 <img src="assets/icons/license.png" | ||||
|  |                                      alt="service-icon" width="38px" | ||||
|  |                                      height="auto"> | ||||
|  |                             </div> | ||||
|  |                         </div> | ||||
|  |                         <p style="margin-top: 20px; font-weight: bold;">Odoo | ||||
|  |                             Licensing Consultancy</p> | ||||
|  |                     </div> | ||||
|  |                 </div> | ||||
|  |             </div> | ||||
|  |         </div> | ||||
|  |         <div class="container mt-5"> | ||||
|  |             <div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-4"> | ||||
|  |                 <p class="m-0" | ||||
|  |                    style="font-weight: 600; font-size: 24px; color:#000 !important"> | ||||
|  |                     Our Industries</p> | ||||
|  | 
 | ||||
|  |             </div> | ||||
|  |         </div> | ||||
|  |         <div class="container"> | ||||
|  |             <div class="row my-5 py-4"> | ||||
|  |                 <div class="col-md-3 col-sm-6 p-0"> | ||||
|  |                     <div class="d-flex flex-column h-100 " | ||||
|  |                          style="border-right: 1px solid rgb(209, 209, 209); border-bottom: 1px solid  rgb(209, 209, 209); padding: 30px; box-shadow: 6px 0 10px rgba(228, 227, 227, 0.373);"> | ||||
|  |                         <img src="assets/icons/trading-black.png" width="42px" | ||||
|  |                              height="auto" alt=""> | ||||
|  |                         <p style="color: #714B67;font-weight: 600; margin-top: 10px; | ||||
|  |                            font-size: 1.2rem; margin-bottom: 2px;">Trading</p> | ||||
|  |                         <p>Easily procure and sell your products</p> | ||||
|  |                     </div> | ||||
|  |                 </div> | ||||
|  |                 <div class="col-md-3 col-sm-6  p-0"> | ||||
|  |                     <div class="d-flex flex-column h-100" | ||||
|  |                          style="border-right: 1px solid rgb(209, 209, 209);border-bottom: 1px solid  rgb(209, 209, 209); padding: 30px;"> | ||||
|  |                         <img src="assets/icons/pos-black.png" width="42px" | ||||
|  |                              height="auto" alt=""> | ||||
|  |                         <p style="color: #714B67;font-weight: 600; margin-top: 10px; | ||||
|  |                             font-size: 1.2rem; margin-bottom: 2px;">POS</p> | ||||
|  |                         <p>Easy configuration and convivial experience</p> | ||||
|  |                     </div> | ||||
|  |                 </div> | ||||
|  |                 <div class="col-md-3 col-sm-6  p-0"> | ||||
|  |                     <div class="d-flex flex-column h-100" | ||||
|  |                          style="border-right: 1px solid  rgb(209, 209, 209);border-bottom: 1px solid   rgba(0, 0, 0, 0.2); padding: 30px; box-shadow: 0 5px 10px  rgba(228, 227, 227, 0.373)"> | ||||
|  |                         <img src="assets/icons/education-black.png" width="42px" | ||||
|  |                              height="auto" alt=""> | ||||
|  |                         <p style="color: #714B67;font-weight: 600; margin-top: 10px; | ||||
|  |                             font-size: 1.2rem; margin-bottom: 2px;"> | ||||
|  |                             Education</p> | ||||
|  |                         <p>A platform for educational management</p> | ||||
|  |                     </div> | ||||
|  |                 </div> | ||||
|  |                 <div class="col-md-3 col-sm-6  p-0"> | ||||
|  |                     <div class="d-flex flex-column h-100" | ||||
|  |                          style="border-bottom: 1px solid  rgb(209, 209, 209); padding: 30px; "> | ||||
|  |                         <img src="assets/icons/manufacturing-black.png" | ||||
|  |                              width="42px" height="auto" alt=""> | ||||
|  |                         <p style="color: #714B67;font-weight: 600; margin-top: 10px; | ||||
|  |                             font-size: 1.2rem; margin-bottom: 2px;"> | ||||
|  |                             Manufacturing</p> | ||||
|  |                         <p>Plan, track and schedule your operations</p> | ||||
|  |                     </div> | ||||
|  |                 </div> | ||||
|  |                 <div class="col-md-3 col-sm-6 p-0"> | ||||
|  |                     <div class="d-flex flex-column h-100" | ||||
|  |                          style="border-right: 1px solid  rgb(209, 209, 209); padding: 30px;"> | ||||
|  |                         <img src="assets/icons/ecom-black.png" width="42px" | ||||
|  |                              height="auto" alt=""> | ||||
|  |                         <p style="color: #714B67;font-weight: 600; margin-top: 10px; | ||||
|  |                             font-size: 1.2rem; margin-bottom: 2px;">E-commerce & | ||||
|  |                             Website</p> | ||||
|  |                         <p>Mobile friendly, awe-inspiring product pages</p> | ||||
|  |                     </div> | ||||
|  |                 </div> | ||||
|  |                 <div class="col-md-3 col-sm-6   p-0"> | ||||
|  |                     <div class="d-flex flex-column h-100" | ||||
|  |                          style="border-right: 1px solid  rgb(209, 209, 209); padding: 30px;box-shadow: 0 -5px 10px  rgba(228, 227, 227, 0.373);"> | ||||
|  |                         <img src="assets/icons/service-black.png" width="42px" | ||||
|  |                              height="auto" alt=""> | ||||
|  |                         <p style="color: #714B67;font-weight: 600; margin-top: 10px; | ||||
|  |                             font-size: 1.2rem; margin-bottom: 2px;">Service | ||||
|  |                             Management</p> | ||||
|  |                         <p>Keep track of services and invoice</p> | ||||
|  |                     </div> | ||||
|  |                 </div> | ||||
|  |                 <div class="col-md-3 col-sm-6    p-0"> | ||||
|  |                     <div class="d-flex flex-column h-100" | ||||
|  |                          style="border-right: 1px solid  rgb(209, 209, 209); padding: 30px; "> | ||||
|  |                         <img src="assets/icons/restaurant-black.png" | ||||
|  |                              width="42px" height="auto" alt=""> | ||||
|  |                         <p style="color: #714B67;font-weight: 600; margin-top: 10px; | ||||
|  |                             font-size: 1.2rem; margin-bottom: 2px;"> | ||||
|  |                             Restaurant</p> | ||||
|  |                         <p>Run your bar or restaurant methodically</p> | ||||
|  |                     </div> | ||||
|  |                 </div> | ||||
|  |                 <div class="col-md-3 col-sm-6   p-0"> | ||||
|  |                     <div class="d-flex flex-column h-100" | ||||
|  |                          style=" padding: 30px;box-shadow: -5px 0 10px  rgba(228, 227, 227, 0.373);"> | ||||
|  |                         <img src="assets/icons/hotel-black.png" width="42px" | ||||
|  |                              height="auto" alt=""> | ||||
|  |                         <p style="color: #714B67;font-weight: 600; margin-top: 10px; | ||||
|  |                             font-size: 1.2rem; margin-bottom: 2px;">Hotel | ||||
|  |                             Management</p> | ||||
|  |                         <p>An all-inclusive hotel management application</p> | ||||
|  |                     </div> | ||||
|  |                 </div> | ||||
|  |             </div> | ||||
|  |         </div> | ||||
|  |         <div class="container mt-5"> | ||||
|  |             <div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-5"> | ||||
|  |                 <p class="m-0" | ||||
|  |                    style="font-weight: 600; font-size: 24px; color:#000 !important"> | ||||
|  |                     Support</p> | ||||
|  |             </div> | ||||
|  |         </div> | ||||
|  |         <div class="container my-5"> | ||||
|  |             <div class="row" style="background-color: #FFFAFE;"> | ||||
|  |                 <div class="col-md-6 pb-4  d-flex align-items-center justify-content-center" | ||||
|  |                      style="border-right: 1px solid #D9D9D9;"> | ||||
|  |                     <div style="padding: 30px;"> | ||||
|  |                         <div class="d-flex align-items-center"> | ||||
|  |                             <img src="assets/misc/support (1) 1.svg" alt="" | ||||
|  |                                  width="60px" style="margin-right: 12px;"> | ||||
|  |                             <div style="padding: 0px 8px;"> | ||||
|  |                                     <span | ||||
|  |                                             style="color: #714B67;font-size: 24px;font-weight: 600;padding-bottom: 1rem;">Need | ||||
|  |                                         Help?</span> | ||||
|  |                                 <p class="m-0" style="color:#718096;">Got | ||||
|  |                                     questions or need help? Get in touch.</p> | ||||
|  |                                 <div style="font-weight: 400;"><span><img | ||||
|  |                                         src="assets/misc/support-email.svg" | ||||
|  |                                         alt="" | ||||
|  |                                         width="18px" | ||||
|  |                                         style="filter: invert(1);margin-right: 0.8rem;"></span>odoo@cybrosys.com | ||||
|  |                                 </div> | ||||
|  |                             </div> | ||||
|  |                         </div> | ||||
|  |                     </div> | ||||
|  |                 </div> | ||||
|  |                 <div class="col-md-6 pb-4 d-flex align-items-center justify-content-center"> | ||||
|  |                     <div style="padding: 30px;"> | ||||
|  |                         <div class="d-flex align-items-center"> | ||||
|  |                             <img src="assets/misc/whatsapp 1.svg" alt="" | ||||
|  |                                  width="60px" style="margin-right: 12px;"> | ||||
|  |                             <div> | ||||
|  |                                 <span style="color: #714B67;font-size: 24px;font-weight: 600;">WhatsApp</span> | ||||
|  |                                 <p class="m-0" style="color:#718096;">Say hi to | ||||
|  |                                     us on WhatsApp!</p> | ||||
|  |                                 <div style="font-weight: 400; font-size: 16px;"><span><img | ||||
|  |                                         src="assets/misc/phone.svg" | ||||
|  |                                         alt="" width="14px" | ||||
|  |                                         style="filter: invert(1); margin-right: 0.8rem;"></span>+91 | ||||
|  |                                     99456767686 | ||||
|  |                                 </div> | ||||
|  |                             </div> | ||||
|  |                         </div> | ||||
|  |                     </div> | ||||
|  |                 </div> | ||||
|  |             </div> | ||||
|  |         </div> | ||||
|  |     </div> | ||||
|  | </section> | ||||
|  | <!-- Optional JavaScript --> | ||||
|  | <!-- jQuery first, then Popper.js, then Bootstrap JS --> | ||||
|  | <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> | ||||
|  | <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script> | ||||
|  | </body> | ||||
|  | </html> | ||||
| @ -0,0 +1,222 @@ | |||||
|  | .fleet_select{ | ||||
|  |     width:200px; | ||||
|  |     margin-right:10px; | ||||
|  |     margin-left:10px; | ||||
|  |     background-color:#827c93; !important; | ||||
|  |     color: #fff; | ||||
|  |     padding-left:7px; | ||||
|  | } | ||||
|  | .content_fleet_external{ | ||||
|  |     transition: 0.5s; | ||||
|  |     box-shadow: 5px 5px 30px; | ||||
|  | } | ||||
|  | .card-body{ | ||||
|  |     margin-bottom:10px; | ||||
|  | } | ||||
|  | .content_fleet_external:hover{ | ||||
|  |     transform: translateY(-5px); | ||||
|  |     box-shadow: 10px 10px 10px; | ||||
|  |     cursor:pointer; | ||||
|  | } | ||||
|  | .fleet_content{ | ||||
|  |     height:auto; | ||||
|  | } | ||||
|  | .fleet_main{ | ||||
|  |     margin-top: 40px; | ||||
|  |     margin-left: 2%; | ||||
|  |     width:96%; | ||||
|  | } | ||||
|  | .fleet_content_main{ | ||||
|  |     margin-left:10px; | ||||
|  |     height:24vh; | ||||
|  | } | ||||
|  | .fleet_content_graph{ | ||||
|  |     margin-left:10px; | ||||
|  |     height:24vh; | ||||
|  | } | ||||
|  | .fleet_content_graph_inner{ | ||||
|  |     height:20vh; | ||||
|  | } | ||||
|  | .fleet_img_content{ | ||||
|  |     width=170px; | ||||
|  |     height:170px; | ||||
|  |     margin-left:30px; | ||||
|  |     margin-top:10px; | ||||
|  | } | ||||
|  | .fleet_other_info{ | ||||
|  |     height:14vh; | ||||
|  |     margin-left:10px; | ||||
|  |     margin-bottom:10px; | ||||
|  | } | ||||
|  | .o_action_manager { | ||||
|  |     overflow: auto !important; | ||||
|  | } | ||||
|  | .oh_dashboards{ | ||||
|  |     overflow-y: scroll; | ||||
|  |     -moz-overflow-y: scroll; | ||||
|  |     -webkit-overflow-y: scroll; | ||||
|  |     -ms-overflow-y: scroll; | ||||
|  |     -o-overflow-y: scroll; | ||||
|  |     vertical-align: middle; | ||||
|  |     overflow-x: clip; | ||||
|  |     max-height: -webkit-fill-available; | ||||
|  |     background-color:#FFF; | ||||
|  | } | ||||
|  | #table_status { | ||||
|  |     width: 80%; | ||||
|  |     margin-left: 49px; | ||||
|  |     margin-top: 30px; | ||||
|  |     font-family: Arial, Helvetica, sans-serif; | ||||
|  | } | ||||
|  | #table_status tr:nth-child(even){background-color: #f2f2f2;} | ||||
|  | #table_status tr:hover {background-color: #ddd;} | ||||
|  | .fleet-pill { | ||||
|  |     align-items: center; | ||||
|  |     font-family: "Open Sans", Arial, Verdana, sans-serif; | ||||
|  |     font-weight: bold; | ||||
|  |     font-size: 11px; | ||||
|  |     display: inline-block; | ||||
|  |     height: 100%; | ||||
|  |     white-space: nowrap; | ||||
|  |     width: auto; | ||||
|  |     position: relative; | ||||
|  |     border-radius: 100px; | ||||
|  |     line-height: 1; | ||||
|  |     overflow: hidden; | ||||
|  |     padding: 0px 8px 0px 7px; | ||||
|  |     text-overflow: ellipsis; | ||||
|  |     line-height: 1.25rem; | ||||
|  |     color: #fff; | ||||
|  |     word-break: break-word; | ||||
|  |     background: #0253e8; | ||||
|  | } | ||||
|  | .fleet_content_titles { | ||||
|  |     text-align: center; | ||||
|  |     margin-top: 74px; | ||||
|  |     margin-left: -18px; | ||||
|  | } | ||||
|  | .align_center{ | ||||
|  |     text-align:center; | ||||
|  | } | ||||
|  | .fleet_container { | ||||
|  |   padding: 50px 0; | ||||
|  |   text-align: center; | ||||
|  | } | ||||
|  | .chart { | ||||
|  |   position: relative; | ||||
|  |   display: inline-block; | ||||
|  |   color: #999; | ||||
|  |   font-size: 20px; | ||||
|  |   text-align: center; | ||||
|  |   margin-top: -43px; | ||||
|  |   margin-left:-4px; | ||||
|  |   } | ||||
|  | .chart figcaption { | ||||
|  |     padding: 50px 25px; | ||||
|  |     width: 190px; | ||||
|  |     height: 190px; | ||||
|  |     border: 20px solid #f0e4eb; | ||||
|  |     border-radius: 100px; | ||||
|  |     line-height: 50px; | ||||
|  | } | ||||
|  | .chart img { | ||||
|  |   position: absolute; | ||||
|  |   max-width: 100px; | ||||
|  |   max-height: 100px; | ||||
|  |   background: white; | ||||
|  | } | ||||
|  | .img_ext { | ||||
|  |   top: 50px; | ||||
|  |   left: 45px; | ||||
|  | } | ||||
|  | .chart svg { | ||||
|  |   position: absolute; | ||||
|  |   top: 0; | ||||
|  |   left: 0; | ||||
|  | } | ||||
|  | .outer { | ||||
|  |   fill: transparent; | ||||
|  |   stroke: #333; | ||||
|  |   stroke-width: 20; | ||||
|  |   stroke-dasharray: 534; | ||||
|  |   transition: stroke-dashoffset 2s; | ||||
|  |   -webkit-animation-play-state: running; | ||||
|  |   /* firefox bug fix - won't rotate at 90deg angles */ | ||||
|  |   -moz-transform: rotate(-89deg) translateX(-190px); | ||||
|  | } | ||||
|  | .chart:hover .outer { | ||||
|  |   stroke-dashoffset: 534 !important; | ||||
|  |   -webkit-animation-play-state: paused; | ||||
|  | } | ||||
|  | /* END Circle colors and graphic positions */ | ||||
|  | .chart[data-percent='75'] .outer { | ||||
|  |   stroke-dashoffset: 133; | ||||
|  |   -webkit-animation: show75 3s; | ||||
|  |   animation: show75 3s; | ||||
|  | } | ||||
|  | .fleet_icon-div{ | ||||
|  |     font-size:25px; | ||||
|  |     color:#fff; | ||||
|  |     background-color:#ffac00; | ||||
|  |     height:14vh; | ||||
|  | } | ||||
|  | .fleet_icon-content{ | ||||
|  |     height:24vh; | ||||
|  |     font-size:40px; | ||||
|  |     } | ||||
|  | .fleet_icon-content i{ | ||||
|  |     margin-top:9vh; | ||||
|  |     color:#fff; | ||||
|  | } | ||||
|  | .fleet_border-content{ | ||||
|  |     background-color: #fff; | ||||
|  |     border: solid; | ||||
|  |     border-width: 1px; | ||||
|  | } | ||||
|  | @-webkit-keyframes show75 { | ||||
|  |   from { | ||||
|  |     stroke-dashoffset: 537; | ||||
|  |   } | ||||
|  |   to { | ||||
|  |     stroke-dashoffset: 134; | ||||
|  |   } | ||||
|  | } | ||||
|  | @keyframes show75 { | ||||
|  |   from { | ||||
|  |     stroke-dashoffset: 537; | ||||
|  |   } | ||||
|  |   to { | ||||
|  |     stroke-dashoffset: 124; | ||||
|  |   } | ||||
|  | } | ||||
|  | @media (min-width: 1374px) and (max-width: 1873px){ | ||||
|  |     .fleet_content_graph{ | ||||
|  |         width:64% !important; | ||||
|  |     } | ||||
|  |     .fleet_content_main{ | ||||
|  |          width:31.5% !important; | ||||
|  |     } | ||||
|  |     .fleet_img_content{ | ||||
|  |         margin-left:0px; | ||||
|  |     } | ||||
|  | } | ||||
|  | @media (min-width: 1024px) and (max-width: 1374px){ | ||||
|  |     .fleet_content_graph{ | ||||
|  |         width:64% !important; | ||||
|  |     } | ||||
|  |     .fleet_content_main{ | ||||
|  |         width:31.5% !important; | ||||
|  |     } | ||||
|  |     .fleet_img_content{ | ||||
|  |         width:96%; | ||||
|  |         margin-left:0px; | ||||
|  |         height:auto !important; | ||||
|  |     } | ||||
|  |     .card-body:first-child{ | ||||
|  | 
 | ||||
|  |         display:flex; | ||||
|  |         align-items:center; | ||||
|  |         max-width:110px; | ||||
|  | 
 | ||||
|  |     } | ||||
|  |  } | ||||
| @ -0,0 +1,269 @@ | |||||
|  | /** @odoo-module **/ | ||||
|  | import {Component,useState,useRef,onWillStart,onMounted} from "@odoo/owl"; | ||||
|  | import {registry} from "@web/core/registry"; | ||||
|  | import { jsonrpc } from "@web/core/network/rpc_service"; | ||||
|  | import { useService } from "@web/core/utils/hooks"; | ||||
|  | /** | ||||
|  |  * DashboardAction component handles the display and interaction | ||||
|  |  * of the fleet management dashboard. It manages data fetching, | ||||
|  |  * filtering, and displaying charts and lists. | ||||
|  |  */ | ||||
|  | export class DashboardAction extends Component { | ||||
|  |      /** | ||||
|  |      * Initializes component state and fetches initial data. | ||||
|  |      */ | ||||
|  |     async setup(){ | ||||
|  |         this.state = useState({ | ||||
|  |            flag:null, | ||||
|  |            admin_odometer_list:[], | ||||
|  |            admin_fleet_cost_list:[], | ||||
|  |            admin_recurring_list:[], | ||||
|  |            fleet_vehicle_list:[], | ||||
|  |            fleet_model_list:[], | ||||
|  |            fleet_manufacture_list:[], | ||||
|  |            odometer_value:null, | ||||
|  |            service_value:null, | ||||
|  |            recurring_value:null, | ||||
|  |            all_vehicles:null, | ||||
|  |            fleet_state:[], | ||||
|  |            manufacture_list:[], | ||||
|  |            model_list:[], | ||||
|  |            data: { | ||||
|  |             "drivers": [], | ||||
|  |             "vehicles": [], | ||||
|  |             "manufactures": [] | ||||
|  |            } | ||||
|  |         }) | ||||
|  |         this.filter = useRef("filters") | ||||
|  |         this.fleet_main = useRef("fleet_main") | ||||
|  |         this.action = useService("action"); | ||||
|  |         this.fetch_data(); | ||||
|  |         this.state.data = await this.render_filter(); | ||||
|  |     } | ||||
|  |     /** | ||||
|  |      * Handles filter change events and updates the dashboard data. | ||||
|  |      */ | ||||
|  |     _onchangeFilter(){ | ||||
|  |         var self = this; | ||||
|  |         jsonrpc('/fleet_advanced_dashboard/filter_data', { | ||||
|  |             'data':{ | ||||
|  |                 "date": this.filter.el.querySelector('#date_filter').value, | ||||
|  |                 'vehicle':this.filter.el.querySelector('#vehicle_selection').value, | ||||
|  |                 'driver':this.filter.el.querySelector('#driver_selection').value, | ||||
|  |                 'manufacturer':this.filter.el.querySelector('#manufacturers_selection').value | ||||
|  |             } | ||||
|  |         }).then(function(result){ | ||||
|  |             self.state.admin_odometer_list = result[3], | ||||
|  |             self.state.admin_fleet_cost_list = result[4], | ||||
|  |             self.state.admin_recurring_list = result[5], | ||||
|  |             self.state.fleet_vehicle_list = result[6], | ||||
|  |             self.state.fleet_model_list = result[7], | ||||
|  |             self.state.fleet_manufacture_list=result[8], | ||||
|  |             self.state.odometer_value=result[0], | ||||
|  |             self.state.service_value=result[1], | ||||
|  |             self.state.recurring_value=result[2] | ||||
|  |         }); | ||||
|  |     } | ||||
|  | 
 | ||||
|  |     /** | ||||
|  |      * Opens the Manufacturers view based on the current state. | ||||
|  |      */ | ||||
|  |     _onClickManufacturers(){ | ||||
|  |         if (this.state.flag == 1) { | ||||
|  |              this.OpenVehicleModelBrand(this.state.fleet_manufacture_list) | ||||
|  |         } | ||||
|  |         else{ | ||||
|  |             this.OpenVehicleModelBrand(this.state.fleet_manufacture_list) | ||||
|  |         } | ||||
|  |     } | ||||
|  | 
 | ||||
|  |     /** | ||||
|  |      * Opens the vehicle model brand view with a specific domain. | ||||
|  |      * @param {Array} domain - The domain to filter the records. | ||||
|  |      */ | ||||
|  |     OpenVehicleModelBrand(domain){ | ||||
|  |         this.action.doAction({ | ||||
|  |             type: 'ir.actions.act_window', | ||||
|  |             name: 'Manufacturers', | ||||
|  |             res_model: 'fleet.vehicle.model.brand', | ||||
|  |             domain: [["id", "in", domain]], | ||||
|  |             view_mode: 'kanban', | ||||
|  |             views: [[false, 'kanban'],[false, 'form']], | ||||
|  |             target: 'self' | ||||
|  |         }); | ||||
|  |     } | ||||
|  | 
 | ||||
|  |     /** | ||||
|  |      * Opens the Models view based on the current state. | ||||
|  |      */ | ||||
|  |     _onClickModels(){ | ||||
|  |         if (this.state.flag == 1){ | ||||
|  |             this.OpenVehicleModel(this.state.fleet_model_list) | ||||
|  |         } | ||||
|  |         else{ | ||||
|  |             this.OpenVehicleModel(this.state.fleet_model_list) | ||||
|  |         } | ||||
|  |     } | ||||
|  |     /** | ||||
|  |      * Opens the vehicle model view with a specific domain. | ||||
|  |      * @param {Array} domain - The domain to filter the records. | ||||
|  |      */ | ||||
|  |     OpenVehicleModel(domain){ | ||||
|  |         this.action.doAction({ | ||||
|  |             type: 'ir.actions.act_window', | ||||
|  |             name: 'Models', | ||||
|  |             res_model: 'fleet.vehicle.model', | ||||
|  |             domain: [["id", "in", domain]], | ||||
|  |             view_mode: 'kanban', | ||||
|  |             views: [[false, 'kanban'],[false, 'form']], | ||||
|  |             target: 'self' | ||||
|  |         }); | ||||
|  |     } | ||||
|  |     /** | ||||
|  |      * Opens the Vehicles view based on the current state. | ||||
|  |      */ | ||||
|  |     _onClickVehicles(){ | ||||
|  |         if (this.state.flag == 1) { | ||||
|  |             this.action.doAction({ | ||||
|  |                 type: 'ir.actions.act_window', | ||||
|  |                 name: 'Vehicles', | ||||
|  |                 res_model: 'fleet.vehicle', | ||||
|  |                 view_mode: 'kanban', | ||||
|  |                 views: [[false, 'kanban'],[false, 'form']], | ||||
|  |                 domain: [["id", "in", this.state.fleet_vehicle_list]], | ||||
|  |                 target: 'self' | ||||
|  |             }); | ||||
|  |         } | ||||
|  |     } | ||||
|  |     /** | ||||
|  |      * Opens the Contracts view based on the current state. | ||||
|  |      */ | ||||
|  |     _onClickContracts() { | ||||
|  |         if (this.state.flag == 1) { | ||||
|  |              this.action.doAction({ | ||||
|  |                 type: 'ir.actions.act_window', | ||||
|  |                 name: 'Vehicles', | ||||
|  |                 res_model: 'fleet.vehicle.log.contract', | ||||
|  |                 domain: [["id", "in", this.state.admin_recurring_list]], | ||||
|  |                 view_mode: 'kanban', | ||||
|  |                 views: [[false, 'list'],[false, 'form']], | ||||
|  |                 target: 'self' | ||||
|  |             }); | ||||
|  |         } | ||||
|  |     } | ||||
|  |     /** | ||||
|  |      * Opens the Services view based on the current state. | ||||
|  |      */ | ||||
|  |     _onClickServices(){ | ||||
|  |         if (this.state.flag == 1) { | ||||
|  |              this.action.doAction({ | ||||
|  |                 type: 'ir.actions.act_window', | ||||
|  |                 name: 'Services', | ||||
|  |                 res_model: 'fleet.vehicle.log.services', | ||||
|  |                 domain: [["id", "in", this.state.admin_fleet_cost_list]], | ||||
|  |                 view_mode: 'list', | ||||
|  |                 views: [[false, 'list'],[false, 'form']], | ||||
|  |                 target: 'self' | ||||
|  |              }) | ||||
|  |         } | ||||
|  |     } | ||||
|  |     /** | ||||
|  |      * Opens the Odometers view based on the current state. | ||||
|  |      */ | ||||
|  |     _onClickOdoMeter(){ | ||||
|  |         if (this.state.flag == true) { | ||||
|  |             this.action.doAction({ | ||||
|  |                 type: 'ir.actions.act_window', | ||||
|  |                 name: 'Odometers', | ||||
|  |                 res_model: 'fleet.vehicle.odometer', | ||||
|  |                 domain: [["id", "in", this.state.admin_odometer_list]], | ||||
|  |                 view_mode: 'list', | ||||
|  |                 views: [[false, 'list'],[false, 'form']], | ||||
|  |                 target: 'self' | ||||
|  |             }) | ||||
|  |         } | ||||
|  |     } | ||||
|  |     /** | ||||
|  |      * Fetches filter data for the dashboard. | ||||
|  |      * @returns {Object} The filter data including drivers, vehicles, and manufactures. | ||||
|  |      */ | ||||
|  |     async render_filter(){ | ||||
|  |         const { drivers, vehicles, manufactures } = await jsonrpc('/fleet/filter', {}) | ||||
|  |         return { drivers, vehicles, manufactures} | ||||
|  |     } | ||||
|  |     /** | ||||
|  |      * Fetches data for the dashboard and draws charts. | ||||
|  |      */ | ||||
|  |     fetch_data(){ | ||||
|  |         var self = this; | ||||
|  |         var def1 = jsonrpc('/web/dataset/call_kw', { | ||||
|  |             model: 'fleet.vehicle', | ||||
|  |             method: 'get_tiles_data', | ||||
|  |             args: [], | ||||
|  |             kwargs: {} | ||||
|  |         }).then(function(result) { | ||||
|  |             self.state.odometer_value = result['total_odometer'], | ||||
|  |             self.state.service_value = result['service_cost'], | ||||
|  |             self.state.recurring_value = result['recurring_cost'], | ||||
|  |             self.state.all_vehicles = result['all_vehicles'], | ||||
|  |             self.state.fleet_state =  result['fleet_state'], | ||||
|  |             self.state.flag = result['flag'] | ||||
|  |             if (self.state.flag == 0) { | ||||
|  |                 self.state.manufacture_list = result['manufacture_list'], | ||||
|  |                 self.state.model_list = result['model_list'] | ||||
|  |             } | ||||
|  |             else{ | ||||
|  |                 self.state.admin_odometer_list = result['admin_odometer_list'], | ||||
|  |                 self.state.admin_fleet_cost_list = result['admin_fleet_cost_list'], | ||||
|  |                 self.state.admin_recurring_list = result['admin_recurring_list'], | ||||
|  |                 self.state.fleet_vehicle_list = result['fleet_vehicle_list'], | ||||
|  |                 self.state.fleet_model_list = result['fleet_model_list'], | ||||
|  |                 self.state.fleet_manufacture_list = result['fleet_manufacture_list'] | ||||
|  |             } | ||||
|  |             google.charts.load('current', { | ||||
|  |                 'packages': ['corechart'] | ||||
|  |             }); | ||||
|  |             google.charts.setOnLoadCallback(drawChart); | ||||
|  |               function drawChart() { | ||||
|  |                     try{ | ||||
|  |                         var data = google.visualization.arrayToDataTable(result['odometer_value_list']); | ||||
|  |                          var options = { | ||||
|  |                             title: 'Odometer Reading Monthly Wise', | ||||
|  |                             hAxis: {title: 'Month'}, | ||||
|  |                             vAxis: {title: 'Odometer Values'}, | ||||
|  |                             legend: 'none', | ||||
|  |                             pointsVisible: true, | ||||
|  |                          } | ||||
|  |                          var line_chart = new google.visualization.LineChart(self.fleet_main.el.querySelector('#lineChart')); | ||||
|  |                          line_chart.draw(data, options); | ||||
|  |                          var service_data = google.visualization.arrayToDataTable(result['service_type']); | ||||
|  |                          var service_options = { | ||||
|  |                             title: 'Service Types', | ||||
|  |                             pieHole: 0.4 | ||||
|  |                         }; | ||||
|  |                         var service_chart = new google.visualization.PieChart(self.fleet_main.el.querySelector('#service_Chart')); | ||||
|  |                         service_chart.draw(service_data, service_options); | ||||
|  |                         var data = google.visualization.arrayToDataTable(result['service_cost_list']); | ||||
|  |                         var options = { | ||||
|  |                             title: ' Service Cost Last Six Months', | ||||
|  |                             vAxis: { | ||||
|  |                                 gridlines: {color: 'transparent'}, | ||||
|  |                                 title: 'Service Cost' | ||||
|  |                             }, | ||||
|  |                             legend: 'none', | ||||
|  |                         }; | ||||
|  |                         var chart = new google.visualization.ColumnChart(self.fleet_main.el.querySelector('#barChart')); | ||||
|  |                         chart.draw(data, options); | ||||
|  |                     } | ||||
|  |                     catch (e) { | ||||
|  |                         self.fetch_data(); | ||||
|  |                     } | ||||
|  |               } | ||||
|  |         }); | ||||
|  |         return $.when(def1); | ||||
|  |     } | ||||
|  | } | ||||
|  | 
 | ||||
|  | DashboardAction.template = "fleet_advanced_dashboard.FleetDashBoard" | ||||
|  | 
 | ||||
|  | registry.category("actions").add("dashboard_action", DashboardAction); | ||||
| @ -0,0 +1,400 @@ | |||||
|  | <?xml version="1.0" encoding="UTF-8" ?> | ||||
|  | <templates id="template" xml:space="preserve"> | ||||
|  |      <!-- | ||||
|  |     Dashboard Template for the Fleet Management module in Odoo. | ||||
|  | 
 | ||||
|  |     This template renders the Fleet Management dashboard, providing visual elements | ||||
|  |     and interactive components for users to filter and view data such as vehicles, | ||||
|  |     manufacturers, models, odometer readings, service costs, and recurring costs. | ||||
|  | 
 | ||||
|  |     Components: | ||||
|  |     - Filter Section: Allows filtering by date range, driver, vehicle model, and manufacturer. | ||||
|  |     - Data Cards: Display summarized fleet information with icons representing vehicles, manufacturers, models, odometer, service costs, and contracts. | ||||
|  |     - Graphs: Visualize key metrics such as odometer readings, service costs, and recurring costs using charts. | ||||
|  |     - Vehicle Status Table: Lists the current status of vehicles along with the number of vehicles in each state. | ||||
|  | 
 | ||||
|  |     Interactive Elements: | ||||
|  |     - Date Range, Driver, Vehicle Model, and Manufacturer selection dropdowns for filtering data. | ||||
|  |     - Cards with click events for detailed views on vehicles, odometer readings, services, and contracts. | ||||
|  | 
 | ||||
|  |     Style: | ||||
|  |     - Custom styles applied for layout, spacing, and element design for a visually cohesive dashboard. | ||||
|  |     --> | ||||
|  |     <t t-name="fleet_advanced_dashboard.FleetDashBoard"> | ||||
|  |         <div class="oh_dashboards" style="margin-top: 20px;"> | ||||
|  |             <div class="filter" style="display:flex;margin-right:56px;" | ||||
|  |                  t-ref="filters"> | ||||
|  |                 <t t-if="state.flag==1"> | ||||
|  |                     <div class="inner_select" style="display: flex;"> | ||||
|  |                         <p style="margin-left: 20px;">Date Range :</p> | ||||
|  |                         <p> | ||||
|  |                             <select class="fleet_select" id="date_filter" | ||||
|  |                                     t-on-change="_onchangeFilter"> | ||||
|  |                                 <option value="null" | ||||
|  |                                         style='background-color:#827c93;'>With | ||||
|  |                                     Out Date | ||||
|  |                                 </option> | ||||
|  |                                 <option value="10" | ||||
|  |                                         style='background-color:#827c93;'>Last | ||||
|  |                                     10 days | ||||
|  |                                 </option> | ||||
|  |                                 <option value="30" | ||||
|  |                                         style='background-color:#827c93;'>Last | ||||
|  |                                     month | ||||
|  |                                 </option> | ||||
|  |                                 <option value="90" | ||||
|  |                                         style='background-color:#827c93;'>Last 3 | ||||
|  |                                     month | ||||
|  |                                 </option> | ||||
|  |                                 <option value="365" | ||||
|  |                                         style='background-color:#827c93;'>Last | ||||
|  |                                     Year | ||||
|  |                                 </option> | ||||
|  |                             </select> | ||||
|  |                         </p> | ||||
|  |                         <p>Driver :</p> | ||||
|  |                         <p> | ||||
|  |                             <select class="fleet_select" id="driver_selection" | ||||
|  |                                     t-on-change="_onchangeFilter"> | ||||
|  |                                 <option value="null" | ||||
|  |                                         style='background-color:#827c93;'>All | ||||
|  |                                     Drivers | ||||
|  |                                 </option> | ||||
|  |                                 <t t-foreach="state.data.drivers" t-as="driver" | ||||
|  |                                    t-key="driver.id"> | ||||
|  |                                     <option t-esc="driver.name" | ||||
|  |                                             t-att-value="driver.id" | ||||
|  |                                             t-att-data-id="driver.id" | ||||
|  |                                             style='background-color:#827c93;'/> | ||||
|  |                                 </t> | ||||
|  |                             </select> | ||||
|  |                         </p> | ||||
|  |                         <p>Vehicle Model :</p> | ||||
|  |                         <p> | ||||
|  |                             <select class="fleet_select" id="vehicle_selection" | ||||
|  |                                     t-on-change="_onchangeFilter"> | ||||
|  |                                 <option value="null" | ||||
|  |                                         style='background-color:#827c93;'>All | ||||
|  |                                     vehicles | ||||
|  |                                 </option> | ||||
|  |                                 <t t-foreach="state.data.vehicles" | ||||
|  |                                    t-as="vehicle" t-key="vehicle.id"> | ||||
|  |                                     <option t-esc="vehicle.name" | ||||
|  |                                             t-att-value="vehicle.id" | ||||
|  |                                             t-att-data-id="vehicle.id" | ||||
|  |                                             style='background-color:#827c93;'/> | ||||
|  |                                 </t> | ||||
|  |                             </select> | ||||
|  |                         </p> | ||||
|  |                         <p>Vehicle Manufacturers :</p> | ||||
|  |                         <p> | ||||
|  |                             <select class="fleet_select" | ||||
|  |                                     id="manufacturers_selection" | ||||
|  |                                     t-on-change="_onchangeFilter"> | ||||
|  |                                 <option value="null" | ||||
|  |                                         style='background-color:#827c93;'>All | ||||
|  |                                     Manufactures | ||||
|  |                                 </option> | ||||
|  |                                 <t t-foreach="state.data.manufactures" | ||||
|  |                                    t-as="manufacture" t-key="manufacture.id"> | ||||
|  |                                     <option t-esc="manufacture.name" | ||||
|  |                                             t-att-value="manufacture.id" | ||||
|  |                                             t-att-data-id="manufacture.id" | ||||
|  |                                             style='background-color:#827c93;'/> | ||||
|  |                                 </t> | ||||
|  |                             </select> | ||||
|  |                         </p> | ||||
|  |                     </div> | ||||
|  |                 </t> | ||||
|  |             </div> | ||||
|  |             <div class="row" style="padding:2%;" t-ref="fleet_main"> | ||||
|  |                 <div class="col-md-8 fleet_content"> | ||||
|  |                     <div class="fleet_main"> | ||||
|  |                         <div class="row"> | ||||
|  |                             <div class="content_fleet_external col-md-4 fleet_other_info" | ||||
|  |                                  id="fleet_vehicles" style="width: 31.5%" | ||||
|  |                                  t-on-click="_onClickVehicles"> | ||||
|  |                                 <div class="row"> | ||||
|  |                                     <div class="col-md-3 align_center fleet_icon-div"> | ||||
|  |                                         <i class="fa fa-car" | ||||
|  |                                            style="margin-top:6vh"/> | ||||
|  |                                     </div> | ||||
|  |                                     <div class="col-md-9 content-div fleet_border-content" | ||||
|  |                                          style="border-color: transparent;"> | ||||
|  |                                         <div class="align_center"> | ||||
|  |                                             <h5 class="card-title" | ||||
|  |                                                 style="margin-top:5vh">VEHICLES | ||||
|  |                                             </h5> | ||||
|  |                                             <p class="card-text align_center" | ||||
|  |                                                id="total_vehicles">Total | ||||
|  |                                                 Vehicles | ||||
|  |                                                 <t t-esc="state.all_vehicles"/> | ||||
|  |                                             </p> | ||||
|  |                                         </div> | ||||
|  |                                     </div> | ||||
|  |                                 </div> | ||||
|  |                             </div> | ||||
|  |                             <div class="content_fleet_external col-md-4 fleet_other_info" | ||||
|  |                                  id="fleet_manufacturers" style="width: 31.5%;" | ||||
|  |                                  t-on-click="_onClickManufacturers"> | ||||
|  |                                 <div class="row"> | ||||
|  |                                     <div class="col-md-3 align_center fleet_icon-div"> | ||||
|  |                                         <i class="fa fa-car" | ||||
|  |                                            style="margin-top:6vh"/> | ||||
|  |                                     </div> | ||||
|  |                                     <div class="col-md-9 content-div fleet_border-content" | ||||
|  |                                          style="border-color:transparent;"> | ||||
|  |                                         <div class="align_center"> | ||||
|  |                                             <h5 class="card-title" | ||||
|  |                                                 style="margin-top:6vh"> | ||||
|  |                                                 MANUFACTURERS | ||||
|  |                                             </h5> | ||||
|  |                                         </div> | ||||
|  |                                     </div> | ||||
|  |                                 </div> | ||||
|  |                             </div> | ||||
|  |                             <div class="content_fleet_external col-md-4 fleet_other_info" | ||||
|  |                                  id="fleet_models" style="width: 31.5%;" | ||||
|  |                                  t-on-click="_onClickModels"> | ||||
|  |                                 <div class="row"> | ||||
|  |                                     <div class="col-md-3 align_center fleet_icon-div"> | ||||
|  |                                         <i class="fa fa-car" | ||||
|  |                                            style="margin-top:6vh"/> | ||||
|  |                                     </div> | ||||
|  |                                     <div class="col-md-9 content-div fleet_border-content" | ||||
|  |                                          style="border-color:transparent;"> | ||||
|  |                                         <div class="align_center"> | ||||
|  |                                             <h5 class="card-title" | ||||
|  |                                                 style="margin-top:6vh">MODELS | ||||
|  |                                             </h5> | ||||
|  |                                         </div> | ||||
|  |                                     </div> | ||||
|  |                                 </div> | ||||
|  |                             </div> | ||||
|  |                         </div> | ||||
|  |                         <div class="row"> | ||||
|  |                             <div class="content_fleet_external col-md-4 fleet_content_main" | ||||
|  |                                  id="fleet_odometer" style="width: 31.5%;" | ||||
|  |                                  t-on-click="_onClickOdoMeter"> | ||||
|  |                                 <div class="row"> | ||||
|  |                                     <div class="col-md-3 align_center fleet_icon-content" | ||||
|  |                                          style="background-color:#71619E;"> | ||||
|  |                                         <i class="fa fa-tachometer"/> | ||||
|  |                                     </div> | ||||
|  |                                     <div class="col-md-9 content-div fleet_border-content" | ||||
|  |                                          style="border-color: transparent;"> | ||||
|  |                                         <div class="align_center"> | ||||
|  |                                             <h1 class="card-title" | ||||
|  |                                                 style="margin-top:8vh">Odometer | ||||
|  |                                             </h1> | ||||
|  |                                             <p class="card-text align_center"> | ||||
|  |                                                 Show All Odometer Value | ||||
|  |                                             </p> | ||||
|  |                                         </div> | ||||
|  |                                     </div> | ||||
|  |                                 </div> | ||||
|  |                             </div> | ||||
|  |                             <div class="content_fleet_external card col-md-8 mb-3 fleet_content_graph" | ||||
|  |                                  style="width: 64%;"> | ||||
|  |                                 <div class="row"> | ||||
|  |                                     <div class="card-body col-md-4 text-primary fleet_content_graph_inner"> | ||||
|  |                                         <img class="fleet_img_content" | ||||
|  |                                              src="https://img.freepik.com/free-icon/speedometer-icon_318-1920.jpg?w=2000"/> | ||||
|  |                                     </div> | ||||
|  |                                     <div class="col-md-4"> | ||||
|  |                                         <h2 class="card-title text-primary fleet_content_titles"> | ||||
|  |                                             Total Odometer value | ||||
|  |                                         </h2> | ||||
|  |                                         <h3 class="card-text align_center text-primary" | ||||
|  |                                             style="margin-left: -13px;" | ||||
|  |                                             id="odometer_value"> | ||||
|  |                                             <t t-esc="state.odometer_value"/> | ||||
|  |                                         </h3> | ||||
|  |                                     </div> | ||||
|  |                                     <div class="col-md-4"> | ||||
|  |                                         <section class="fleet_container"> | ||||
|  |                                             <figure class="chart" | ||||
|  |                                                     data-percent="75"> | ||||
|  |                                                 <figcaption class="text-primary" | ||||
|  |                                                             id="odometer_value2"> | ||||
|  |                                                     <t t-esc="state.odometer_value"/> | ||||
|  |                                                 </figcaption> | ||||
|  |                                                 <svg width="200" height="200"> | ||||
|  |                                                     <circle class="outer" | ||||
|  |                                                             cx="95" cy="95" | ||||
|  |                                                             r="85" | ||||
|  |                                                             transform="rotate(-90, 95, 95)" | ||||
|  |                                                             style="stroke:#71619E;"/> | ||||
|  |                                                 </svg> | ||||
|  |                                             </figure> | ||||
|  |                                         </section> | ||||
|  |                                     </div> | ||||
|  |                                 </div> | ||||
|  |                             </div> | ||||
|  |                         </div> | ||||
|  |                         <div class="row"> | ||||
|  |                             <div class="content_fleet_external col-md-4 fleet_content_main" | ||||
|  |                                  id="fleet_services" style="width: 31.5%;" | ||||
|  |                                  t-on-click="_onClickServices"> | ||||
|  |                                 <div class="row"> | ||||
|  |                                     <div class="col-md-3 align_center fleet_icon-content" | ||||
|  |                                          style="background-color:#28A745;"> | ||||
|  |                                         <i class="fa fa-wrench"/> | ||||
|  |                                     </div> | ||||
|  |                                     <div class="col-md-9 content-div fleet_border-content" | ||||
|  |                                          style="border-color: transparent;"> | ||||
|  |                                         <div class="align_center"> | ||||
|  |                                             <h1 class="card-title" | ||||
|  |                                                 style="margin-top:8vh">Service | ||||
|  |                                                 Cost | ||||
|  |                                             </h1> | ||||
|  |                                             <p class="card-text align_center"> | ||||
|  |                                                 Show All Service Cost | ||||
|  |                                             </p> | ||||
|  |                                         </div> | ||||
|  |                                     </div> | ||||
|  |                                 </div> | ||||
|  |                             </div> | ||||
|  |                             <div class="content_fleet_external card col-md-8  mb-3 fleet_content_graph" | ||||
|  |                                  style="width: 64%;"> | ||||
|  |                                 <div class="row"> | ||||
|  |                                     <div class="card-body col-md-4 text-success fleet_content_graph_inner"> | ||||
|  |                                         <img class="fleet_img_content" | ||||
|  |                                              src="https://www.transparentpng.com/thumb/tool/screwdriver-pliers-tool-png-transparent-5.png"/> | ||||
|  |                                     </div> | ||||
|  |                                     <div class="col-md-4"> | ||||
|  |                                         <h2 class="card-title text-success fleet_content_titles"> | ||||
|  |                                             Total Service Cost | ||||
|  |                                         </h2> | ||||
|  |                                         <h3 class="card-text align_center text-success" | ||||
|  |                                             id="service_value" | ||||
|  |                                             style="margin-left: -13px;"> | ||||
|  |                                             <t t-esc="state.service_value"/> | ||||
|  |                                         </h3> | ||||
|  |                                     </div> | ||||
|  |                                     <div class="col-md-4"> | ||||
|  |                                         <section class="fleet_container"> | ||||
|  |                                             <figure class="chart" | ||||
|  |                                                     data-percent="75"> | ||||
|  |                                                 <figcaption class="text-success" | ||||
|  |                                                             id="service_value2"> | ||||
|  |                                                     <t t-esc="state.service_value"/> | ||||
|  |                                                 </figcaption> | ||||
|  |                                                 <svg width="200" height="200"> | ||||
|  |                                                     <circle class="outer" | ||||
|  |                                                             cx="95" cy="95" | ||||
|  |                                                             r="85" | ||||
|  |                                                             transform="rotate(-90, 95, 95)" | ||||
|  |                                                             style="stroke:#28A745;"/> | ||||
|  |                                                 </svg> | ||||
|  |                                             </figure> | ||||
|  |                                         </section> | ||||
|  |                                     </div> | ||||
|  |                                 </div> | ||||
|  |                             </div> | ||||
|  |                         </div> | ||||
|  |                         <div class="row"> | ||||
|  |                             <div class="content_fleet_external col-md-4 fleet_content_main" | ||||
|  |                                  id="fleet_contracts" style="width: 31.5%;" | ||||
|  |                                  t-on-click="_onClickContracts"> | ||||
|  |                                 <div class="row"> | ||||
|  |                                     <div class="col-md-3 align_center fleet_icon-content" | ||||
|  |                                          style="background-color:#DC3545;"> | ||||
|  |                                         <i class="fa fa-book"/> | ||||
|  |                                     </div> | ||||
|  |                                     <div class="col-md-9 content-div fleet_border-content" | ||||
|  |                                          style="border-color: transparent;"> | ||||
|  |                                         <div class="align_center"> | ||||
|  |                                             <h1 class="card-title" | ||||
|  |                                                 style="margin-top:8vh">Recurring | ||||
|  |                                                 Cost | ||||
|  |                                             </h1> | ||||
|  |                                             <p class="card-text align_center"> | ||||
|  |                                                 Show All Contracts | ||||
|  |                                             </p> | ||||
|  |                                         </div> | ||||
|  |                                     </div> | ||||
|  |                                 </div> | ||||
|  |                             </div> | ||||
|  |                             <div class="content_fleet_external card col-md-8 mb-3 fleet_content_graph" | ||||
|  |                                  style="width: 64%;"> | ||||
|  |                                 <div class="row"> | ||||
|  |                                     <div class="card-body col-md-4 text-danger fleet_content_graph_inner"> | ||||
|  |                                         <img class="fleet_img_content" | ||||
|  |                                              src="https://cdn-icons-png.flaticon.com/512/5885/5885946.png"/> | ||||
|  |                                     </div> | ||||
|  |                                     <div class="col-md-4"> | ||||
|  |                                         <h2 class="card-title text-danger fleet_content_titles"> | ||||
|  |                                             Total Recurring Cost | ||||
|  |                                         </h2> | ||||
|  |                                         <h3 class="card-text align_center text-danger" | ||||
|  |                                             style="margin-left: -13px;" | ||||
|  |                                             id="recurring_value"> | ||||
|  |                                             <t t-esc="state.recurring_value"/> | ||||
|  |                                         </h3> | ||||
|  |                                     </div> | ||||
|  |                                     <div class="col-md-4"> | ||||
|  |                                         <section class="fleet_container"> | ||||
|  |                                             <figure class="chart" | ||||
|  |                                                     data-percent="75"> | ||||
|  |                                                 <figcaption | ||||
|  |                                                         class="text-danger o_recurring_cost" | ||||
|  |                                                         id="recurring_value2"> | ||||
|  |                                                     <t t-esc="state.recurring_value"/> | ||||
|  |                                                 </figcaption> | ||||
|  |                                                 <svg width="200" height="200"> | ||||
|  |                                                     <circle class="outer" | ||||
|  |                                                             cx="95" cy="95" | ||||
|  |                                                             r="85" | ||||
|  |                                                             transform="rotate(-90, 95, 95)" | ||||
|  |                                                             style="stroke:#DC3545;"/> | ||||
|  |                                                 </svg> | ||||
|  |                                             </figure> | ||||
|  |                                         </section> | ||||
|  |                                     </div> | ||||
|  |                                 </div> | ||||
|  |                             </div> | ||||
|  |                         </div> | ||||
|  |                     </div> | ||||
|  |                     <div id="lineChart" | ||||
|  |                          style="width: 100%;max-width: 1215px;margin-left: 19px;height: 550px;margin-top: 15px;margin-bottom: 15px;" | ||||
|  |                          class="card content_fleet_external"> | ||||
|  |                     </div> | ||||
|  |                 </div> | ||||
|  |                 <div class="col-md-4"> | ||||
|  |                     <div id="service_Chart" | ||||
|  |                          style="width:100%; max-width:600px; height:500px;margin-top:39px;margin-bottom:20px;" | ||||
|  |                          class="card content_fleet_external"> | ||||
|  |                     </div> | ||||
|  |                     <div id="barChart" | ||||
|  |                          style="width:100%; max-width:600px; height:500px;" | ||||
|  |                          class="card content_fleet_external"> | ||||
|  |                     </div> | ||||
|  |                     <div style="width:100%; max-width:600px; height:389px;margin-top: 20px;" | ||||
|  |                          class="card content_fleet_external"> | ||||
|  |                         <h1 class="align_center card" | ||||
|  |                             style="margin-top:30px; color:#0253e8;">Vehicle | ||||
|  |                             Status | ||||
|  |                         </h1> | ||||
|  |                         <div class="table-responsive-md"> | ||||
|  |                             <table id="table_status" style="width"> | ||||
|  |                                 <t t-foreach="state.fleet_state" t-as="data" | ||||
|  |                                    t-key="data.id"> | ||||
|  |                                     <tr> | ||||
|  |                                         <td> | ||||
|  |                                             <h4 t-esc="data['state']"/> | ||||
|  |                                         </td> | ||||
|  |                                         <td> | ||||
|  |                                             <h4 class="fleet-pill" | ||||
|  |                                                 t-esc="data['number']"/> | ||||
|  |                                         </td> | ||||
|  |                                     </tr> | ||||
|  |                                 </t> | ||||
|  |                             </table> | ||||
|  |                         </div> | ||||
|  |                     </div> | ||||
|  |                 </div> | ||||
|  |             </div> | ||||
|  |         </div> | ||||
|  |     </t> | ||||
|  | </templates> | ||||
| @ -0,0 +1,15 @@ | |||||
|  | <?xml version="1.0" encoding="utf-8" ?> | ||||
|  | <odoo> | ||||
|  |     <!-- Action to open the advanced dashboard for the fleet module --> | ||||
|  |     <record model="ir.actions.client" id="fleet_advanced_dashboard_action"> | ||||
|  |         <field name="name">Dashboard</field> | ||||
|  |         <field name="tag">dashboard_action</field> | ||||
|  |         <field name="target">current</field> | ||||
|  |     </record> | ||||
|  |     <!-- Menu item to display the dashboard in the fleet module --> | ||||
|  |     <menuitem id="fleet_vehicle_dashboard_action" | ||||
|  |               name="Dashboard" | ||||
|  |               sequence="1" | ||||
|  |               action="fleet_advanced_dashboard_action" | ||||
|  |               parent="fleet.menu_root"/> | ||||
|  | </odoo> | ||||