diff --git a/maintenance.py b/maintenance.py index b28aedb..92572c1 100644 --- a/maintenance.py +++ b/maintenance.py @@ -10,7 +10,10 @@ class Maintenance(Workflow, ModelSQL, ModelView): code = fields.Char( "Code", select=True,states={'readonly': True }) - + + maintenance_type = fields.Selection([('preventive', 'Preventive'), + ('corrective', 'Corrective') + ], "Maintenance Type") state = fields.Selection([ ('draft', "Draft"), ('agended', "Agended"), @@ -29,7 +32,7 @@ class Maintenance(Workflow, ModelSQL, ModelView): #when the maintenance is in agended status diary = fields.One2Many('optical_equipment.maintenance.diary', 'diary') estimated_agended = fields.DateTime("Date Maintenance") - technical = fields.Many2One('company.employee') + technical = fields.Many2One('company.employee', "Technical") maintenance_lines = fields.One2Many('optical_equipment.maintenance.line', 'maintenance_activity', 'Maintenance Lines', states={ diff --git a/view/maintenance_form.xml b/view/maintenance_form.xml index 28b2986..a40d536 100644 --- a/view/maintenance_form.xml +++ b/view/maintenance_form.xml @@ -10,6 +10,8 @@