Browse Source

Sep 30 : [ADD] Inital Commit 'fleet_complete_report'

pull/216/head
AjmalCybro 3 years ago
parent
commit
842d0342da
  1. 41
      fleet_complete_report/README.rst
  2. 24
      fleet_complete_report/__init__.py
  3. 45
      fleet_complete_report/__manifest__.py
  4. 7
      fleet_complete_report/doc/RELEASE_NOTES.md
  5. 23
      fleet_complete_report/report/__init__.py
  6. 86
      fleet_complete_report/report/vehicle_detail_report.py
  7. 307
      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/modules/budget_image.png
  31. BIN
      fleet_complete_report/static/description/assets/modules/credit_image.png
  32. BIN
      fleet_complete_report/static/description/assets/modules/employee_image.png
  33. BIN
      fleet_complete_report/static/description/assets/modules/export_image.png
  34. BIN
      fleet_complete_report/static/description/assets/modules/gantt_image.png
  35. BIN
      fleet_complete_report/static/description/assets/modules/quotation_image.png
  36. BIN
      fleet_complete_report/static/description/assets/screenshots/fleet_complete_report_1.png
  37. BIN
      fleet_complete_report/static/description/assets/screenshots/fleet_complete_report_10.png
  38. BIN
      fleet_complete_report/static/description/assets/screenshots/fleet_complete_report_2.png
  39. BIN
      fleet_complete_report/static/description/assets/screenshots/fleet_complete_report_3.png
  40. BIN
      fleet_complete_report/static/description/assets/screenshots/fleet_complete_report_4.png
  41. BIN
      fleet_complete_report/static/description/assets/screenshots/fleet_complete_report_5.png
  42. BIN
      fleet_complete_report/static/description/assets/screenshots/fleet_complete_report_6.png
  43. BIN
      fleet_complete_report/static/description/assets/screenshots/fleet_complete_report_7.png
  44. BIN
      fleet_complete_report/static/description/assets/screenshots/fleet_complete_report_8.png
  45. BIN
      fleet_complete_report/static/description/assets/screenshots/fleet_complete_report_9.png
  46. BIN
      fleet_complete_report/static/description/assets/screenshots/hero.png
  47. BIN
      fleet_complete_report/static/description/banner.png
  48. BIN
      fleet_complete_report/static/description/icon.png
  49. 553
      fleet_complete_report/static/description/index.html
  50. 23
      fleet_complete_report/wizard/__init__.py
  51. 94
      fleet_complete_report/wizard/vehicle_detail.py
  52. 46
      fleet_complete_report/wizard/vehicle_detail_views.xml

41
fleet_complete_report/README.rst

@ -0,0 +1,41 @@
.. 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/>`__
Credits
-------
Developer: Abhishek E T @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>`__

24
fleet_complete_report/__init__.py

@ -0,0 +1,24 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2022-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Abhishek E T (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 report
from . import wizard

45
fleet_complete_report/__manifest__.py

@ -0,0 +1,45 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2022-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Abhishek E T (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 - Complete Report',
'version': '13.0.1.0.0',
'category': 'Human Resources/Fleet',
'summary': 'Custom report for Fleet',
'description': 'Create 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'
],
'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>
#### __.09.2022
#### Version 14.0.1.0.0
#### ADD
- Initial commit for Fleet - Complete Report

23
fleet_complete_report/report/__init__.py

@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2022-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Abhishek E T (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 vehicle_detail_report

86
fleet_complete_report/report/vehicle_detail_report.py

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

307
fleet_complete_report/report/vehicle_detail_report_templates.xml

@ -0,0 +1,307 @@
<?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>Plan To Change Car</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><input type="checkbox" t-att-checked="vehicle.plan_to_change_car" /></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': env.company.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': env.company.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/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_complete_report_1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 91 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 427 KiB

BIN
fleet_complete_report/static/description/banner.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

BIN
fleet_complete_report/static/description/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

553
fleet_complete_report/static/description/index.html

@ -0,0 +1,553 @@
<div class="container" style="padding: 1rem !important; margin-bottom: 1rem !important;">
<div class="row">
<div class="col-sm-12 col-md-12 col-lg-12 d-flex justify-content-between" style="border-bottom: 1px solid #d5d5d5;">
<div class="my-3">
<img src="./assets/icons/logo.png" style="width: auto !important; height: 40px !important;">
</div>
<div class="my-3 d-flex align-items-center">
<div style="background-color: #7C7BAD !important; color: #fff !important; font-weight: 600 !important; padding: 5px 15px 8px !important; margin: 0 5px !important;">
<i class="fa fa-check mr-1"></i>Community
</div>
<div style="background-color: #875A7B !important; color: #fff !important; font-weight: 600 !important; padding: 5px 15px 8px !important; margin: 0 5px !important;">
<i class="fa fa-check mr-1"></i>Enterprise
</div>
</div>
</div>
</div>
</div>
<div class="container" style="padding: 0rem 1.5rem 4rem !important">
<div class="row" style="height: 900px !important;">
<div class="col-sm-12 col-md-12 col-lg-12" style="padding: 4rem 1rem !important; background-color: #714B67 !important; height: 600px !important; border-radius: 20px !important;">
<h1 style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #FFFFFF !important; font-size: 3.5rem !important; text-align: center !important;">
Fleet - Complete Report
</h1>
<p style="font-family: 'Montserrat', sans-serif !important; font-weight: 300 !important; color: #FFFFFF !important; font-size: 1.4rem !important; text-align: center !important;">
This module allows to generate complete PDF report for Fleet
</p>
<img src="./assets/screenshots/hero.png" class="img-responsive" width="100%" height="auto" />
</div>
</div>
<div class="row">
<div class="col-md-12" style="border-bottom: 1px solid #d5d5d5 !important; margin-bottom: 2rem !important">
<h2 style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.5rem !important;">
<i class="fa fa-compass mr-2"></i>Explore this module
</h2>
</div>
<div class="col-md-6">
<a href="#overview" style="text-decoration: none !important;">
<div class="row" style="background-color: #f5f2f5 !important; border-radius: 10px !important; margin: 1rem !important; padding: 1.5em !important; height: 100px !important;">
<div class="col-8">
<h3 style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.2rem !important;">Overview</h3>
<p style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #714B67 !important; font-size: 0.9rem !important;">
Learn more about this module
</p>
</div>
<div class="col-4 text-right d-flex justify-content-end align-items-center">
<i class="fa fa-chevron-right" style="color: #714B67 !important;"></i>
</div>
</div>
</a>
</div>
<div class="col-md-6">
<a href="#configuration" style="text-decoration: none !important;">
<div class="row" style="background-color: #f5f2f5 !important; border-radius: 10px !important; margin: 1rem !important; padding: 1.5em !important; height: 100px !important;">
<div class="col-8">
<h3 style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.2rem !important;">
Configuration</h3>
<p style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #714B67 !important; font-size: 0.9rem !important;">
View configurations for this module
</p>
</div>
<div class="col-4 text-right d-flex justify-content-end align-items-center">
<i class="fa fa-chevron-right" style="color: #714B67 !important;"></i>
</div>
</div>
</a>
</div>
<div class="col-md-6">
<a href="#features" style="text-decoration: none !important;">
<div class="row" style="background-color: #f5f2f5 !important; border-radius: 10px !important; margin: 1rem !important; padding: 1.5em !important; height: 100px !important;">
<div class="col-8">
<h3 style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.2rem !important;">
Features</h3>
<p style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #714B67 !important; font-size: 0.9rem !important;">
View features of this module
</p>
</div>
<div class="col-4 text-right d-flex justify-content-end align-items-center">
<i class="fa fa-chevron-right" style="color: #714B67 !important;"></i>
</div>
</div>
</a>
</div>
<div class="col-md-6">
<a href="#screenshots" style="text-decoration: none !important;">
<div class="row" style="background-color: #f5f2f5 !important; border-radius: 10px !important; margin: 1rem !important; padding: 1.5em !important; height: 100px !important;">
<div class="col-8">
<h3 style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.2rem !important;">Screenshots</h3>
<p style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #714B67 !important; font-size: 0.9rem !important;">
See key screenshots of this module
</p>
</div>
<div class="col-4 text-right d-flex justify-content-end align-items-center">
<i class="fa fa-chevron-right" style="color: #714B67 !important;"></i>
</div>
</div>
</a>
</div>
</div>
<div class="row" id="overview">
<div class="col-md-12" style="border-bottom: 1px solid #d5d5d5 !important; margin: 2rem 0 !important">
<h2 style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.5rem !important;">
<i class="fa fa-pie-chart mr-2"></i>Overview
</h2>
</div>
<div class="col-mg-12 pl-3">
<p style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important; line-height: 30px !important;">
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.
</p>
</div>
</div>
<div class="row" id="configuration">
<div class="col-md-12" style="border-bottom: 1px solid #d5d5d5 !important; margin: 2rem 0 !important">
<h2 style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.5rem !important;">
<i class="fa fa-cogs mr-2"></i>Configuration
</h2>
</div>
<div class="col-mg-12 pl-3">
<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_complete_report_1.png" class="img-responsive img-thumbnail border" width="100%" height="auto" />
</div>
</div>
<div class="row" id="features">
<div class="col-md-12" style="border-bottom: 1px solid #d5d5d5 !important; margin: 2rem 0 !important">
<h2 style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.5rem !important;">
<i class="fa fa-star mr-2"></i>Features
</h2>
</div>
<div class="col-md-6 pl-3 py-3 d-flex">
<div>
<img src="assets/icons/check.png">
</div>
<div>
<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>
</div>
</div>
<div class="col-md-6 pl-3 py-3 d-flex">
<div>
<img src="assets/icons/check.png">
</div>
<div>
<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>
</div>
</div>
</div>
<div class="row" id="screenshots">
<div class="col-md-12" style="border-bottom: 1px solid #d5d5d5 !important; margin: 2rem 0 !important">
<h2 style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.5rem !important;">
<i class="fa fa-image mr-2"></i>Screenshots
</h2>
</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_complete_report_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_complete_report_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_complete_report_4.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_complete_report_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;">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_complete_report_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;">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_complete_report_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;">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_complete_report_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;">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_complete_report_9.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_complete_report_10.png" class="img-responsive img-thumbnail border" width="100%" height="auto" />
</div>
</div>
<!-- SUGGESTED PRODUCTS -->
<div class="row">
<div class="col-lg-12 d-flex flex-column justify-content-center" style="text-align: center; padding: 2.5rem 1rem !important;">
<h2 style="color: #212529 !important;">Suggested Products</h2>
<hr style="border: 3px solid #714B67 !important; background-color: #714B67 !important; width: 80px !important; margin-bottom: 2rem !important;" />
<div id="demo1" class="row carousel slide" data-ride="carousel">
<!-- The slideshow -->
<div class="carousel-inner">
<div class="carousel-item active" style="min-height:0px">
<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/export_stockinfo_xls/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-top-left-radius:10px; border-top-right-radius:10px" src="./assets/modules/export_image.png">
</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-top-left-radius:10px; border-top-right-radius:10px" src="./assets/modules/gantt_image.png">
</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/sales_credit_limit/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-top-left-radius:10px; border-top-right-radius:10px" src="./assets/modules/credit_image.png">
</div>
</a>
</div>
</div>
<div class="carousel-item" style="min-height:0px">
<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_account_budget/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-top-left-radius:10px; border-top-right-radius:10px" src="./assets/modules/budget_image.png">
</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/product_to_quotation/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-top-left-radius:10px; border-top-right-radius:10px" src="./assets/modules/quotation_image.png">
</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/employee_documents_expiry/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-top-left-radius:10px; border-top-right-radius:10px" src="./assets/modules/employee_image.png">
</div>
</a>
</div>
</div>
</div>
<!-- Left and right controls -->
<a class="carousel-control-prev" href="#demo1" data-slide="prev" style="left:-25px;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="right:-25px;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 SUGGESTED PRODUCTS -->
<!-- OUR SERVICES -->
<section class="container" style="margin-top: 6rem !important;">
<div class="row">
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center">
<h2 style="color: #212529 !important;">Our Services</h2>
<hr style="border: 3px solid #714B67 !important; background-color: #714B67 !important; width: 80px !important; margin-bottom: 2rem !important;" />
</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: #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>
</section>
<!-- END OF END OF OUR SERVICES -->
<!-- OUR INDUSTRIES -->
<section class="container" style="margin-top: 6rem !important;">
<div class="row">
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center">
<h2 style="color: #212529 !important;">Our Industries</h2>
<hr style="border: 3px solid #714B67 !important; background-color: #714B67 !important; width: 80px !important; margin-bottom: 2rem !important;" />
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center" style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./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: 10px; 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: 10px; 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: 10px; 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: 10px; 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: 10px; 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: 10px; 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: 10px; 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>
</section>
<!-- END OF END OF OUR INDUSTRIES -->
<!-- FOOTER -->
<!-- Footer Section -->
<section class="container" style="margin: 5rem auto 2rem;">
<div class="row" style="max-width:1540px;">
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center">
<h2 style="color: #212529 !important;">Need Help?</h2>
<hr style="border: 3px solid #714B67 !important; background-color: #714B67 !important; width: 80px !important; margin-bottom: 2rem !important;" />
</div>
</div>
<!-- Contact Cards -->
<div class="row d-flex justify-content-center align-items-center" style="max-width:1540px; margin: 0 auto 2rem auto;">
<div class="col-lg-12" style="padding: 0rem 3rem 2rem; border-radius: 10px; margin-right: 3rem; ">
<div class="row mt-4">
<div class="col-lg-6">
<a href="mailto:odoo@cybrosys.com" target="_blank" class="btn btn-block mb-2 deep_hover" style="text-decoration: none; background-color: #4d4d4d; color: #FFF; border-radius: 4px;">
<i class="fa fa-envelope mr-2"></i>odoo@cybrosys.com
</a>
</div>
<div class="col-lg-6">
<a href="https://api.whatsapp.com/send?phone=918606827707" target="_blank" class="btn btn-block mb-2 deep_hover" style="text-decoration: none; background-color: #25D366; color: #FFF; border-radius: 4px;">
<i class="fa fa-whatsapp mr-2"></i>WhatsApp
</a>
</div>
</div>
</div>
</div>
<!-- End of Contact Cards -->
</section>
<!-- Footer -->
<section class="oe_container" style="padding: 2rem 3rem 1rem;">
<div class="row" style="max-width:1540px; margin: 0 auto; margin-right: 3rem; ">
<!-- Logo -->
<div class="col-lg-12 d-flex justify-content-center align-items-center" style="margin-top: 3rem;">
<img src="https://www.cybrosys.com/images/logo.png" width="200px" height="auto" />
</div>
<!-- End of Logo -->
<div class="col-lg-12">
<hr style="margin-top: 3rem;background: linear-gradient(90deg, rgba(2,0,36,0) 0%, rgba(229,229,229,1) 33%, rgba(229,229,229,1) 58%, rgba(0,212,255,0) 100%); height: 2px; border-style: none;">
<!-- End of Footer Section -->
</div>
</div>
</section>
<!-- END OF FOOTER -->
</div>

23
fleet_complete_report/wizard/__init__.py

@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2022-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Abhishek E T (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 vehicle_detail

94
fleet_complete_report/wizard/vehicle_detail.py

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

46
fleet_complete_report/wizard/vehicle_detail_views.xml

@ -0,0 +1,46 @@
<?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"
options="{'no_create': True, 'no_edit': True}" />
</group>
<group>
<field name="end_date" widget="date" />
<field name="vehicle_ids" widget="many2many_tags"
options="{'no_create': True, 'no_edit': True}" />
<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