diff --git a/maintenance.py b/maintenance.py index 40e01ed..886fea2 100644 --- a/maintenance.py +++ b/maintenance.py @@ -53,7 +53,7 @@ class MaintenanceService(Workflow, ModelSQL, ModelView): domain=[('party', '=', Eval('propietary'))], states=_states) lines = fields.One2Many('optical_equipment.maintenance', 'service_maintenance', "Lines") - estimated_agended = fields.DateTime("Date Maintenance", states=_states) + estimated_agended = fields.DateTime("Date Maintenance", readonly=True) current_agended = fields.Many2One('optical_equipment_maintenance.diary', "Current Agended", states=_states) history_agended = fields.Many2Many('optical_equipment_maintenance.service-maintenance.diary', 'maintenance_service', 'agended', "History Agended", readonly=True) @@ -61,8 +61,8 @@ class MaintenanceService(Workflow, ModelSQL, ModelView): ('agended', "Agended"), ('in_progress', "In progress"), ('finish', "Finish"), - ('failed', "Failed")], "State Agenda", states=_states) - technical = fields.Many2One('company.employee', "Technical", states=_states) + ('failed', "Failed")], "State Agenda", readonly=True) + technical = fields.Many2One('company.employee', "Technical", readonly=True) state = fields.Selection([('draft', "Draft"), ('agended', "Agended"), ('in_progress', "In Progress"), diff --git a/report/Maintenance_Service.fodt b/report/Maintenance_Service.fodt index e7dd2e9..6244c28 100644 --- a/report/Maintenance_Service.fodt +++ b/report/Maintenance_Service.fodt @@ -1,7 +1,7 @@ - 2022-11-03T17:09:30.5000787642023-04-03T16:41:02.805514975PT1H31M30S27LibreOffice/7.4.6.2$Linux_X86_64 LibreOffice_project/40$Build-2 + 2022-11-03T17:09:30.5000787642023-04-04T13:02:53.349084749PT1H32M5S28LibreOffice/7.4.6.2$Linux_X86_64 LibreOffice_project/40$Build-2 0 @@ -13,8 +13,8 @@ view2 - 8172 - 16147 + 6519 + 10093 0 0 30626 @@ -91,7 +91,7 @@ true true - 1866001 + 1933266 true false @@ -158,7 +158,7 @@ - + @@ -606,64 +606,56 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - + + @@ -1353,20 +1345,20 @@ <for each="maintenance in records"> - <choose test=""> - <when test="maintenance.maintenance_type == 'initial"> - REGISTRO DE MANTENIMIENTO PREVENTIVO - </when> - <when test="maintenance.maintenance_type == 'preventive'"> + <choose test=""> + <when test="maintenance.maintenance_type == 'initial'"> + REGISTRO DE MANTENIMIENTO PREVENTIVO + </when> + <when test="maintenance.maintenance_type == 'preventive'"> REGISTRO DE MANTENIMIENTO PREVENTIVO - </when> - <when test="maintenance.maintenance_type == 'corrective'"> - REGISTRO DE MANTENIMIENTO CORRECTIVO - </when> - </choose> + </when> + <when test="maintenance.maintenance_type == 'corrective'"> + REGISTRO DE MANTENIMIENTO CORRECTIVO + </when> + </choose> Fecha <format_datetime(datetime.datetime.now(),user.language, '%b/%d/%Y', maintenance.company.timezone)> Consecutivo <maintenance.code> - + INFORMACIÓN DEL PROPIETARIO @@ -1405,7 +1397,7 @@ - <choose test=""> + <choose test=""> Trabajo Realizado @@ -1460,52 +1452,52 @@ - - <when test="maintenance.maintenance_type == 'corrective'"> - Trabajo Realizado + + <when test="maintenance.maintenance_type == 'corrective'"> + Trabajo Realizado - Repuesto + Repuesto - Actividad de Mantenimiento + Actividad de Mantenimiento - Descripción + Descripción - <for each="line in maintenance.maintenance_lines"> + <for each="line in maintenance.maintenance_lines"> - <"X" if line.line_replace else ""> + <"X" if line.line_replace else ""> - <"X" if line.line_maintenance_activity else ""> + <"X" if line.line_maintenance_activity else ""> - <line.maintenance_activity.name if line.line_maintenance_activity else line.replacement.name> + <line.maintenance_activity.name if line.line_maintenance_activity else line.replacement.name> - </for> + </for> - </when> - </choose> + </when> + </choose> Observaciones <maintenance.description_activity>