create model diary
This commit is contained in:
parent
04d7041be7
commit
103b9d89ba
9
diary.py
Normal file
9
diary.py
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
from trytond.model import (
|
||||||
|
ModelSQL, ModelView, fields)
|
||||||
|
|
||||||
|
class Diary(ModelSQL, ModelView):
|
||||||
|
'Diary'
|
||||||
|
__name__ = 'optical_equipment.maintenance.diary'
|
||||||
|
|
||||||
|
code = fields.Char(
|
||||||
|
"Code", select=True,states={'readonly': True })
|
@ -27,6 +27,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')
|
||||||
estimated_agended = fields.DateTime("Date Maintenance")
|
estimated_agended = fields.DateTime("Date Maintenance")
|
||||||
technical = fields.Many2One('company.employee')
|
technical = fields.Many2One('company.employee')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user