add field maintenance type

This commit is contained in:
sinergia 2022-07-18 09:36:19 -05:00
parent 11473f11ba
commit 610106befe
2 changed files with 7 additions and 2 deletions

View File

@ -11,6 +11,9 @@ 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={

View File

@ -10,6 +10,8 @@
<field name="propietary"/>
<label name="propietary_address"/>
<field name="propietary_address"/>
<label name="maintenance_type"/>
<field name="maintenance_type"/>
<label name="equipment"/>
<field name="equipment"/>
<newline/>