In the assignation logs in hr_fleet, it is possible to access the list of attachments and upload new files to a certain log. However, we currently enter the form view for ir.attachment to create the record and many technical fields are shown that are not necessary. This commit overwrites the kanban view adding an upload button that will open the file upload dialog of the OS and automatically add the uploaded files to that certain assignation log. task-2742923 closes odoo/odoo#83755 Signed-off-by: Kevin Baptiste <kba@odoo.com>
31 lines
887 B
Python
31 lines
887 B
Python
# -*- encoding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
{
|
|
'name': 'Fleet History',
|
|
'version': '1.0',
|
|
'category': 'Human Resources',
|
|
'summary': 'Get history of driven cars by employees',
|
|
'depends': ['hr', 'fleet'],
|
|
'data': [
|
|
'security/ir.model.access.csv',
|
|
'security/hr_fleet_security.xml',
|
|
'views/employee_views.xml',
|
|
'views/fleet_vehicle_views.xml',
|
|
'views/fleet_vehicle_cost_views.xml',
|
|
'wizard/hr_departure_wizard_views.xml',
|
|
],
|
|
'demo': [
|
|
'data/hr_fleet_demo.xml',
|
|
],
|
|
'assets': {
|
|
'web.assets_backend': [
|
|
'hr_fleet/static/src/js/attachment_kanban.js',
|
|
],
|
|
'web.assets_qweb': [
|
|
'hr_fleet/static/src/xml/attachment_kanban.xml',
|
|
],
|
|
},
|
|
'auto_install': True,
|
|
'license': 'LGPL-3',
|
|
}
|