add field maintenance type
This commit is contained in:
parent
11473f11ba
commit
610106befe
@ -10,7 +10,10 @@ class Maintenance(Workflow, ModelSQL, ModelView):
|
|||||||
|
|
||||||
code = fields.Char(
|
code = fields.Char(
|
||||||
"Code", select=True,states={'readonly': True })
|
"Code", select=True,states={'readonly': True })
|
||||||
|
|
||||||
|
maintenance_type = fields.Selection([('preventive', 'Preventive'),
|
||||||
|
('corrective', 'Corrective')
|
||||||
|
], "Maintenance Type")
|
||||||
state = fields.Selection([
|
state = fields.Selection([
|
||||||
('draft', "Draft"),
|
('draft', "Draft"),
|
||||||
('agended', "Agended"),
|
('agended', "Agended"),
|
||||||
@ -29,7 +32,7 @@ class Maintenance(Workflow, ModelSQL, ModelView):
|
|||||||
#when the maintenance is in agended status
|
#when the maintenance is in agended status
|
||||||
diary = fields.One2Many('optical_equipment.maintenance.diary', 'diary')
|
diary = fields.One2Many('optical_equipment.maintenance.diary', 'diary')
|
||||||
estimated_agended = fields.DateTime("Date Maintenance")
|
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 = fields.One2Many('optical_equipment.maintenance.line', 'maintenance_activity',
|
||||||
'Maintenance Lines', states={
|
'Maintenance Lines', states={
|
||||||
|
@ -10,6 +10,8 @@
|
|||||||
<field name="propietary"/>
|
<field name="propietary"/>
|
||||||
<label name="propietary_address"/>
|
<label name="propietary_address"/>
|
||||||
<field name="propietary_address"/>
|
<field name="propietary_address"/>
|
||||||
|
<label name="maintenance_type"/>
|
||||||
|
<field name="maintenance_type"/>
|
||||||
<label name="equipment"/>
|
<label name="equipment"/>
|
||||||
<field name="equipment"/>
|
<field name="equipment"/>
|
||||||
<newline/>
|
<newline/>
|
||||||
|
Loading…
Reference in New Issue
Block a user