Browse Source

May 25 : [ADD] Initial Commit 'fleet_vehicle_inspection_management'

pull/257/head
Sayooj 2 years ago
parent
commit
325bf3210b
  1. 45
      fleet_vehicle_inspection_management/README.rst
  2. 24
      fleet_vehicle_inspection_management/__init__.py
  3. 56
      fleet_vehicle_inspection_management/__manifest__.py
  4. 18
      fleet_vehicle_inspection_management/data/ir_cron_data.xml
  5. 15
      fleet_vehicle_inspection_management/data/ir_sequence_data.xml
  6. 56
      fleet_vehicle_inspection_management/data/mail_template_data.xml
  7. 6
      fleet_vehicle_inspection_management/doc/RELEASE_NOTES.md
  8. 29
      fleet_vehicle_inspection_management/models/__init__.py
  9. 92
      fleet_vehicle_inspection_management/models/fleet_vehicle.py
  10. 38
      fleet_vehicle_inspection_management/models/inspection_images.py
  11. 233
      fleet_vehicle_inspection_management/models/inspection_request.py
  12. 55
      fleet_vehicle_inspection_management/models/inspection_request_line.py
  13. 42
      fleet_vehicle_inspection_management/models/vehicle_inspection.py
  14. 44
      fleet_vehicle_inspection_management/models/vehicle_service_log.py
  15. 119
      fleet_vehicle_inspection_management/reports/vehicle_inspection_report_templates.xml
  16. 11
      fleet_vehicle_inspection_management/reports/vehicle_inspection_reports.xml
  17. 8
      fleet_vehicle_inspection_management/security/ir.model.access.csv
  18. 51
      fleet_vehicle_inspection_management/security/vehicle_inspection_access.xml
  19. BIN
      fleet_vehicle_inspection_management/static/description/assets/icons/check.png
  20. BIN
      fleet_vehicle_inspection_management/static/description/assets/icons/chevron.png
  21. BIN
      fleet_vehicle_inspection_management/static/description/assets/icons/cogs.png
  22. BIN
      fleet_vehicle_inspection_management/static/description/assets/icons/consultation.png
  23. BIN
      fleet_vehicle_inspection_management/static/description/assets/icons/ecom-black.png
  24. BIN
      fleet_vehicle_inspection_management/static/description/assets/icons/education-black.png
  25. BIN
      fleet_vehicle_inspection_management/static/description/assets/icons/hotel-black.png
  26. BIN
      fleet_vehicle_inspection_management/static/description/assets/icons/license.png
  27. BIN
      fleet_vehicle_inspection_management/static/description/assets/icons/lifebuoy.png
  28. BIN
      fleet_vehicle_inspection_management/static/description/assets/icons/manufacturing-black.png
  29. BIN
      fleet_vehicle_inspection_management/static/description/assets/icons/pos-black.png
  30. BIN
      fleet_vehicle_inspection_management/static/description/assets/icons/puzzle.png
  31. BIN
      fleet_vehicle_inspection_management/static/description/assets/icons/restaurant-black.png
  32. BIN
      fleet_vehicle_inspection_management/static/description/assets/icons/service-black.png
  33. BIN
      fleet_vehicle_inspection_management/static/description/assets/icons/trading-black.png
  34. BIN
      fleet_vehicle_inspection_management/static/description/assets/icons/training.png
  35. BIN
      fleet_vehicle_inspection_management/static/description/assets/icons/update.png
  36. BIN
      fleet_vehicle_inspection_management/static/description/assets/icons/user.png
  37. BIN
      fleet_vehicle_inspection_management/static/description/assets/icons/wrench.png
  38. BIN
      fleet_vehicle_inspection_management/static/description/assets/misc/categories.png
  39. BIN
      fleet_vehicle_inspection_management/static/description/assets/misc/check-box.png
  40. BIN
      fleet_vehicle_inspection_management/static/description/assets/misc/compass.png
  41. BIN
      fleet_vehicle_inspection_management/static/description/assets/misc/corporate.png
  42. BIN
      fleet_vehicle_inspection_management/static/description/assets/misc/customer-support.png
  43. BIN
      fleet_vehicle_inspection_management/static/description/assets/misc/cybrosys-logo.png
  44. BIN
      fleet_vehicle_inspection_management/static/description/assets/misc/features.png
  45. BIN
      fleet_vehicle_inspection_management/static/description/assets/misc/logo.png
  46. BIN
      fleet_vehicle_inspection_management/static/description/assets/misc/pictures.png
  47. BIN
      fleet_vehicle_inspection_management/static/description/assets/misc/pie-chart.png
  48. BIN
      fleet_vehicle_inspection_management/static/description/assets/misc/right-arrow.png
  49. BIN
      fleet_vehicle_inspection_management/static/description/assets/misc/star.png
  50. BIN
      fleet_vehicle_inspection_management/static/description/assets/misc/support.png
  51. BIN
      fleet_vehicle_inspection_management/static/description/assets/misc/whatsapp.png
  52. BIN
      fleet_vehicle_inspection_management/static/description/assets/modules/1.png
  53. BIN
      fleet_vehicle_inspection_management/static/description/assets/modules/2.png
  54. BIN
      fleet_vehicle_inspection_management/static/description/assets/modules/3.png
  55. BIN
      fleet_vehicle_inspection_management/static/description/assets/modules/4.png
  56. BIN
      fleet_vehicle_inspection_management/static/description/assets/modules/5.png
  57. BIN
      fleet_vehicle_inspection_management/static/description/assets/modules/6.png
  58. BIN
      fleet_vehicle_inspection_management/static/description/assets/screenshots/0-1.png
  59. BIN
      fleet_vehicle_inspection_management/static/description/assets/screenshots/0.png
  60. BIN
      fleet_vehicle_inspection_management/static/description/assets/screenshots/1.png
  61. BIN
      fleet_vehicle_inspection_management/static/description/assets/screenshots/10.png
  62. BIN
      fleet_vehicle_inspection_management/static/description/assets/screenshots/11.png
  63. BIN
      fleet_vehicle_inspection_management/static/description/assets/screenshots/12.png
  64. BIN
      fleet_vehicle_inspection_management/static/description/assets/screenshots/13.png
  65. BIN
      fleet_vehicle_inspection_management/static/description/assets/screenshots/14.png
  66. BIN
      fleet_vehicle_inspection_management/static/description/assets/screenshots/15.png
  67. BIN
      fleet_vehicle_inspection_management/static/description/assets/screenshots/16.png
  68. BIN
      fleet_vehicle_inspection_management/static/description/assets/screenshots/17.png
  69. BIN
      fleet_vehicle_inspection_management/static/description/assets/screenshots/18.png
  70. BIN
      fleet_vehicle_inspection_management/static/description/assets/screenshots/19.png
  71. BIN
      fleet_vehicle_inspection_management/static/description/assets/screenshots/2.png
  72. BIN
      fleet_vehicle_inspection_management/static/description/assets/screenshots/20.png
  73. BIN
      fleet_vehicle_inspection_management/static/description/assets/screenshots/21.png
  74. BIN
      fleet_vehicle_inspection_management/static/description/assets/screenshots/22.png
  75. BIN
      fleet_vehicle_inspection_management/static/description/assets/screenshots/23.png
  76. BIN
      fleet_vehicle_inspection_management/static/description/assets/screenshots/24.png
  77. BIN
      fleet_vehicle_inspection_management/static/description/assets/screenshots/25.png
  78. BIN
      fleet_vehicle_inspection_management/static/description/assets/screenshots/26.png
  79. BIN
      fleet_vehicle_inspection_management/static/description/assets/screenshots/27.png
  80. BIN
      fleet_vehicle_inspection_management/static/description/assets/screenshots/28.png
  81. BIN
      fleet_vehicle_inspection_management/static/description/assets/screenshots/29.png
  82. BIN
      fleet_vehicle_inspection_management/static/description/assets/screenshots/3.png
  83. BIN
      fleet_vehicle_inspection_management/static/description/assets/screenshots/30.png
  84. BIN
      fleet_vehicle_inspection_management/static/description/assets/screenshots/31.png
  85. BIN
      fleet_vehicle_inspection_management/static/description/assets/screenshots/4.png
  86. BIN
      fleet_vehicle_inspection_management/static/description/assets/screenshots/5.png
  87. BIN
      fleet_vehicle_inspection_management/static/description/assets/screenshots/6.png
  88. BIN
      fleet_vehicle_inspection_management/static/description/assets/screenshots/7.png
  89. BIN
      fleet_vehicle_inspection_management/static/description/assets/screenshots/8.png
  90. BIN
      fleet_vehicle_inspection_management/static/description/assets/screenshots/9.png
  91. BIN
      fleet_vehicle_inspection_management/static/description/assets/screenshots/hero.gif
  92. BIN
      fleet_vehicle_inspection_management/static/description/banner.png
  93. BIN
      fleet_vehicle_inspection_management/static/description/icon.png
  94. 880
      fleet_vehicle_inspection_management/static/description/index.html
  95. 23
      fleet_vehicle_inspection_management/views/fleet_vehicle_log_services_views.xml
  96. 43
      fleet_vehicle_inspection_management/views/fleet_vehicle_views.xml
  97. 309
      fleet_vehicle_inspection_management/views/inspection_request_views.xml
  98. 36
      fleet_vehicle_inspection_management/views/vehicle_inspection_views.xml
  99. 119
      fleet_vehicle_inspection_management/views/vehicle_service_log_views.xml
  100. 24
      fleet_vehicle_inspection_management/wizards/__init__.py

45
fleet_vehicle_inspection_management/README.rst

@ -0,0 +1,45 @@
.. 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
Vehicle Inspection Management in Fleet
================================================
* Vehicle Inspection Management in Fleet
Installation
============
- www.odoo.com/documentation/16.0/setup/install.html
- Install our custom addon
License
-------
GNU AFFERO GENERAL PUBLIC LICENSE Version 3 (AGPL v3)
(https://www.odoo.com/documentation/user/16.0/legal/licenses/licenses.html)
Company
-------
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__
Credits
-------
* Developer:
(V16) Vishnu P
Contacts
--------
* Mail Contact : odoo@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
==========
This module is maintained by Cybrosys Technologies.
For support and more information, please visit https://www.cybrosys.com
Further information
===================
HTML Description: `<static/description/index.html>`__

24
fleet_vehicle_inspection_management/__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 (Contact : odoo@cybrosys.com)
#
# This program is under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
# Version 3 (AGPL v3)
# It is forbidden to publish, distribute, sublicense, or sell copies of the
# Software or modified copies of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
# USE OR OTHER DEALINGS IN THE SOFTWARE.
#
################################################################################
from . import models
from . import wizards

56
fleet_vehicle_inspection_management/__manifest__.py

@ -0,0 +1,56 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Cybrosys Techno Solutions (Contact : odoo@cybrosys.com)
#
# This program is under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
# Version 3 (AGPL v3)
# It is forbidden to publish, distribute, sublicense, or sell copies of the
# Software or modified copies of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
# USE OR OTHER DEALINGS IN THE SOFTWARE.
#
################################################################################
{
'name': 'Vehicle Inspection Management in Fleet',
'version': '16.0.1.0.0',
'category': 'Industries',
'summary': 'Vehicle Inspection Management for manage the Vehicle '
'Inspection and services',
'description': 'Vehicle Inspection Management used to manage the Fleet '
'Inspection and Services',
'depends': ['base', 'fleet'],
'author': 'Cybrosys Techno Solutions',
'company': 'Cybrosys Techno Solutions',
'maintainer': 'Cybrosys Techno Solutions',
'images': ['static/description/banner.png'],
'website': 'https://www.cybrosys.com',
'data': {
'security/vehicle_inspection_access.xml',
'security/ir.model.access.csv',
'data/ir_sequence_data.xml',
'data/ir_cron_data.xml',
'data/mail_template_data.xml',
'views/vehicle_inspection_views.xml',
'views/inspection_request_views.xml',
'wizards/fleet_service_inspection_views.xml',
'views/fleet_vehicle_views.xml',
'views/fleet_vehicle_log_services_views.xml',
'views/vehicle_service_log_views.xml',
'reports/vehicle_inspection_reports.xml',
'reports/vehicle_inspection_report_templates.xml',
},
'license': 'AGPL-3',
'installable': True,
'auto_install': False,
'application': False,
}

18
fleet_vehicle_inspection_management/data/ir_cron_data.xml

@ -0,0 +1,18 @@
<?xml version='1.0' encoding='utf-8'?>
<odoo>
<!-- cron function to create inspection request-->
<data noupdate="1">
<record id="ir_cron_scheduler_inspection_request" model="ir.cron">
<field name="name">Vehicle inspection Request</field>
<field name="model_id" ref="model_inspection_request"/>
<field name="state">code</field>
<field name="code">model.action_create_inspection_request()
</field>
<field name="user_id" ref="base.user_root"/>
<field name="interval_number">1</field>
<field name="interval_type">days</field>
<field name="numbercall">-1</field>
<field name="doall">1</field>
</record>
</data>
</odoo>

15
fleet_vehicle_inspection_management/data/ir_sequence_data.xml

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Inspection request sequence-->
<data noupdate="1">
<record id="sequence_inspection_request" model="ir.sequence">
<field name="name">Vehicle Inspection Request</field>
<field name="code">inspection.request</field>
<field name="prefix">INSPECTION/REQUEST</field>
<field name="padding">5</field>
<field eval="1" name="number_next"/>
<field eval="1" name="number_increment"/>
<field eval="False" name="company_id"/>
</record>
</data>
</odoo>

56
fleet_vehicle_inspection_management/data/mail_template_data.xml

@ -0,0 +1,56 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Template for vehicle inspection reminder email-->
<data noupdate="1">
<record id="vehicle_inspection_reminder_email_template"
model="mail.template">
<field name="name">Vehicle Inspection Notification Email</field>
<field name="email_from">{{object.user_id.company_id.email}}
</field>
<field name="subject">{{object.name}} -
{{object.inspection_id.name}}
</field>
<field name="model_id"
ref="fleet_vehicle_inspection_management.model_inspection_request"/>
<field name="email_to">{{object.user_id.email}}</field>
<field name="auto_delete" eval="True"/>
<field name="body_html" type="html">
<p>Dear<t t-out="object.user_id.name"/>,
</p>
<ul>This Email is about Vehicle Inspection Notification as
below:
<t t-out="object.inspection_date"/>
<br/>
<table border="1">
<thead>
<tr>
<th width="200">Vehicle</th>
<th width="200">Model</th>
<th width="200">License Plate</th>
</tr>
</thead>
<tbody>
<tr>
<td width="200">
<t t-out="object.vehicle_id.name"/>
</td>
<td width="200">
<t t-out="object.vehicle_model_id.name"/>
</td>
<td width="200">
<t t-out="object.license_plate"/>
</td>
</tr>
</tbody>
</table>
<br/>
<br/>
<p/>
</ul>
<font size="3">
<p>Thank you,</p>
</font>
</field>
</record>
</data>
</odoo>

6
fleet_vehicle_inspection_management/doc/RELEASE_NOTES.md

@ -0,0 +1,6 @@
## Module <fleet_vehicle_inspection_management>
#### 16.05.2023
#### Version 16.0.1.0.0
#### ADD
- Initial commit for Vehicle Inspection Management in Fleet

29
fleet_vehicle_inspection_management/models/__init__.py

@ -0,0 +1,29 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Cybrosys Techno Solutions (Contact : odoo@cybrosys.com)
#
# This program is under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
# Version 3 (AGPL v3)
# It is forbidden to publish, distribute, sublicense, or sell copies of the
# Software or modified copies of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
# USE OR OTHER DEALINGS IN THE SOFTWARE.
#
################################################################################
""" import models """
from . import vehicle_inspection
from . import inspection_request
from . import inspection_images
from . import fleet_vehicle
from . import inspection_request_line
from . import vehicle_service_log

92
fleet_vehicle_inspection_management/models/fleet_vehicle.py

@ -0,0 +1,92 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Cybrosys Techno Solutions (Contact : odoo@cybrosys.com)
#
# This program is under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
# Version 3 (AGPL v3)
# It is forbidden to publish, distribute, sublicense, or sell copies of the
# Software or modified copies of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
# USE OR OTHER DEALINGS IN THE SOFTWARE.
#
################################################################################
from odoo import api, fields, models
"""model to inherit vehicles in fleet"""
class FleetVehicleInherit(models.Model):
""" inherit model and add inspection lines"""
_inherit = 'fleet.vehicle'
inspection_line_ids = fields.One2many('inspection.request.line',
'fleet_vehicle_id',
string='Inspection Line',
help='Vehicle Inspection Lines')
is_inspection_active = fields.Boolean(string='Inspection active',
help='Active Vehicle Inspection',
default=False)
inspection_count = fields.Integer(string='Inspections',
help='Number of inspections',
compute='_compute_inspection_count')
def get_inspection_requests(self):
"""Inspection smart button"""
self.ensure_one()
return {
'type': 'ir.actions.act_window',
'name': 'Vehicle Inspections',
'view_mode': 'tree,form',
'res_model': 'inspection.request',
'domain': [('vehicle_id', '=', self.id)],
}
@api.depends('is_inspection_active')
def _compute_inspection_count(self):
""" calculating the vehicle inspection number """
self.inspection_count = self.env['inspection.request'].search_count(
[('vehicle_id', '=', self.id)])
class FleetVehicleLogServicesInherit(models.Model):
"""inherit fleet service add sub service types"""
_inherit = 'fleet.vehicle.log.services'
fleet_service_id = fields.Many2one('fleet.vehicle.log.services',
help='Fleet service',
string='Fleet service')
sub_service_ids = fields.One2many('fleet.service.inspection',
'service_id', help='Sub Service Lines',
string='Sub Service Lines')
inspection_reference = fields.Integer(string='Inspection Reference',
help='Inspection Reference')
inspection_name = fields.Char(string='Inspection',
help='Vehicle Inspection name')
class FleetSubServiceTypes(models.Model):
"""model for create service wizard"""
_name = 'fleet.sub.service.type'
_description = 'Fleet Sub Service Type'
service_type_id = fields.Many2one('fleet.service.type',
help='Vehicle service type',
string='Vehicle service type')
service_category = fields.Char(string='Category',
help='Vehicle service category',)
@api.onchange('service_type_id')
def _onchange_service_type_id(self):
"""select service category """
for rec in self:
rec.service_category = rec.service_type_id.category

38
fleet_vehicle_inspection_management/models/inspection_images.py

@ -0,0 +1,38 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Cybrosys Techno Solutions (Contact : odoo@cybrosys.com)
#
# This program is under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
# Version 3 (AGPL v3)
# It is forbidden to publish, distribute, sublicense, or sell copies of the
# Software or modified copies of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
# USE OR OTHER DEALINGS IN THE SOFTWARE.
#
################################################################################
"""model to add inspection images"""
from odoo import fields, models
class InspectionImages(models.Model):
"""Model to add inspection images"""
_name = 'inspection.images'
_description = 'Inspection Images'
name = fields.Char(String='Image Name', help='Image name')
image = fields.Binary(string='Image', help='Inspection Image')
inspection_id = fields.Many2one('inspection.request',
help='Vehicle inspection',
string='Vehicle inspection')
service_log_id = fields.Many2one('vehicle.service.log', help='Service log',
string='Service log')

233
fleet_vehicle_inspection_management/models/inspection_request.py

@ -0,0 +1,233 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Cybrosys Techno Solutions (Contact : odoo@cybrosys.com)
#
# This program is under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
# Version 3 (AGPL v3)
# It is forbidden to publish, distribute, sublicense, or sell copies of the
# Software or modified copies of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
# USE OR OTHER DEALINGS IN THE SOFTWARE.
#
################################################################################
"""model for inspection requests """
from datetime import timedelta
from odoo import api, fields, models
class InspectionRequests(models.Model):
"""create inspection requests"""
_name = 'inspection.request'
_description = 'Inspection Request'
_inherit = ['mail.thread', 'mail.activity.mixin']
name = fields.Char(readonly=True, store=True,
help='Inspection Request name',
string='Inspection Request name')
inspection_id = fields.Many2one('vehicle.inspection', required=True,
help='Select Vehicle Inspection',
string='Select Vehicle Inspection')
vehicle_id = fields.Many2one('fleet.vehicle', string='Vehicle',
help='Select Vehicle for inspection')
vehicle_model_id = fields.Many2one('fleet.vehicle.model', string='Model',
related="vehicle_id.model_id",
readonly=False,
store=True, help='Vehicle model')
license_plate = fields.Char(string='License Plate',
related="vehicle_id.license_plate", store=True,
readonly=False, help='vehicle license plate')
date_create = fields.Date(string='Inspection Create Date',
help='Inspection Create Date',
default=lambda self: fields.Date.today())
inspection_date = fields.Date(string='Inspection Date',
help='Vehicle inspection date',
default=lambda self: fields.Date.today())
user_id = fields.Many2one('res.users', string='Inspection Supervisor',
related='inspection_id.user_id', readonly=False,
store=True, help='Inspection supervisor')
company_id = fields.Many2one('res.company', string='Company',
help='Company',
default=lambda self: self.env.company)
image_128 = fields.Image(related='vehicle_model_id.image_128',
help='Vehicle Image', string='Image')
inspection_result = fields.Char(string='Inspection Result',
help='Vehicle inspection result')
internal_note = fields.Html(string='Internal Note', help='Internal note')
state = fields.Selection(
[('draft', 'Draft'),
('new', 'New'),
('inspection_started', 'Inspection Started'),
('inspection_finished', 'Inspection Finished'), ],
default='draft', copy=False, required=True, tracking=True,
help='Status of Inspection', string='Status of Inspection')
inspection_image_ids = fields.One2many('inspection.images',
'inspection_id',
help='Add Inspection Images',
string='Add Inspection Images')
inspection_line_reference = fields.Integer(string='Inspection Reference',
help='Inspection Line')
service_reference = fields.Integer(string='Service Reference',
help='Service Reference')
service_active = fields.Boolean('Service active', default=False,
help='Active Service smart button',
compute='_compute_service_active')
fleet_active = fields.Boolean('Service active', default=False,
help='Active Service smart button',
compute='_compute_fleet_active')
@api.model
def create(self, vals):
"""generate vehicle inspection sequence"""
if vals.get('name', 'New') == 'New':
vals['name'] = self.env['ir.sequence'].next_by_code(
'inspection.request') or 'New'
result = super(InspectionRequests, self, ).create(vals)
return result
@api.depends('service_active')
def _compute_service_active(self):
service_count = self.env['fleet.service.inspection'].search_count([
('inspection_reference', '=', self.id)])
if service_count != 0:
self.service_active = True
else:
self.service_active = False
@api.depends('fleet_active')
def _compute_fleet_active(self):
if self.vehicle_id:
self.fleet_active = True
else:
self.fleet_active = False
def action_confirm_inspection(self):
"""button to confirm inspection request"""
self.write({'state': 'new'})
inspection_request_line = self.env['inspection.request.line'].search([
('inspection_request_reference', '=', self.id)
])
if not inspection_request_line:
self.env['inspection.request.line'].create({
'fleet_vehicle_id': self.vehicle_id.id,
'description': self.inspection_id.name,
'inspection_id': self.inspection_id.id,
'inspection_period': self.inspection_id.inspection_period,
'reminder_notification': self.inspection_id.reminder_notification_days,
'user_id': self.user_id,
'next_inspection_date': self.inspection_date,
})
def action_print_report(self):
""" print pdf report"""
images = []
for rec in self.inspection_image_ids:
images.append(rec.image)
inspection_request = self.env['inspection.request'].search([
('name', '=', self.name)
])
data = {
'logo': self.vehicle_id.model_id.image_128,
'vehicle_model_id': self.vehicle_id.model_id.name,
'records': self.read(),
'license_plate': self.vehicle_id.license_plate,
'user_id': inspection_request.user_id.name,
'images': images,
}
return self.env.ref(
'fleet_vehicle_inspection_management.action_report_vehicle_inspection').report_action(
self, data=data)
def action_start_inspection(self):
"""button to start vehicle inspection"""
self.write({'state': 'inspection_started'})
def action_finish_inspection(self):
"""button to make inspection finished"""
self.write({'state': 'inspection_finished'})
def action_create_service(self):
"""opens wizard to create service"""
if not self.service_reference:
service_id = self.env['fleet.service.inspection'].create({
'inspection_reference': self.id,
'vehicle_id': self.vehicle_id.id,
})
self.service_reference = service_id
return {
'name': 'Create Service',
'type': 'ir.actions.act_window',
'res_model': 'fleet.service.inspection',
'view_mode': 'form',
'target': 'new',
'res_id': self.service_reference,
}
def action_create_inspection_request(self):
"""automatically create inspection request and send reminder email"""
vehicle_inspection_lines = self.env['inspection.request.line'].search(
[])
for lines in vehicle_inspection_lines:
reminder_day = lines.next_inspection_date - timedelta(
days=lines.reminder_notification)
if reminder_day == fields.Date.today():
inspection_line_id = self.env['inspection.request'].search([
('inspection_line_reference', '=', lines.id)])
if not inspection_line_id:
create_id = self.env['inspection.request'].create({
'inspection_id': lines.inspection_id.id,
'inspection_line_reference': lines.id,
'vehicle_id': lines.fleet_vehicle_id.id,
'vehicle_model_id': lines.fleet_vehicle_id.model_id.id,
'license_plate': lines.fleet_vehicle_id.license_plate,
'date_create': lines.create_date,
'inspection_date': lines.next_inspection_date,
'user_id': lines.user_id.id,
'company_id': self.env.company.id,
'image_128': lines.fleet_vehicle_id.model_id.image_128,
})
create_id.write({'state': 'new'})
lines.inspection_request_reference = create_id.id
next_inspection = lines.next_inspection_date + timedelta(
days=lines.inspection_period)
lines.last_inspection_date = lines.next_inspection_date
lines.next_inspection_date = next_inspection
mail_template_id = self.env.ref(
'fleet_vehicle_inspection_management.vehicle_inspection_reminder_email_template')
mail_template_id.send_mail(create_id.id)
def get_vehicle_service(self):
"""vehicle service smart button"""
service_id = self.env['fleet.service.inspection'].search([
('inspection_reference', '=', self.id)])
self.ensure_one()
return {
'type': 'ir.actions.act_window',
'name': 'Vehicle Service log',
'view_mode': 'tree,form',
'context': {'create': False},
'res_model': 'vehicle.service.log',
'domain': [('service_reference', '=', service_id.id)],
}
def get_fleet_vehicle(self):
"""fleet vehicle smart button"""
self.ensure_one()
return {
'type': 'ir.actions.act_window',
'name': 'Fleet Vehicle',
'view_mode': 'tree,form',
'res_model': 'fleet.vehicle',
'domain': [('id', '=', self.vehicle_id.id)],
}

55
fleet_vehicle_inspection_management/models/inspection_request_line.py

@ -0,0 +1,55 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Cybrosys Techno Solutions (Contact : odoo@cybrosys.com)
#
# This program is under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
# Version 3 (AGPL v3)
# It is forbidden to publish, distribute, sublicense, or sell copies of the
# Software or modified copies of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
# USE OR OTHER DEALINGS IN THE SOFTWARE.
#
################################################################################
""" model for vehicle inspection lines"""
from odoo import fields, models
class InspectionRequestLine(models.Model):
""" add inspection requests """
_name = 'inspection.request.line'
_description = 'Inspection Request Line'
fleet_vehicle_id = fields.Many2one('fleet.vehicle', string='Vehicle',
help='Select vehicle for the inspection request.')
description = fields.Char(string='Description',
help='Description for inspection request')
inspection_id = fields.Many2one('vehicle.inspection', required=True,
help='Select vehicle inspection',
string='Inspection Reference')
inspection_period = fields.Integer(string='Period(Days)',
related='inspection_id.inspection_period',
help='Recurring interval of vehicle inspection')
reminder_notification = fields.Integer(
string='Reminder Notification Date',
related='inspection_id.reminder_notification_days',
help='Number of days before need to send Reminder Email')
user_id = fields.Many2one('res.users', string='Inspection Supervisor',
related='inspection_id.user_id',
help='Instruction Supervisor')
last_inspection_date = fields.Date(string='Last Inspection Date',
help='Date of last inspection ')
next_inspection_date = fields.Date(string='Next Inspection Date',
help='Date of next inspection')
inspection_request_reference = fields.Integer(
string='Inspection Request Reference',
help='Inspection Request Reference')

42
fleet_vehicle_inspection_management/models/vehicle_inspection.py

@ -0,0 +1,42 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Cybrosys Techno Solutions (Contact : odoo@cybrosys.com)
#
# This program is under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
# Version 3 (AGPL v3)
# It is forbidden to publish, distribute, sublicense, or sell copies of the
# Software or modified copies of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
# USE OR OTHER DEALINGS IN THE SOFTWARE.
#
################################################################################
""" model for create vehicle inspections"""
from odoo import fields, models
class VehicleInspection(models.Model):
""" add vehicle inspections """
_name = 'vehicle.inspection'
_description = 'Vehicle Inspection'
name = fields.Char(string='Name', help='Name of vehicle inspection',
required=True)
inspection_period = fields.Integer(string='Period(Days)',
help='Recurring period of vehicle inspection')
reminder_notification_days = fields.Integer(
string='Reminder Notification(Days)',
help='Number of days before want to send reminder email')
user_id = fields.Many2one('res.users', string='Inspection Supervisor',
helps='Inspection supervisor')
company_id = fields.Many2one('res.company', string='Company',
help='Company Name')

44
fleet_vehicle_inspection_management/models/vehicle_service_log.py

@ -0,0 +1,44 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Cybrosys Techno Solutions (Contact : odoo@cybrosys.com)
#
# This program is under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
# Version 3 (AGPL v3)
# It is forbidden to publish, distribute, sublicense, or sell copies of the
# Software or modified copies of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
# USE OR OTHER DEALINGS IN THE SOFTWARE.
#
################################################################################
""" vehicle inspection and service details"""
from odoo import fields, models
class VehicleServiceLog(models.Model):
""" add vehicle inspection details"""
_name = 'vehicle.service.log'
_description = 'Vehicle Service Log'
_inherit = 'fleet.vehicle.log.services'
service_image_ids = fields.One2many('inspection.images', 'service_log_id',
help='Inspection Images',
string='Inspection Images')
additional_service_ids = fields.One2many('fleet.service.inspection',
'service_log_id',
help='Additional Services',
string='Additional Services')
inspection_result = fields.Char(string='Inspection Result',
help='Result of inspection')
notes = fields.Html(string='Internal Notes', help='Internal notes')
service_reference = fields.Integer(string='Service Reference',
help='Service Reference')

119
fleet_vehicle_inspection_management/reports/vehicle_inspection_report_templates.xml

@ -0,0 +1,119 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Template for vehicle inspection report-->
<template id="report_vehicle_inspection">
<t t-call="web.external_layout">
<t t-call="web.html_container">
<div class="page">
<div class="float-left">
<t t-if="logo">
<img t-attf-src="data:image/png;base64,{{logo}}"
style="max-height:5cm; max-width:5cm;"
margin="left"/>
</t>
<br/>
</div>
<div>
<table class="table">
<thead>
<tr>
<td style="text-align: center;"
colspan="4">
<strong>
<t t-esc="records[0]['name']"/>
</strong>
</td>
</tr>
</thead>
<tbody>
<tr>
<td>
<strong>Vehicle</strong>
</td>
<td>
<strong>
<t t-esc="records[0]['vehicle_id'][1]"/>
</strong>
</td>
<td>
<strong>Create Date:</strong>
</td>
<td>
<strong>
<t t-esc="records[0]['create_date']"/>
</strong>
</td>
</tr>
<tr>
<td>
<strong>Model</strong>
</td>
<td>
<strong>
<t t-esc="model_id"/>
</strong>
</td>
<td>
<strong>License Plate:</strong>
</td>
<td>
<strong>
<t t-esc="license_plate"/>
</strong>
</td>
</tr>
<tr>
<td>
<strong>Inspection Date</strong>
</td>
<td>
<strong>
<t t-esc="records[0]['inspection_date']"/>
</strong>
</td>
<td>
<strong>Inspection Supervisor</strong>
</td>
<td>
<strong>
<t t-esc="user_id"/>
</strong>
</td>
</tr>
</tbody>
</table>
</div>
<h3>Images</h3>
<table>
<t t-foreach="images" t-as="rec">
<t t-if="rec">
<img t-attf-src="data:image/png;base64,{{rec}}"
style="max-height:5cm; max-width:5cm;margin-right:5px;padding-top:10px;"
margin="left"/>
</t>
</t>
</table>
<br/>
<br/>
<div class="mt32 mb32">
<div class="col-xs-6 text-left">
<strong>Supervisor Signature:____________________
</strong>
<br/>
<br/>
<strong>Date:____________________</strong>
</div>
</div>
</div>
</t>
</t>
</template>
</odoo>

11
fleet_vehicle_inspection_management/reports/vehicle_inspection_reports.xml

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Vehicle inspection report action-->
<record id="action_report_vehicle_inspection" model="ir.actions.report">
<field name="name">Vehicle Inspection Report</field>
<field name="model">vehicle.service.log</field>
<field name="report_type">qweb-pdf</field>
<field name="report_name">fleet_vehicle_inspection_management.report_vehicle_inspection</field>
<field name="report_file">fleet_vehicle_inspection_management.report_vehicle_inspection</field>
</record>
</odoo>

8
fleet_vehicle_inspection_management/security/ir.model.access.csv

@ -0,0 +1,8 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_vehicle_inspection,vehicle_inspection,model_vehicle_inspection,base.group_user,1,1,1,1
access_inspection_request,inspection_request,model_inspection_request,base.group_user,1,1,1,1
access_inspection_images,inspection_images,model_inspection_images,base.group_user,1,1,1,1
access_inspection_request_line,inspection_request_line,model_inspection_request_line,base.group_user,1,1,1,1
access_fleet_service_inspection,fleet_service_inspection,model_fleet_service_inspection,base.group_user,1,1,1,1
access_fleet_sub_service_type,fleet_sub_service_type,model_fleet_sub_service_type,base.group_user,1,1,1,1
access_vehicle_service_log,vehicle_service_log,model_vehicle_service_log,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_inspection vehicle_inspection model_vehicle_inspection base.group_user 1 1 1 1
3 access_inspection_request inspection_request model_inspection_request base.group_user 1 1 1 1
4 access_inspection_images inspection_images model_inspection_images base.group_user 1 1 1 1
5 access_inspection_request_line inspection_request_line model_inspection_request_line base.group_user 1 1 1 1
6 access_fleet_service_inspection fleet_service_inspection model_fleet_service_inspection base.group_user 1 1 1 1
7 access_fleet_sub_service_type fleet_sub_service_type model_fleet_sub_service_type base.group_user 1 1 1 1
8 access_vehicle_service_log vehicle_service_log model_vehicle_service_log base.group_user 1 1 1 1

51
fleet_vehicle_inspection_management/security/vehicle_inspection_access.xml

@ -0,0 +1,51 @@
<?xml version='1.0' encoding='utf-8'?>
<odoo>
<!-- Access rights of fleet vehicle inspection-->
<record model="ir.module.category" id="fleet_vehicle_inspection">
<field name="name">Vehicle Inspection Management</field>
<field name="description">User access level for Vehicle Inspection
module
</field>
<field name="sequence">20</field>
</record>
<record id="group_vehicle_inspection_supervisor" model="res.groups">
<field name="name">Inspection Supervisor</field>
<field name="category_id" ref="fleet_vehicle_inspection"/>
</record>
<record id="group_vehicle_inspection_manager" model="res.groups">
<field name="name">Inspection Manager</field>
<field name="category_id" ref="fleet_vehicle_inspection"/>
<field name="implied_ids"
eval="[(4, ref('group_vehicle_inspection_supervisor'))]"/>
</record>
<!-- Record rules-->
<record id="inspection_supervisor_rule" model="ir.rule">
<field name="name">Inspection Supervisor Rule</field>
<field name="model_id" ref="model_inspection_request"/>
<field name="domain_force">[('user_id', '=', user.id)]</field>
<field name="groups"
eval="[(4, ref('fleet_vehicle_inspection_management.group_vehicle_inspection_supervisor'))]"/>
</record>
<record id="inspection_manager_rule" model="ir.rule">
<field name="name">Inspection Manager Rule</field>
<field ref="model_inspection_request" name="model_id"/>
<field name="domain_force">[(1,'=',1)]</field>
<field name="groups"
eval="[(4, ref('fleet_vehicle_inspection_management.group_vehicle_inspection_manager'))]"/>
</record>
<!-- multi company rule-->
<record id="inspection_request_company_rule" model="ir.rule">
<field name="name">Inspection Request Company Rule</field>
<field ref="model_inspection_request" name="model_id"/>
<field name="domain_force">[('company_id', '=', company_id)]</field>
</record>
<record id="vehicle_inspection_company_rule" model="ir.rule">
<field name="name">Vehicle Inspection Company Rule</field>
<field ref="model_vehicle_inspection" name="model_id"/>
<field name="domain_force">[('company_id', '=', company_id)]</field>
</record>
</odoo>

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 576 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 733 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 911 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 673 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 878 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 653 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 905 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 839 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 427 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 627 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 988 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 589 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 967 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

BIN
fleet_vehicle_inspection_management/static/description/assets/modules/1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

BIN
fleet_vehicle_inspection_management/static/description/assets/modules/2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

BIN
fleet_vehicle_inspection_management/static/description/assets/modules/3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

BIN
fleet_vehicle_inspection_management/static/description/assets/modules/4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

BIN
fleet_vehicle_inspection_management/static/description/assets/modules/5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

BIN
fleet_vehicle_inspection_management/static/description/assets/modules/6.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

BIN
fleet_vehicle_inspection_management/static/description/assets/screenshots/0-1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 105 KiB

BIN
fleet_vehicle_inspection_management/static/description/assets/screenshots/0.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 KiB

BIN
fleet_vehicle_inspection_management/static/description/assets/screenshots/1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 118 KiB

BIN
fleet_vehicle_inspection_management/static/description/assets/screenshots/10.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

BIN
fleet_vehicle_inspection_management/static/description/assets/screenshots/11.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

BIN
fleet_vehicle_inspection_management/static/description/assets/screenshots/12.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

BIN
fleet_vehicle_inspection_management/static/description/assets/screenshots/13.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 306 KiB

BIN
fleet_vehicle_inspection_management/static/description/assets/screenshots/14.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

BIN
fleet_vehicle_inspection_management/static/description/assets/screenshots/15.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

BIN
fleet_vehicle_inspection_management/static/description/assets/screenshots/16.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

BIN
fleet_vehicle_inspection_management/static/description/assets/screenshots/17.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 118 KiB

BIN
fleet_vehicle_inspection_management/static/description/assets/screenshots/18.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

BIN
fleet_vehicle_inspection_management/static/description/assets/screenshots/19.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

BIN
fleet_vehicle_inspection_management/static/description/assets/screenshots/2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

BIN
fleet_vehicle_inspection_management/static/description/assets/screenshots/20.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 114 KiB

BIN
fleet_vehicle_inspection_management/static/description/assets/screenshots/21.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

BIN
fleet_vehicle_inspection_management/static/description/assets/screenshots/22.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 KiB

BIN
fleet_vehicle_inspection_management/static/description/assets/screenshots/23.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 KiB

BIN
fleet_vehicle_inspection_management/static/description/assets/screenshots/24.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 235 KiB

BIN
fleet_vehicle_inspection_management/static/description/assets/screenshots/25.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

BIN
fleet_vehicle_inspection_management/static/description/assets/screenshots/26.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

BIN
fleet_vehicle_inspection_management/static/description/assets/screenshots/27.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

BIN
fleet_vehicle_inspection_management/static/description/assets/screenshots/28.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 91 KiB

BIN
fleet_vehicle_inspection_management/static/description/assets/screenshots/29.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 125 KiB

BIN
fleet_vehicle_inspection_management/static/description/assets/screenshots/3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

BIN
fleet_vehicle_inspection_management/static/description/assets/screenshots/30.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 137 KiB

BIN
fleet_vehicle_inspection_management/static/description/assets/screenshots/31.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 184 KiB

BIN
fleet_vehicle_inspection_management/static/description/assets/screenshots/4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 125 KiB

BIN
fleet_vehicle_inspection_management/static/description/assets/screenshots/5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 140 KiB

BIN
fleet_vehicle_inspection_management/static/description/assets/screenshots/6.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 95 KiB

BIN
fleet_vehicle_inspection_management/static/description/assets/screenshots/7.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

BIN
fleet_vehicle_inspection_management/static/description/assets/screenshots/8.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 121 KiB

BIN
fleet_vehicle_inspection_management/static/description/assets/screenshots/9.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 288 KiB

BIN
fleet_vehicle_inspection_management/static/description/banner.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

BIN
fleet_vehicle_inspection_management/static/description/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

880
fleet_vehicle_inspection_management/static/description/index.html

@ -0,0 +1,880 @@
<div style="background-color: #714B67; height: 810px; width: 100%; padding: 15px; position: relative;">
<!-- TITLE BAR -->
<div class="d-flex align-items-center justify-content-between"
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
style="color: #017E84; 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>Odoo.sh
</div>
</div>
</div>
<!-- END OF TITLE BAR -->
<div class="container">
<div class="row">
<div class="col-sm-12 col-md-12 col-lg-12">
<!-- APP HERO -->
<h1 style="color: #FFFFFF; font-weight: bolder; font-size: 50px; text-align: center; margin-top: 50px;">
Vehicle Inspection Management in Fleet.</h1>
<p style="color:#FFFFFF; padding: 8px 15px; text-align: center; font-size: 24px;">
Manage Recurring Inspection of vehicles or fleets.</p>
<!-- END OF APP HERO -->
<img src="assets/screenshots/hero.gif" class="img-responsive"
style="width: 100%; margin-left: auto; margin-right: auto;"/>
</div>
</div>
</div>
</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 helps to manage Vehicle Inspection for all vehicles or
fleets.
</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-center"
style="margin-top: 40px; margin-bottom: 40px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Option to create and manage vehicle inspection on vehicle form view.</span>
</div>
<div class="d-flex align-items-center"
style="margin-top: 40px; margin-bottom: 40px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Option to set up and manage different inspections.</span>
</div>
<div class="d-flex align-items-center"
style="margin-top: 40px; margin-bottom: 40px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Recurring Vehicle Inspections.</span>
</div>
<div class="d-flex align-items-center"
style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Option to send Automatic Vehicle Inspection Reminder Email.
</span>
</div>
<div class="d-flex align-items-center"
style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Option to create vehicle service from Inspection Request.
</span>
</div>
<div class="d-flex align-items-center"
style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Option to Print Vehicle Inspection PDF Report.</span>
</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-sm-12">
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Vehicle Inspection Management User Access
</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
Go to Settings -> User & Companies
->
Users. There has two user access 'Inspection Manager' and
'Inspection Supervisor'.</p>
<img src="assets/screenshots/0.png"
class="img-thumbnail">
<img src="assets/screenshots/0-1.png"
class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Vehicle Inspection
</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
In Fleet -> Configuration -> Vehicle Inspection,
Can see all Vehicle Inspections</p>
<img src="assets/screenshots/1.png"
class="img-thumbnail">
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
There has option to create Vehicle Inspection. </p>
<img src="assets/screenshots/2.png"
class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Create Inspection Requests
</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
In Fleet -> Vehicles ->have 'Inspection Lines' Tab,here we can
add inspections for that vehicle.</p>
<img src="assets/screenshots/4.png"
class="img-thumbnail">
<img src="assets/screenshots/5.png"
class="img-thumbnail">
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
When we reach the Inspection Reminder day it automatically
creates a Inspection Request and it sends a Vehicle Inspection
Reminder Email to the Inspection Supervisor.
</p>
<img src="assets/screenshots/6.png"
class="img-thumbnail">
<img src="assets/screenshots/7.png"
class="img-thumbnail">
In Fleet -> Inspection Request -> has different menus.Inspection
Request,Inspection to Start and Inspection to Finish.
</p>
<img src="assets/screenshots/8.png"
class="img-thumbnail">
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
'Inspection Request' Menu shows all existing Inspection
Requests.
</p>
<img src="assets/screenshots/9.png"
class="img-thumbnail">
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
'Inspection to Start' Menu shows all existing Inspection
Requests in 'Inspection Started' State.
</p>
<img src="assets/screenshots/10.png"
class="img-thumbnail">
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
'Inspection to Finish' Menu shows all existing Inspection
Requests in 'Inspection Finished' State.
</p>
<img src="assets/screenshots/11.png"
class="img-thumbnail">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Inspection Request in Kanban View
</h3>
<img src="assets/screenshots/12.png"
class="img-thumbnail">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Inspection Request in Calendar View
</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
</p>
<img src="assets/screenshots/13.png"
class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Inspection Request in Form View
</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
<img src="assets/screenshots/14.png"
class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
We can create Inspection Request directly by clicking CREATE
button,but the created Inspection Request is in draft
state. </p>
<img src="assets/screenshots/15.png"
class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
We can change the state of Inspection Request into 'New' by
clicking the 'Confirm' button and it will be added into the
Inspection Lines. </p>
<img src="assets/screenshots/16.png"
class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
</p>
<img src="assets/screenshots/17.png"
class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
There has 'START INSPECTION' button to start the vehicle
inspection.
</p>
<img src="assets/screenshots/18.png"
class="img-thumbnail">
<img src="assets/screenshots/EPR_pdf_report_20.png"
class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
The state will be changed into 'Inspection Started' state.There
has option to give Inspection Result and Internal Note under
Inspection Information tab.
</p>
<img src="assets/screenshots/19.png"
class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">We can add Inspection Images under Inspection Images
</p>
<img src="assets/screenshots/20.png"
class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">We can create service by clicking 'CREATE SERVICE' button.
</p>
<img src="assets/screenshots/21.png"
class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">If you click 'CREATE SERVICE' button,a wizard will be open and we need to provide the necessory details.
</p>
<img src="assets/screenshots/22.png"
class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">There has an option add Service types and sub service types.The Service will be created by clicking 'CREATE SERVICE' button.
</p>
<img src="assets/screenshots/23.png"
class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">In Fleet -> Services, we can see all created services.
</p>
<img src="assets/screenshots/24.png"
class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">We can see the last created service in 'New' State.
</p>
<img src="assets/screenshots/25.png"
class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">in the Inspection Request form view has 'Service' smart tab.
</p>
<img src="assets/screenshots/26.png"
class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">here can see the all services of that Inspection Request by clicking the 'Service' smart tab.
</p>
<img src="assets/screenshots/27.png"
class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">by clicking the service we can see the all the details of inspection Request and Service.
</p>
<img src="assets/screenshots/28.png"
class="img-thumbnail">
<img src="assets/screenshots/29.png"
class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">There has 'PDF Report' button to print the PDF Report.
</p>
<img src="assets/screenshots/30.png"
class="img-thumbnail">
<img src="assets/screenshots/31.png"
class="img-thumbnail">
</div>
</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/16.0/fleet_rental/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/1.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/16.0/fleet_car_workshop/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/2.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/16.0/fleet_complete_report/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/3.png">
</div>
</a>
</div>
</div>
<div class="carousel-item active"
style="min-height: 198.656px;">
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"
style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/employee_vehicle_request/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/4.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/16.0/widget_preview_image/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/5.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/16.0/shopify_odoo_connector/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/6.png">
</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 d-flex justify-content-center align-items-center"
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 d-flex justify-content-center align-items-center"
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 -->

23
fleet_vehicle_inspection_management/views/fleet_vehicle_log_services_views.xml

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Inherit view for Fleet vehicle service-->
<record id="fleet_vehicle_log_services_view_form" model="ir.ui.view">
<field name="name">
fleet.service.log.view.form.inherit.fleet.vehicle.inspection.management
</field>
<field name="model">fleet.vehicle.log.services</field>
<field name="inherit_id"
ref="fleet.fleet_vehicle_log_services_view_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='notes']"
position="after">
<field name="sub_service_ids">
<tree editable="bottom">
<field name="service_type_id"/>
<field name="service_category"/>
</tree>
</field>
</xpath>
</field>
</record>
</odoo>

43
fleet_vehicle_inspection_management/views/fleet_vehicle_views.xml

@ -0,0 +1,43 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Inherited view for Fleet vehicle-->
<record id="fleet_vehicle_view_form" model="ir.ui.view">
<field name="name">
fleet.vehicle.view.form.inherit.fleet.vehicle.inspection.management
</field>
<field name="model">fleet.vehicle</field>
<field name="inherit_id"
ref="fleet.fleet_vehicle_view_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='plan_to_change_car']"
position="after">
<field name="is_inspection_active"/>
</xpath>
<xpath expr="//button[@name='return_action_to_open']"
position="after">
<button name="get_inspection_requests" type="object"
class="oe_stat_button" icon="fa-pencil-square-o"
attrs="{'invisible':[('is_inspection_active','=',False)]}"
>
<field name="inspection_count" widget="statinfo"/>
</button>
</xpath>
<xpath expr="//notebook/page" position="before">
<page string="Inspection Lines"
attrs="{'invisible':[('is_inspection_active','=',False)]}">
<field name="inspection_line_ids">
<tree editable="bottom">
<field name="inspection_id"/>
<field name="description"/>
<field name="last_inspection_date"/>
<field name="next_inspection_date"/>
<field name="reminder_notification"/>
<field name="inspection_period"/>
<field name="user_id"/>
</tree>
</field>
</page>
</xpath>
</field>
</record>
</odoo>

309
fleet_vehicle_inspection_management/views/inspection_request_views.xml

@ -0,0 +1,309 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!--actions for Inspection request-->
<record id="inspection_request_action" model="ir.actions.act_window">
<field name="name">Inspection Requests</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">inspection.request</field>
<field name="view_mode">tree,form,kanban,calendar</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Create a new record!
</p>
</field>
</record>
<record id="inspection_request_action_to_start"
model="ir.actions.act_window">
<field name="name">Started Inspections</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">inspection.request</field>
<field name="view_mode">tree,form,kanban,calendar</field>
<field name="domain">[('state','=','inspection_started')]</field>
<field name="context">{'create': False}</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Create a new record!
</p>
</field>
</record>
<record id="inspection_request_action_to_finish"
model="ir.actions.act_window">
<field name="name">Finished Inspections</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">inspection.request</field>
<field name="view_mode">tree,form,kanban,calendar</field>
<field name="domain">[('state','=','inspection_finished')]</field>
<field name="context">{'create': False}</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Create a new record!
</p>
</field>
</record>
<!-- Inspection Request menus-->
<menuitem id="inspection_request_menu"
name="Inspection Request"
parent="fleet.menu_root"
/>
<menuitem id="inspection_request_details_menu"
name="Inspection Request"
parent="inspection_request_menu"
action="inspection_request_action"/>
<menuitem id="inspection_request_to_start_menu"
name="Inspection Started"
parent="inspection_request_menu"
action="inspection_request_action_to_start"/>
<menuitem id="inspection_request_to_finish_menu"
name="Inspection Finished"
parent="inspection_request_menu"
action="inspection_request_action_to_finish"/>
<!-- Inspection Request views-->
<record id="inspection_requests_view_form" model="ir.ui.view">
<field name="name">inspection.request.view.form</field>
<field name="model">inspection.request</field>
<field name="arch" type="xml">
<form>
<header>
<field name="state" widget='statusbar'
statusbar_visible='draft,new,inspection_started,inspection_finished'/>
<button name="action_start_inspection"
class="oe_highlight"
states="new" string="Start Inspection"
type="object"
help="Start Vehicle Inspection"/>
<button name="action_confirm_inspection"
class="oe_highlight"
states="draft" string="Confirm"
type="object"
help="Confirm Inspection Request"/>
<button name="action_finish_inspection"
class="oe_highlight"
states="inspection_started"
string="Finish Inspection" type="object"
help="Finish Vehicle Inspection"
/>
<button name="action_create_service"
class="oe_highlight"
states="inspection_started"
string="Create Service" type="object"
help="Create Service"
/>
<button name="action_print_report"
class="oe_highlight"
states="inspection_finished"
string="PDF Report"
type="object"
help="Print PDF Report"
/>
</header>
<sheet>
<div class="oe_button_box" name="button_box">
<button class="oe_stat_button" type="object"
name="get_vehicle_service"
icon="fa-wrench"
string="Service"
attrs="{'invisible':[('service_active','=',False)]}"
>
</button>
<button class="oe_stat_button" type="object"
name="get_fleet_vehicle"
icon="fa-car"
string="Fleet Vehicle"
attrs="{'invisible':[('fleet_active','=',False)]}"
>
</button>
</div>
<field name="image_128" widget="image" class="oe_avatar"/>
<div class="oe_title">
<h1>
<field name="name" placeholder="New"/>
<field name="inspection_id"
placeholder="Vehicle Inspection"/>
</h1>
</div>
<group>
<group>
<field name="vehicle_id"/>
<field name="vehicle_model_id"/>
<field name="license_plate"/>
<field name="service_active" invisible="1"/>
</group>
<group>
<field name="date_create"/>
<field name="inspection_date"/>
<field name="user_id"/>
<field name="company_id"/>
<field name="fleet_active" invisible="1"/>
</group>
</group>
<notebook>
<page name="Inspection Information"
attrs="{'invisible':[('state','!=','inspection_started'),('state','!=','inspection_finished')]}">
<group>
<group>
<field name="inspection_result"/>
</group>
<group>
<field name="internal_note"/>
</group>
</group>
</page>
<page name="Inspection Images"
attrs="{'invisible':[('state','!=','inspection_started')]}">
<field name="inspection_image_ids">
<kanban>
<field name="id"/>
<field name="name"/>
<field name="image"/>
<templates>
<t t-name="kanban-box">
<div t-attf-class="oe_kanban_global_click">
<div class="o_kanban_image">
<field name="image"
widget="image"
class="oe_avatar"/>
</div>
<div class="oe_kanban_details">
<t class="o_kanban_record_title">
<strong>
<field name="name"/>
</strong>
<br/>
</t>
</div>
</div>
</t>
</templates>
</kanban>
<form>
<sheet>
<group>
<field name="name"/>
<field name="image"/>
</group>
</sheet>
</form>
</field>
</page>
</notebook>
</sheet>
<div class="oe_chatter">
<field name="message_follower_ids"/>
<field name="activity_ids"/>
<field name="message_ids"/>
</div>
</form>
</field>
</record>
<record id="inspection_requests_view_tree" model="ir.ui.view">
<field name="name">inspection.request.view.tree</field>
<field name="model">inspection.request</field>
<field name="arch" type="xml">
<tree>
<field name="name"/>
<field name="inspection_id"/>
<field name="vehicle_id"/>
<field name="vehicle_model_id"/>
<field name="license_plate"/>
<field name="date_create"/>
<field name="inspection_date"/>
<field name="user_id"/>
<field name="state" widget="badge"
decoration-success="state == 'inspection_finished'"
decoration-warning="state == 'inspection_started'"
decoration-info="state =='new'"
/>
</tree>
</field>
</record>
<record id="inspection_request_view_kanban" model="ir.ui.view">
<field name="name">inspection.request.view.kanban</field>
<field name="model">inspection.request</field>
<field name="arch" type="xml">
<kanban>
<templates>
<t t-name="kanban-box">
<div class="oe_kanban_global_click">
<div class="oe_kanban_content">
<div class="oe_kanban_card">
<div>
<b>
<field name="inspection_id"
style="color:red;"/>
</b>
</div>
<div>
<b>
Vehicle:
<field name="vehicle_id"/>
</b>
</div>
<div>
<b>
Model:
<field name="vehicle_model_id"/>
</b>
</div>
<div>
<b>
Inspection Supervisor:
<field name="user_id"/>
</b>
</div>
<div>
<b>
Inspection Date:
<field name="inspection_date"/>
</b>
</div>
</div>
</div>
</div>
</t>
</templates>
</kanban>
</field>
</record>
<record id="inspection_request_view_calendar" model="ir.ui.view">
<field name="name">inspection.request.view.calendar</field>
<field name="model">inspection.request</field>
<field eval="2" name="priority"/>
<field name="arch" type="xml">
<calendar date_start="inspection_date" string="Inspection Request"
mode="month" quick_add="False">
<field name="inspection_id"/>
<field name="vehicle_id"/>
<field name="vehicle_model_id"/>
<field name="user_id"/>
<field name="inspection_date"/>
</calendar>
</field>
</record>
<record id="inspection_request_view_search" model="ir.ui.view">
<field name="name">inspection.request.view.search</field>
<field name="model">inspection.request</field>
<field name="arch" type="xml">
<search string="Search">
<group expand="1" string="Group By">
<filter string="Model" name="vehicle_model_id"
context="{'group_by':'vehicle_model_id', 'residual_visible':True}"/>
<filter string="Vehicle" name="vehicle_id"
context="{'group_by':'vehicle_id', 'residual_visible':True}"/>
<filter string="Status" name="state"
context="{'group_by':'state', 'residual_visible':True}"/>
<filter string="Inspection Date" name="inspection_date"
context="{'group_by':'inspection_date', 'residual_visible':True}"/>
</group>
</search>
</field>
</record>
</odoo>

36
fleet_vehicle_inspection_management/views/vehicle_inspection_views.xml

@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- actions of Vehicle Inspection-->
<record id="vehicle_inspection_action_inspection_details"
model="ir.actions.act_window">
<field name="name">Vehicle Inspection</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">vehicle.inspection</field>
<field name="view_mode">tree,kanban</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Create a new record!
</p>
</field>
</record>
<!-- Vehicle inspection menus-->
<menuitem id="vehicle_inspection_menu"
name="Vehicle Inspection"
parent="fleet.fleet_configuration"
action="fleet_vehicle_inspection_management.vehicle_inspection_action_inspection_details"/>
<!-- Vehicle inspection views-->
<record id="vehicle_inspection_view_tree" model="ir.ui.view">
<field name="name">vehicle.inspection.view.tree</field>
<field name="model">vehicle.inspection</field>
<field name="arch" type="xml">
<tree editable="bottom">
<field name="name"/>
<field name="inspection_period"/>
<field name="reminder_notification_days"/>
<field name="user_id"/>
<field name="company_id"/>
</tree>
</field>
</record>
</odoo>

119
fleet_vehicle_inspection_management/views/vehicle_service_log_views.xml

@ -0,0 +1,119 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- action of Vehicle service log -->
<record id="vehicle_service_log_action" model="ir.actions.act_window">
<field name="name">Vehicle Service Logs</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">vehicle.service.log</field>
<field name="view_mode">tree,form,kanban</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Create a new record!
</p>
</field>
</record>
<!-- views of Vehicle Service log-->
<record id="vehicle_service_log_view_form" model="ir.ui.view">
<field name="name">vehicle.service.log.view.form</field>
<field name="model">vehicle.service.log</field>
<field name="arch" type="xml">
<form>
<sheet>
<group>
<group string="Service Details">
<field name="vehicle_id"/>
<field name="service_type_id"/>
<field name="amount"/>
</group>
<group string="Odometer Details">
<label for="odometer"/>
<div class="o_row">
<field name="odometer" class="w-25"/>
<field name="odometer_unit"
class="ps-1 ps-sm-0"
modifiers="{&quot;readonly&quot;: true}"/>
</div>
</group>
<group string="Additional Details">
<field name="date"/>
<field name="vendor_id"/>
<field name="inspection_name"/>
</group>
</group>
<h4>Additional Services</h4>
<field name="additional_service_ids">
<tree editable="bottom">
<field name="service_type_id"/>
<field name="service_category"/>
</tree>
</field>
<notebook>
<page name="Inspection Information">
<group>
<group>
<field name="inspection_result"/>
</group>
<group>
<field name="notes"/>
</group>
</group>
</page>
<page name="Inspection Images">
<field name="service_image_ids">
<kanban>
<field name="id"/>
<field name="name"/>
<field name="image"/>
<templates>
<t t-name="kanban-box">
<div t-attf-class="oe_kanban_global_click">
<div class="o_kanban_image">
<field name="image"
widget="image"
class="oe_avatar"/>
</div>
<div class="oe_kanban_details">
<t class="o_kanban_record_title">
<strong>
<field name="name"/>
</strong>
<br/>
</t>
</div>
</div>
</t>
</templates>
</kanban>
<form>
<sheet>
<group>
<field name="name"/>
<field name="image"/>
</group>
</sheet>
</form>
</field>
</page>
</notebook>
</sheet>
</form>
</field>
</record>
<record id="vehicle_service_log_view_tree" model="ir.ui.view">
<field name="name">vehicle.service.log.view.tree</field>
<field name="model">vehicle.service.log</field>
<field name="arch" type="xml">
<tree>
<field name="vehicle_id"/>
<field name="service_type_id"/>
<field name="odometer"/>
<field name="odometer_unit"/>
<field name="date"/>
</tree>
</field>
</record>
</odoo>

24
fleet_vehicle_inspection_management/wizards/__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 (Contact : odoo@cybrosys.com)
#
# This program is under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
# Version 3 (AGPL v3)
# It is forbidden to publish, distribute, sublicense, or sell copies of the
# Software or modified copies of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
# USE OR OTHER DEALINGS IN THE SOFTWARE.
#
################################################################################
""" import wizard """
from . import fleet_service_inspection

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

Loading…
Cancel
Save