Browse Source

Apr 3 : [ADD] Initial Commit 'fleet_complete_report'

dependabot/npm_and_yarn/odoo_website_helpdesk/static/src/cdn/minimist-1.2.8
Sayooj 2 years ago
parent
commit
9b9d46ce6a
  1. 48
      fleet_complete_report/README.rst
  2. 26
      fleet_complete_report/__init__.py
  3. 47
      fleet_complete_report/__manifest__.py
  4. 7
      fleet_complete_report/doc/RELEASE_NOTES.md
  5. 24
      fleet_complete_report/report/__init__.py
  6. 87
      fleet_complete_report/report/vehicle_detail_report.py
  7. 315
      fleet_complete_report/report/vehicle_detail_report_templates.xml
  8. 11
      fleet_complete_report/report/vehicle_detail_reports.xml
  9. 2
      fleet_complete_report/security/ir.model.access.csv
  10. BIN
      fleet_complete_report/static/description/assets/icons/check.png
  11. BIN
      fleet_complete_report/static/description/assets/icons/chevron.png
  12. BIN
      fleet_complete_report/static/description/assets/icons/cogs.png
  13. BIN
      fleet_complete_report/static/description/assets/icons/consultation.png
  14. BIN
      fleet_complete_report/static/description/assets/icons/ecom-black.png
  15. BIN
      fleet_complete_report/static/description/assets/icons/education-black.png
  16. BIN
      fleet_complete_report/static/description/assets/icons/hotel-black.png
  17. BIN
      fleet_complete_report/static/description/assets/icons/license.png
  18. BIN
      fleet_complete_report/static/description/assets/icons/lifebuoy.png
  19. BIN
      fleet_complete_report/static/description/assets/icons/logo.png
  20. BIN
      fleet_complete_report/static/description/assets/icons/manufacturing-black.png
  21. BIN
      fleet_complete_report/static/description/assets/icons/pos-black.png
  22. BIN
      fleet_complete_report/static/description/assets/icons/puzzle.png
  23. BIN
      fleet_complete_report/static/description/assets/icons/restaurant-black.png
  24. BIN
      fleet_complete_report/static/description/assets/icons/service-black.png
  25. BIN
      fleet_complete_report/static/description/assets/icons/trading-black.png
  26. BIN
      fleet_complete_report/static/description/assets/icons/training.png
  27. BIN
      fleet_complete_report/static/description/assets/icons/update.png
  28. BIN
      fleet_complete_report/static/description/assets/icons/user.png
  29. BIN
      fleet_complete_report/static/description/assets/icons/wrench.png
  30. BIN
      fleet_complete_report/static/description/assets/misc/categories.png
  31. BIN
      fleet_complete_report/static/description/assets/misc/check-box.png
  32. BIN
      fleet_complete_report/static/description/assets/misc/compass.png
  33. BIN
      fleet_complete_report/static/description/assets/misc/corporate.png
  34. BIN
      fleet_complete_report/static/description/assets/misc/customer-support.png
  35. BIN
      fleet_complete_report/static/description/assets/misc/cybrosys-logo.png
  36. BIN
      fleet_complete_report/static/description/assets/misc/features.png
  37. BIN
      fleet_complete_report/static/description/assets/misc/logo.png
  38. BIN
      fleet_complete_report/static/description/assets/misc/pictures.png
  39. BIN
      fleet_complete_report/static/description/assets/misc/pie-chart.png
  40. BIN
      fleet_complete_report/static/description/assets/misc/right-arrow.png
  41. BIN
      fleet_complete_report/static/description/assets/misc/star.png
  42. BIN
      fleet_complete_report/static/description/assets/misc/support.png
  43. BIN
      fleet_complete_report/static/description/assets/misc/whatsapp.png
  44. BIN
      fleet_complete_report/static/description/assets/modules/budget_image.png
  45. BIN
      fleet_complete_report/static/description/assets/modules/credit_image.png
  46. BIN
      fleet_complete_report/static/description/assets/modules/employee_image.png
  47. BIN
      fleet_complete_report/static/description/assets/modules/export_image.png
  48. BIN
      fleet_complete_report/static/description/assets/modules/gantt_image.png
  49. BIN
      fleet_complete_report/static/description/assets/modules/quotation_image.png
  50. BIN
      fleet_complete_report/static/description/assets/screenshots/fleet_1.png
  51. BIN
      fleet_complete_report/static/description/assets/screenshots/fleet_10.png
  52. BIN
      fleet_complete_report/static/description/assets/screenshots/fleet_11.png
  53. BIN
      fleet_complete_report/static/description/assets/screenshots/fleet_2.png
  54. BIN
      fleet_complete_report/static/description/assets/screenshots/fleet_3.png
  55. BIN
      fleet_complete_report/static/description/assets/screenshots/fleet_4.png
  56. BIN
      fleet_complete_report/static/description/assets/screenshots/fleet_5.png
  57. BIN
      fleet_complete_report/static/description/assets/screenshots/fleet_6.png
  58. BIN
      fleet_complete_report/static/description/assets/screenshots/fleet_7.png
  59. BIN
      fleet_complete_report/static/description/assets/screenshots/fleet_8.png
  60. BIN
      fleet_complete_report/static/description/assets/screenshots/fleet_9.png
  61. BIN
      fleet_complete_report/static/description/assets/screenshots/hero.gif
  62. BIN
      fleet_complete_report/static/description/banner.png
  63. BIN
      fleet_complete_report/static/description/icon.png
  64. 757
      fleet_complete_report/static/description/index.html
  65. 24
      fleet_complete_report/wizard/__init__.py
  66. 95
      fleet_complete_report/wizard/vehicle_detail.py
  67. 44
      fleet_complete_report/wizard/vehicle_detail_views.xml

48
fleet_complete_report/README.rst

@ -0,0 +1,48 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
Fleet Complete Report
=======================
This module allow to print complete fleet report.
Configuration
=============
The user should be added to the security group: Administrator(Human Resources/ Fleet) inorder to get access to the new menu.
Company
-------
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__
License
-------
General Public License, Version 3 (AGPL v3).
(https://www.odoo.com/documentation/user/16.0/legal/licenses/licenses.html)
Credits
-------
Developers: Version 15 - Abhishek E T @cybrosys,
Version 16 - Syamili K @cybrosys
Contact: odoo@cybrosys.com
Contacts
--------
* Mail Contact : odoo@cybrosys.com
* Website : https://cybrosys.com
Bug Tracker
-----------
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported.
Maintainer
==========
.. image:: https://cybrosys.com/images/logo.png
:target: https://cybrosys.com
This module is maintained by Cybrosys Technologies.
For support and more information, please visit `Our Website <https://cybrosys.com/>`__
Further information
===================
HTML Description: `<static/description/index.html>`__

26
fleet_complete_report/__init__.py

@ -0,0 +1,26 @@
# -*- coding: utf-8 -*-
###################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies (<https://www.cybrosys.com>).
# Author: Cybrosys Techno Solutions (<https://www.cybrosys.com>)
#
# This program is free software: you can modify
# it under the terms of the GNU Affero General Public License (AGPL) as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# 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 for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
###################################################################################
from . import report
from . import wizard

47
fleet_complete_report/__manifest__.py

@ -0,0 +1,47 @@
# -*- coding: utf-8 -*-
###################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies (<https://www.cybrosys.com>).
# Author: Cybrosys Techno Solutions (<https://www.cybrosys.com>)
#
# This program is free software: you can modify
# it under the terms of the GNU Affero General Public License (AGPL) as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# 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 for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
###################################################################################
{
'name': 'Fleet Complete Report',
'version': '16.0.1.0.0',
'category': 'Human Resources/Fleet',
'summary': 'Complete PDF report for Fleet',
'description': 'Complete PDF report for Fleet',
'author': 'Cybrosys Techno Solutions',
'company': 'Cybrosys Techno Solutions',
'maintainer': 'Cybrosys Techno Solutions',
'images': ['static/description/banner.png'],
'website': 'https://www.cybrosys.com',
'depends': ['base', 'fleet'],
'data': [
'security/ir.model.access.csv',
'report/vehicle_detail_report_templates.xml',
'report/vehicle_detail_reports.xml',
'wizard/vehicle_detail_views.xml'
],
'images': ['static/description/banner.png'],
'license': 'AGPL-3',
'installable': True,
'auto_install': False,
'application': False,
}

7
fleet_complete_report/doc/RELEASE_NOTES.md

@ -0,0 +1,7 @@
## Module <fleet_complete_report>
#### 23.03.2023
#### Version 16.0.1.0.0
#### ADD
- Initial commit for Fleet - Complete Report

24
fleet_complete_report/report/__init__.py

@ -0,0 +1,24 @@
# -*- coding: utf-8 -*-
###################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies (<https://www.cybrosys.com>).
# Author: Cybrosys Techno Solutions (<https://www.cybrosys.com>)
#
# This program is free software: you can modify
# it under the terms of the GNU Affero General Public License (AGPL) as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# 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 for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
###################################################################################
from . import vehicle_detail_report

87
fleet_complete_report/report/vehicle_detail_report.py

@ -0,0 +1,87 @@
# -*- coding: utf-8 -*-
###################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies (<https://www.cybrosys.com>).
# Author: Cybrosys Techno Solutions (<https://www.cybrosys.com>)
#
# This program is free software: you can modify
# it under the terms of the GNU Affero General Public License (AGPL) as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# 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 for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
###################################################################################
from odoo import api, fields, models
class VehicleDetailReport(models.TransientModel):
_name = 'report.fleet_complete_report.report_vehicle_detail'
_description = 'Vehicle Details PDF Report'
@api.model
def _get_report_values(self, docids, data=None):
"""
override the method to create custom report with custom values
:param docids: the recordset/ record from which the report action is
invoked
:param data: report data
:return: data and recodsets to be used in the report template
"""
docs = self.env['vehicle.detail'].browse(
self.env.context.get('active_id'))
lang = self.env['res.lang'].search(
[('code', '=', self.env.context.get('lang'))])
vehicle_ids = data.get('vehicle_ids')
vehicles = docs.vehicle_ids.browse(vehicle_ids)
vehicles = vehicles.sorted(key=lambda rec: rec.state_id.sequence)
states = docs.state_ids.sorted(key=lambda rec: rec.sequence)
period = None
end_date = docs.end_date
if not end_date:
end_date = fields.Date.context_today(self)
if docs.start_date:
period = "From " + docs.start_date.strftime(
lang.date_format) + " To " + end_date.strftime(lang.date_format)
contracts = self.env['fleet.vehicle.log.contract'].sudo().search(
[('vehicle_id', 'in', vehicles.ids),
('start_date', '<=', end_date),
'|', ('expiration_date', '>=', docs.start_date),
('expiration_date', '=', False)
],
order='vehicle_id ASC, state ASC, start_date DESC')
services = self.env['fleet.vehicle.log.services'].sudo().search(
[('vehicle_id', 'in', vehicles.ids),
('date', '>=', docs.start_date), ('date', '<=', end_date)],
order='vehicle_id ASC, date DESC')
odometers = self.env['fleet.vehicle.odometer'].sudo().search(
[('vehicle_id', 'in', vehicles.ids),
('date', '>=', docs.start_date), ('date', '<=', end_date)],
order='vehicle_id ASC, date DESC')
drivers_history = self.env[
'fleet.vehicle.assignation.log'].sudo().search(
[('vehicle_id', 'in', vehicles.ids), ('date_start', '<=', end_date),
'|', ('date_end', '>=', docs.start_date),
('date_end', '=', False)], order='vehicle_id ASC, date_start ASC')
return {
'doc_ids': self.ids,
'docs': docs,
'states': states,
'state_names': ", ".join(states.mapped('name')),
'vehicles': vehicles,
'vehicle_names': ", ".join(vehicles.mapped('name')),
'period': period,
'contracts': contracts,
'services': services,
'odometers': odometers,
'drivers_history': drivers_history
}

315
fleet_complete_report/report/vehicle_detail_report_templates.xml

@ -0,0 +1,315 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Report template -->
<template id="report_vehicle_detail">
<t t-call="web.html_container">
<t t-call="web.basic_layout">
<t t-foreach="docs" t-as="o">
<div class="page">
<div style="padding-bottom:20px !important;" class="oe_structure" />
<h1 align="center">Fleet - Complete Report</h1><br />
<table class="table table-condensed">
<tbody>
<tr t-if="period">
<th>Period</th>
<td colspan="2"><span t-esc="period" /></td>
</tr>
<tr t-if="state_names">
<th>Vehicle states</th>
<td colspan="2"><span t-esc="state_names" /></td>
</tr>
<tr t-if="vehicle_names">
<th>Vehicles</th>
<td colspan="2"><span t-esc="vehicle_names" /></td>
</tr>
</tbody>
</table>
<t t-if="not o.exclude_vehicle_data and vehicles">
<h2>Vehicles</h2>
<t t-foreach="vehicles" t-as="vehicle">
<h5 t-esc="vehicle.name" />
<table name="vehicle" class="table table-condensed">
<tbody>
<tr>
<th>Model</th>
<th>License Plate</th>
<th>Immatriculation Date</th>
<th>Chassis Number</th>
<th>Last Odometer</th>
</tr>
<tr>
<td><span t-esc="vehicle.model_id.name" /></td>
<td><span t-esc="vehicle.license_plate" /></td>
<td><span t-esc="vehicle.acquisition_date" t-options="{'widget': 'date'}" /></td>
<td><span t-esc="vehicle.vin_sn" /></td>
<td><span t-esc="vehicle.odometer" /> <span t-if="vehicle.odometer_unit">
<t t-esc="dict(vehicle.fields_get(allfields=['odometer_unit'])['odometer_unit']['selection'])[vehicle.odometer_unit]" />
</span>
</td>
</tr>
<tr>
<th>Fleet Manager</th>
<th>Location</th>
<th>Driver</th>
<th>Future Driver</th>
<th>Assignment Date</th>
</tr>
<tr>
<td><span t-esc="vehicle.manager_id.name" /></td>
<td><span t-esc="vehicle.location" /></td>
<td><span t-esc="vehicle.driver_id.name" /></td>
<td><span t-esc="vehicle.future_driver_id.name" /></td>
<td><span t-esc="vehicle.next_assignation_date" t-options="{'widget': 'date'}" /></td>
</tr>
<tr>
<th>Horsepower Taxation</th>
<th>First Contract Date</th>
<th>Catalog Value (VAT Incl.)</th>
<th>Purchase Value</th>
<th>Residual Value</th>
</tr>
<tr>
<td><span t-esc="vehicle.horsepower_tax" t-options="{'widget': 'monetary', 'display_currency': vehicle.currency_id}" /></td>
<td><span t-esc="vehicle.first_contract_date" t-options="{'widget': 'date'}" /></td>
<td><span t-esc="vehicle.car_value" t-options="{'widget': 'monetary', 'display_currency': vehicle.currency_id}" /></td>
<td><span t-esc="vehicle.net_car_value" t-options="{'widget': 'monetary', 'display_currency': vehicle.currency_id}" /></td>
<td><span t-esc="vehicle.residual_value" t-options="{'widget': 'monetary', 'display_currency': vehicle.currency_id}" /></td>
</tr>
<tr>
<th>Model Year</th>
<th>Transmission</th>
<th>Color</th>
<th>Seats Number</th>
<th>Doors Number</th>
</tr>
<tr>
<td><span t-esc="vehicle.model_year" /></td>
<td><span t-if="vehicle.transmission">
<t t-esc="dict(vehicle.fields_get(allfields=['transmission'])['transmission']['selection'])[vehicle.transmission]" />
</span>
</td>
<td><span t-esc="vehicle.color" /></td>
<td><span t-esc="vehicle.seats" /></td>
<td><span t-esc="vehicle.doors" /></td>
</tr>
<tr>
<th>Horsepower</th>
<th>Power</th>
<th>Fuel Type</th>
<th>CO2 Emissions</th>
<th>CO2 Standard</th>
</tr>
<tr>
<td><span t-esc="vehicle.horsepower" /></td>
<td><span t-esc="vehicle.power" /> kW</td>
<td><span t-if="vehicle.fuel_type">
<t t-esc="dict(vehicle.fields_get(allfields=['fuel_type'])['fuel_type']['selection'])[vehicle.fuel_type]" />
</span>
</td>
<td><span t-esc="vehicle.co2" /> g/km</td>
<td><span t-esc="vehicle.co2_standard" /></td>
</tr>
<tr>
<th>Plan To Change Car</th>
<th>Trailer Hitch</th>
</tr>
<tr>
<td><span><input type="checkbox" t-att-checked="vehicle.plan_to_change_car" /></span></td>
<td><span><input type="checkbox" t-att-checked="vehicle.trailer_hook" /></span></td>
</tr>
</tbody>
</table>
</t>
<p style="page-break-after:always;" />
</t>
<t t-if="contracts">
<h2>Contracts</h2>
<table name="contracts" class="table table-condensed">
<thead>
<tr>
<th />
<th>Contract Name</th>
<th>Contract Type</th>
<th>Responsible</th>
<th>Vendor</th>
<th>Driver</th>
<th>Activation Cost</th>
<th>Recurring Cost</th>
<th>Invoice Date</th>
<th>Contract Start Date</th>
<th>Contract Expiration Date</th>
</tr>
</thead>
<tbody>
<t t-set="report_vehicle" t-value="false" />
<t t-foreach="contracts" t-as="contract">
<t t-if="not report_vehicle or report_vehicle != contract.vehicle_id">
<t t-set="report_vehicle" t-value="contract.vehicle_id" />
<tr>
<th><span t-esc="contract.vehicle_id.name" /></th>
<td colspan="10" />
</tr>
</t>
<tr>
<td />
<td><span t-esc="contract.name" /></td>
<td><span t-esc="contract.cost_subtype_id.name" /></td>
<td><span t-esc="contract.user_id.name" /></td>
<td><span t-esc="contract.insurer_id.name" /></td>
<td><span t-esc="contract.purchaser_id.name" /></td>
<td><span t-esc="contract.amount" t-options="{'widget': 'monetary', 'display_currency': contract.currency_id}" /></td>
<td><span t-esc="contract.cost_generated" t-options="{'widget': 'monetary', 'display_currency': contract.currency_id}" /></td>
<td><span t-esc="contract.date" t-options="{'widget': 'date'}" /></td>
<td><span t-esc="contract.start_date" t-options="{'widget': 'date'}" /></td>
<td><span t-esc="contract.expiration_date" t-options="{'widget': 'date'}" /></td>
</tr>
</t>
</tbody>
</table>
</t>
<t t-if="services">
<p style="page-break-after:always;" />
<h2>Services</h2>
<table name="services" class="table table-condensed">
<thead>
<tr>
<th />
<th>Service Type</th>
<th>Driver</th>
<th>Date</th>
<th>Cost</th>
<th>Odometer Value</th>
<th>Vendor</th>
<th>Notes</th>
</tr>
</thead>
<tbody>
<t t-set="report_vehicle" t-value="false" />
<t t-set="total_cost" t-value="0" />
<t t-set="service_cost" t-value="0" />
<t t-foreach="services" t-as="service">
<t t-if="not report_vehicle or report_vehicle != service.vehicle_id">
<tr t-if="report_vehicle">
<td colspan="3" />
<th align="right">Service Cost</th>
<th><span t-esc="service_cost" t-options="{'widget': 'monetary', 'display_currency': service.currency_id}" /></th>
<td colspan="3" />
</tr>
<t t-set="service_cost" t-value="0" />
<t t-set="report_vehicle" t-value="service.vehicle_id" />
<tr>
<th><span t-esc="service.vehicle_id.name" /></th>
<td colspan="7" />
</tr>
</t>
<tr>
<td />
<td><span t-esc="service.service_type_id.name" /></td>
<td><span t-esc="service.purchaser_id.name" /></td>
<td><span t-esc="service.date" t-options="{'widget': 'date'}" /></td>
<td><span t-esc="service.amount" t-options="{'widget': 'monetary', 'display_currency': service.currency_id}" /></td>
<td><span t-esc="service.odometer" /> <span t-if="service.odometer_unit">
<t t-esc="dict(service.fields_get(allfields=['odometer_unit'])['odometer_unit']['selection'])[service.odometer_unit]" />
</span>
</td>
<td><span t-esc="service.vendor_id.name" /></td>
<td><span t-esc="service.notes" /></td>
</tr>
<t t-set="service_cost" t-value="service_cost + service.amount" />
<t t-set="total_cost" t-value="total_cost + service.amount" />
</t>
<t t-if="report_vehicle">
<tr>
<td colspan="3" />
<th align="right">Service Cost</th>
<th><span t-esc="service_cost" t-options="{'widget': 'monetary', 'display_currency': service.currency_id}" /></th>
<td colspan="3" />
</tr>
<tr>
<td colspan="3" />
<th align="right">Total Cost</th>
<th><span t-esc="total_cost" t-options="{'widget': 'monetary', 'display_currency': service.currency_id}" /></th>
<td colspan="3" />
</tr>
</t>
</tbody>
</table>
</t>
<t t-if="odometers">
<p style="page-break-after:always;" />
<h2>Odometers</h2>
<table name="odometers" class="table table-condensed">
<thead>
<tr>
<th />
<th>Date</th>
<th>Driver</th>
<th>Odometer Value</th>
</tr>
</thead>
<tbody>
<t t-set="report_vehicle" t-value="false" />
<t t-foreach="odometers" t-as="odometer">
<t t-if="not report_vehicle or report_vehicle != odometer.vehicle_id">
<t t-set="report_vehicle" t-value="odometer.vehicle_id" />
<tr>
<th><span t-esc="odometer.vehicle_id.name" /></th>
<td colspan="3" />
</tr>
</t>
<tr>
<td />
<td><span t-esc="odometer.date" t-options="{'widget': 'date'}" /></td>
<td><span t-esc="odometer.driver_id.name" /></td>
<td><span t-esc="odometer.value" /> <span t-if="odometer.unit">
<t t-esc="dict(odometer.fields_get(allfields=['unit'])['unit']['selection'])[odometer.unit]" />
</span>
</td>
</tr>
</t>
</tbody>
</table>
</t>
<t t-if="drivers_history">
<p style="page-break-after:always;" />
<h2>Drivers History</h2>
<table name="drivers_history" class="table table-condensed">
<thead>
<tr>
<th />
<th>Driver</th>
<th>Start Date</th>
<th>End Date</th>
</tr>
</thead>
<tbody>
<t t-set="report_vehicle" t-value="false" />
<t t-foreach="drivers_history" t-as="history">
<t t-if="not report_vehicle or report_vehicle != history.vehicle_id">
<t t-set="report_vehicle" t-value="history.vehicle_id" />
<tr>
<th><span t-esc="history.vehicle_id.name" /></th>
<td colspan="3" />
</tr>
</t>
<tr>
<td />
<td><span t-esc="history.driver_id.name" /></td>
<td><span t-esc="history.date_start" t-options="{'widget': 'date'}" /></td>
<td><span t-esc="history.date_end" t-options="{'widget': 'date'}" /></td>
</tr>
</t>
</tbody>
</table>
</t>
</div>
</t>
</t>
</t>
</template>
</odoo>

11
fleet_complete_report/report/vehicle_detail_reports.xml

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Report action -->
<record id="action_report_vehicle_detail" model="ir.actions.report">
<field name="name">Fleet - Complete Report</field>
<field name="model">vehicle.detail</field>
<field name="report_type">qweb-pdf</field>
<field name="report_name">fleet_complete_report.report_vehicle_detail</field>
<field name="report_file">fleet_complete_report.report_vehicle_detail</field>
</record>
</odoo>

2
fleet_complete_report/security/ir.model.access.csv

@ -0,0 +1,2 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_vehicle_detail,access.vehicle.detail,model_vehicle_detail,base.group_user,1,1,1,1
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 access_vehicle_detail access.vehicle.detail model_vehicle_detail base.group_user 1 1 1 1

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 576 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 733 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 911 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
fleet_complete_report/static/description/assets/icons/logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 673 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 878 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 653 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 905 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 839 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 427 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 627 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 988 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
fleet_complete_report/static/description/assets/misc/categories.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
fleet_complete_report/static/description/assets/misc/check-box.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
fleet_complete_report/static/description/assets/misc/compass.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
fleet_complete_report/static/description/assets/misc/corporate.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
fleet_complete_report/static/description/assets/misc/customer-support.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

BIN
fleet_complete_report/static/description/assets/misc/cybrosys-logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

BIN
fleet_complete_report/static/description/assets/misc/features.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 589 B

BIN
fleet_complete_report/static/description/assets/misc/logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

BIN
fleet_complete_report/static/description/assets/misc/pictures.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

BIN
fleet_complete_report/static/description/assets/misc/pie-chart.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

BIN
fleet_complete_report/static/description/assets/misc/right-arrow.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 967 B

BIN
fleet_complete_report/static/description/assets/misc/star.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
fleet_complete_report/static/description/assets/misc/support.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

BIN
fleet_complete_report/static/description/assets/misc/whatsapp.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

BIN
fleet_complete_report/static/description/assets/modules/budget_image.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

BIN
fleet_complete_report/static/description/assets/modules/credit_image.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

BIN
fleet_complete_report/static/description/assets/modules/employee_image.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

BIN
fleet_complete_report/static/description/assets/modules/export_image.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

BIN
fleet_complete_report/static/description/assets/modules/gantt_image.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

BIN
fleet_complete_report/static/description/assets/modules/quotation_image.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

BIN
fleet_complete_report/static/description/assets/screenshots/fleet_1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 107 KiB

BIN
fleet_complete_report/static/description/assets/screenshots/fleet_10.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

BIN
fleet_complete_report/static/description/assets/screenshots/fleet_11.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

BIN
fleet_complete_report/static/description/assets/screenshots/fleet_2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 111 KiB

BIN
fleet_complete_report/static/description/assets/screenshots/fleet_3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 99 KiB

BIN
fleet_complete_report/static/description/assets/screenshots/fleet_4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

BIN
fleet_complete_report/static/description/assets/screenshots/fleet_5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

BIN
fleet_complete_report/static/description/assets/screenshots/fleet_6.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

BIN
fleet_complete_report/static/description/assets/screenshots/fleet_7.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

BIN
fleet_complete_report/static/description/assets/screenshots/fleet_8.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

BIN
fleet_complete_report/static/description/assets/screenshots/fleet_9.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

BIN
fleet_complete_report/static/description/assets/screenshots/hero.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 277 KiB

BIN
fleet_complete_report/static/description/banner.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

BIN
fleet_complete_report/static/description/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

757
fleet_complete_report/static/description/index.html

@ -0,0 +1,757 @@
<div style="background-color: #714B67; min-height: 600px; width: 100%; padding: 15px; position: relative;">
<!-- TITLE BAR -->
<div
style="border-bottom: 1px solid #875A7B; padding: 15px; display: flex; justify-content: space-between; align-items: center;">
<img src="/assets/misc/cybrosys-logo.png" width="42" height="42"
style="width: 42px; height: 42px;"/>
<div>
<div style="color: #7C7BAD; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;"
class="mr-2">
<i class="fa fa-check mr-1"></i>Community
</div>
<div style="color: #875A7B; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;"
class="mr-2">
<i class="fa fa-check mr-1"></i>Enterprise
</div>
</div>
</div>
<!-- END OF TITLE BAR -->
<!-- APP HERO -->
<h1 style="color: #FFFFFF; font-weight: bolder; font-size: 50px; text-align: center; margin-top: 50px;">
Fleet - Complete Report
</h1>
<p style="color:#FFFFFF; padding: 8px 15px; text-align: center; font-size: 24px;">
This module allows to generate complete PDF report for Fleet</p>.
<!-- END OF APP HERO -->
<img src="assets/screenshots/hero.gif"
style="width: 75%; height: auto; position: absolute; margin-left: auto; margin-right: auto; top: 45%; left: 12%; right: auto;"/>
</div>
<!-- NAVIGATION SECTION -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px; margin-top: 300px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="/assets/misc/compass.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Explore This
Module
</h2>
</div>
<div class="row my-4" style="font-family: 'Montserrat', sans-serif;">
<div class="col-sm-12 col-md-6 my-3">
<a href="#overview">
<div class="d-flex justify-content-between align-items-center"
style="background-color: #f5f5f5; padding: 30px; width: 100%;">
<div>
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">
Overview
</span>
<span
style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">
Learn
more about this
module
</span>
</div>
<img src="/assets/misc/right-arrow.png" width="36" height="36"/>
</div>
</a>
</div>
<div class="col-sm-12 col-md-6 my-3">
<a href="#features">
<div class="d-flex justify-content-between align-items-center"
style="background-color: #f5f5f5; padding: 30px; width: 100%;">
<div>
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">
Features
</span>
<span
style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">
View
features of this
module
</span>
</div>
<img src="/assets/misc/right-arrow.png" width="36" height="36"/>
</div>
</a>
</div>
<div class="col-sm-12 col-md-6 my-3">
<a href="#screenshots">
<div class="d-flex justify-content-between align-items-center"
style="background-color: #f5f5f5; padding: 30px; width: 100%;">
<div>
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">
Screenshots
</span>
<span
style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">
View
screenshots for this
module
</span>
</div>
<img src="/assets/misc/right-arrow.png" width="36" height="36"/>
</div>
</a>
</div>
</div>
<!-- END OF NAVIGATION SECTION -->
<!-- OVERVIEW SECTION -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;" id="overview">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="/assets/misc/pie-chart.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Overview
</h2>
</div>
<div class="row"
style="font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 14px; line-height: 200%;">
<div class="col-sm-12 py-4">
This module crafted by Cybrosys Technologies provides an option to generate custom PDF report in Fleet with
vehicle details, contracts, services, odometer readings and drivers history for the selected period.
</div>
</div>
<!-- END OF OVERVIEW SECTION -->
<!-- FEATURES SECTION -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;" id="features">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="/assets/misc/features.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Features
</h2>
</div>
<div class="row"
style="font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 14px; line-height: 200%;">
<div class="col-sm-12 col-md-6">
<div class="d-flex align-items-start"
style="margin-top: 40px; margin-bottom: 40px">
<img src="/assets/misc/check-box.png" class="mr-2"/>
<div>
<span style="display: block; font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
<h4 style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
New wizard</h4>
<p style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
Use the new wizard that can be used to generate custom report.
</p>
</span>
</div>
</div>
<div class="d-flex align-items-start"
style="margin-top: 30px; margin-bottom: 30px">
<img src="/assets/misc/check-box.png" class="mr-2"/>
<div>
<span style="display: block; font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
<h4 style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Detailed Report</h4>
<p style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
The PDF report that contains vehicle details, contracts, services, odometer readings and drivers history for the selected vehicles.
</p>
</span>
</div>
</div>
</div>
</div>
<!-- END OF FEATURES SECTION -->
<!-- SCREENSHOTS SECTION -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;"
id="screenshots">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="/assets/misc/pictures.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Screenshots
</h2>
</div>
<div class="row">
<div class="col-lg-12 my-2">
<h4 class="mt-2"
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Configuration</h4>
<p style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important; line-height: 30px !important;">The user should be added to the security group: Administrator(Human Resources/ Fleet) inorder to get access to the new menu.</p>
<img src="assets/screenshots/fleet_1.png" class="img-responsive img-thumbnail border" width="100%" height="auto" />
</div>
<div class="col-lg-12 my-2">
<h4 class="mt-2"
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
New menu</h4>
<p style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
Fleet -> Reporting -> Vehicle Details. Use this menu to open the wizard.
</p>
<img src="assets/screenshots/fleet_2.png" class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
</div>
<div class="col-lg-12 my-2">
<h4 class="mt-2"
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Wizard to create custom report</h4>
<p style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
This wizard can be used to generate a custom PDF report for Fleet. We can specify Start Date and End Date to
filter the records based on the period.
The Start Date is a mandatory field. If we don't specify an End Date, then the current date will be taken.
Then we can choose the state of vehicles
for which we have to generate the report.The States field is also a required one. Then, we can select
Vehicles in the selected states. If we have
to print report for all vehicles for the selected states, leave Vehicles field as empty. Exclude Vehicle
Data checkbox will be checked by default.
Uncheck it to show the vehicle data in the report.
</p>
<img src="assets/screenshots/fleet_3.png" class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
</div>
<div class="col-lg-12 my-2">
<h4 class="mt-2"
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Vehicles</h4>
<p style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
The report starts with the details like the period, the selected states of vehicles and the list of
Vehicles.
The vehicle data will be displayed if Exclude Vehicle Data checkbox is unchecked.
</p>
<img src="assets/screenshots/fleet_4.png" class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
<br/>
<img src="assets/screenshots/fleet_5.png" class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
</div>
<div class="col-lg-12 my-2">
<h4 class="mt-2"
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Contracts</h4>
<p style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
All the contracts of the listed vehicles in the selected period grouped by vehicles.
</p>
<img src="assets/screenshots/fleet_6.png" class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
</div>
<div class="col-lg-12 my-2">
<h4 class="mt-2"
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Services</h4>
<p style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
All the service records of the listed vehicles in the selected period grouped by vehicles with vehicle wise
total of service cost and the whole total.
</p>
<img src="assets/screenshots/fleet_7.png" class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
</div>
<div class="col-lg-12 my-2">
<h4 class="mt-2"
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Odometers</h4>
<p style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
All the odometer readings of the listed vehicles in the selected period grouped by vehicles.
</p>
<img src="assets/screenshots/fleet_8.png" class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
</div>
<div class="col-lg-12 my-2">
<h4 class="mt-2"
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Drivers History</h4>
<p style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
All the divers history of the listed vehicles in the selected period grouped by vehicles.
</p>
<img src="assets/screenshots/fleet_9.png" class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
</div>
<div class="col-lg-12 my-2">
<h4 class="mt-2"
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Exclude Vehicle Data</h4>
<p style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
Exclude Vehicle Data checkbox is checked by default. This will hide the vehicle data from the report.
</p>
<img src="assets/screenshots/fleet_10.png" class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
</div>
<div class="col-lg-12 my-2">
<p style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
Then, the report will contain only the contracts, services, odometers and the drivers history.
</p>
<img src="assets/screenshots/fleet_11.png" class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
</div>
</div>
<!-- END OF SCREENSHOTS SECTION -->
<!-- RELATED PRODUCTS -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="/assets/misc/categories.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Related
Products
</h2>
</div>
<div class="row">
<div class="col-sm-12">
<div id="demo1" class="row carousel slide" data-ride="carousel">
<!-- The slideshow -->
<div class="carousel-inner" style="padding: 30px;">
<div class="carousel-item" style="min-height: 198.656px;">
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"
style="float:left">
<a href="https://apps.odoo.com/apps/modules/15.0/dynamic_accounts_report/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="//apps.odoocdn.com/apps/assets/15.0/account_day_book/assets/modules/dynamic_accounts_report.png?3e73b0c">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"
style="float:left">
<a href="https://apps.odoo.com/apps/modules/15.0/custom_gantt_view/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="//apps.odoocdn.com/apps/assets/15.0/account_day_book/assets/modules/custom_gantt_view.png?3e73b0c">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"
style="float:left">
<a href="https://apps.odoo.com/apps/modules/15.0/project_custom_gantt/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="//apps.odoocdn.com/apps/assets/15.0/account_day_book/assets/modules/project_custom_gantt.png?3e73b0c">
</div>
</a>
</div>
</div>
<div class="carousel-item active"
style="min-height: 198.656px;">
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"
style="float:left">
<a href="https://apps.odoo.com/apps/modules/15.0/account_reports_xlsx/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="//apps.odoocdn.com/apps/assets/15.0/account_day_book/assets/modules/account_reports_xlsx.png?3e73b0c">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"
style="float:left">
<a href="https://apps.odoo.com/apps/modules/15.0/base_accounting_kit/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="//apps.odoocdn.com/apps/assets/15.0/account_day_book/assets/modules/base_accounting_kit.gif?3e73b0c">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"
style="float:left">
<a href="https://apps.odoo.com/apps/modules/15.0/hr_payroll_community/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="//apps.odoocdn.com/apps/assets/15.0/account_day_book/assets/modules/hr_payroll_community.png?3e73b0c">
</div>
</a>
</div>
</div>
</div>
<!-- Left and right controls -->
<a class="carousel-control-prev" href="#demo1" data-slide="prev"
style="width:35px; color:#000">
<span
class="carousel-control-prev-icon">
<i class="fa fa-chevron-left" style="font-size:24px"></i>
</span>
</a>
<a class="carousel-control-next" href="#demo1" data-slide="next"
style="width:35px; color:#000">
<span class="carousel-control-next-icon">
<i class="fa fa-chevron-right"
style="font-size:24px"></i>
</span>
</a>
</div>
</div>
</div>
<!-- END OF RELATED PRODUCTS -->
<!-- OUR SERVICES -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="/assets/misc/star.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Our Services
</h2>
</div>
<div class="container my-5">
<div class="row">
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #1dd1a1 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/cogs.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Customization
</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #ff6b6b !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/wrench.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Implementation
</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #6462CD !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/lifebuoy.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Support
</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #ffa801 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/user.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Hire
Odoo
Developer
</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #54a0ff !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/puzzle.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Integration
</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #6d7680 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/update.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Migration
</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #786fa6 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/consultation.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Consultancy
</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #f8a5c2 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/training.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Implementation
</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #e6be26 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/license.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Licensing Consultancy
</h6>
</div>
</div>
</div>
<!-- END OF END OF OUR SERVICES -->
<!-- OUR INDUSTRIES -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="/assets/misc/corporate.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Our
Industries
</h2>
</div>
<div class="container my-5">
<div class="row">
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/trading-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Trading
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Easily procure
and
sell your products
</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/pos-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
POS
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Easy
configuration
and convivial experience
</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/education-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Education
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
A platform for
educational management
</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/manufacturing-black.png"
class="img-responsive mb-3" height="48px"
width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Manufacturing
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Plan, track and
schedule your operations
</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/ecom-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
E-commerce &amp; Website
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Mobile
friendly,
awe-inspiring product pages
</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/service-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Service Management
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Keep track of
services and invoice
</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/restaurant-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Restaurant
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Run your bar or
restaurant methodically
</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/hotel-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Hotel Management
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
An
all-inclusive
hotel management application
</p>
</div>
</div>
</div>
</div>
<!-- END OF END OF OUR INDUSTRIES -->
<!-- SUPPORT -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="/assets/misc/customer-support.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Support
</h2>
</div>
<div class="container mt-5">
<div class="row">
<div class="col-sm-12 col-md-6">
<div style="background-color: #F6F8F9; padding: 30px; display: flex; align-items: center;">
<div class="mr-4"
style="background-color: #714B67; display: inline-block; height: 70px; width: 70px; display: flex; align-items: center; justify-content: center;">
<img src="/assets/misc/support.png" height="48" width="48"
style="width: 42px; height: 42px;"/>
</div>
<div>
<h4>Need Help?</h4>
<p style="line-height: 100%;">Got questions or need help?
Get in touch.
</p>
<a href="mailto:odoo@cybrosys.com">
<p style="font-weight: 400; font-size: 28px; line-height: 80%; color: #714B67;">
odoo@cybrosys.com
</p>
</a>
</div>
</div>
</div>
<div class="col-sm-12 col-md-6">
<div style="background-color: #F6F8F9; padding: 30px; display: flex; align-items: center;">
<div class="mr-4"
style="background-color: #2AC44D; display: inline-block; height: 70px; width: 70px; display: flex; align-items: center; justify-content: center;">
<img src="/assets/misc/whatsapp.png" height="52" width="52"
style="width: 52px; height: 52px;"/>
</div>
<div>
<h4>WhatsApp</h4>
<p style="line-height: 100%;">Say hi to us on WhatsApp!</p>
<a href="https://api.whatsapp.com/send?phone=918606827707">
<p style="font-weight: 400; font-size: 28px; line-height: 80%; color: #714B67;">
+91 86068
27707
</p>
</a>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12 my-5 d-flex justify-content-center align-items-center">
<img src="/assets/misc/logo.png" width="144" height="31"
style="width:144px; height: 31px; margin-top: 40px;"/>
</div>
</div>
</div>
<!-- END OF SUPPORT -->

24
fleet_complete_report/wizard/__init__.py

@ -0,0 +1,24 @@
# -*- coding: utf-8 -*-
###################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies (<https://www.cybrosys.com>).
# Author: Cybrosys Techno Solutions (<https://www.cybrosys.com>)
#
# This program is free software: you can modify
# it under the terms of the GNU Affero General Public License (AGPL) as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# 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 for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
###################################################################################
from . import vehicle_detail

95
fleet_complete_report/wizard/vehicle_detail.py

@ -0,0 +1,95 @@
# -*- coding: utf-8 -*-
###################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies (<https://www.cybrosys.com>).
# Author: Cybrosys Techno Solutions (<https://www.cybrosys.com>)
#
# This program is free software: you can modify
# it under the terms of the GNU Affero General Public License (AGPL) as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# 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 for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
###################################################################################
from odoo import api, fields, models
class VehicleDetail(models.TransientModel):
_name = 'vehicle.detail'
_description = 'Vehicle Details'
vehicle_ids = fields.Many2many('fleet.vehicle', string='Vehicles',
domain="[('state_id', 'in', state_ids)]",
help="List of vehicles to generate report")
state_ids = fields.Many2many(
'fleet.vehicle.state', string='States', required=True,
help='States of the vehicle')
start_date = fields.Date(
string='Start Date', required=True, default=fields.Date.context_today,
help='Start date to filter the records')
end_date = fields.Date(
string='End Date', equired=True, default=fields.Date.context_today,
help='End date to filter the records')
exclude_vehicle_data = fields.Boolean(
string='Exclude Vehicle Data', default=True,
help='Enable this to hide the vehicle data in the report')
@api.onchange('start_date')
def _onchange_date_from(self):
"""
set valid start_date on changing it
"""
if not self.end_date:
if self.start_date and self.start_date > fields.Date.context_today(
self):
self.start_date = fields.Date.context_today(self)
else:
if self.start_date and self.start_date > self.end_date:
self.start_date = self.end_date
@api.onchange('end_date')
def _onchange_date_to(self):
"""
set valid end_date on changing it
"""
if self.start_date and self.end_date and \
self.start_date > self.end_date:
self.end_date = self.start_date
if self.end_date and self.end_date > fields.Date.context_today(self):
self.end_date = fields.Date.context_today(self)
@api.onchange('state_ids')
def _onchange_state_ids(self):
"""
filter the vehicle_ids on changing the state_ids
"""
if self.state_ids:
self.vehicle_ids = self.vehicle_ids.filtered(
lambda vehicle: vehicle.state_id.id in self.state_ids.ids)
def action_print_report(self):
"""
print PDF report for fleet based on selected data
:return: report action
"""
vehicles = self.vehicle_ids
if not self.vehicle_ids:
if self.state_ids:
vehicles = self.env['fleet.vehicle'].search(
[('state_id', 'in', self.state_ids.ids)])
else:
vehicles = self.env['fleet.vehicle'].search([])
data = {'vehicle_ids': vehicles.ids}
return self.env.ref(
'fleet_complete_report.action_report_vehicle_detail').report_action(
self, data=data)

44
fleet_complete_report/wizard/vehicle_detail_views.xml

@ -0,0 +1,44 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<!-- Wizard form view -->
<record id="vehicle_detail_view_form" model="ir.ui.view">
<field name="name">vehicle.detail.view.form</field>
<field name="model">vehicle.detail</field>
<field name="arch" type="xml">
<form string="Vehicle Details">
<group>
<group>
<field name="start_date" widget="date" />
<field name="state_ids" widget="many2many_tags" />
</group>
<group>
<field name="end_date" widget="date" />
<field name="vehicle_ids" widget="many2many_tags" />
<field name="exclude_vehicle_data" />
</group>
</group>
<footer>
<button string="Print" name="action_print_report"
type="object" class="btn-primary" />
<button string="Discard" class="btn-default"
special="cancel" />
</footer>
</form>
</field>
</record>
<!-- Wizard action window -->
<record id="vehicle_detail_action" model="ir.actions.act_window">
<field name="name">Vehicle Details</field>
<field name="res_model">vehicle.detail</field>
<field name="type">ir.actions.act_window</field>
<field name="view_mode">form</field>
<field name="view_id" ref="vehicle_detail_view_form" />
<field name="target">new</field>
</record>
<!-- Wizard Menu: Vehicle Details -->
<menuitem name="Vehicle Details" id="vehicle_detail_menu_action"
action="vehicle_detail_action" parent="fleet.menu_fleet_reporting"
groups="fleet.fleet_group_manager" sequence="2" />
</odoo>
Loading…
Cancel
Save