add field maintenance type
This commit is contained in:
parent
11473f11ba
commit
610106befe
@ -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={
|
||||
|
@ -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/>
|
||||
|
Loading…
Reference in New Issue
Block a user