diff --git a/__init__.py b/__init__.py
index 4253dde..1492de5 100644
--- a/__init__.py
+++ b/__init__.py
@@ -18,6 +18,9 @@ def register():
maintenance.MaintenanceService,
maintenance.MaintenanceActivity,
maintenance.MaintenanceLine,
+ maintenance.AgendedInitial,
+ maintenance.ReAgended,
+ maintenance.ServiceMaintenanceAgended,
move.Move,
move.ShipmentOut,
sale.Sale,
@@ -33,5 +36,7 @@ def register():
Pool.register(
subscription.CreateContract,
subscription.CreateProrogue,
- subscription.CreateSubscriptionInvoice,
+ subscription.CreateSubscriptionInvoice,
+ maintenance.AssingAgended,
+ maintenance.ReAssingAgended,
module='optical_equipment', type_='wizard')
diff --git a/configuration_equipment.py b/configuration_equipment.py
index 2be89d0..71bbb13 100644
--- a/configuration_equipment.py
+++ b/configuration_equipment.py
@@ -8,5 +8,8 @@ class Configuration(ModelSingleton, ModelSQL, ModelView):
equipment_sequence = fields.Many2One('ir.sequence', "Equipment Sequence",
domain=[('sequence_type', '=', Id('optical_equipment', 'sequence_type_equipment'))
- ]
- )
+ ])
+ maintenance_sequence = fields.Many2One('ir.sequence', "Maintenance Sequence",
+ domain=[('sequence_type', '=', Id('optical_equipment', 'sequence_type_maintenances'))
+ ])
+
diff --git a/contract_form1.xml b/contract_form1.xml
deleted file mode 100644
index 7c9c28b..0000000
--- a/contract_form1.xml
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-
diff --git a/contract_list1.xml b/contract_list1.xml
deleted file mode 100644
index 665097d..0000000
--- a/contract_list1.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
diff --git a/create_invoice_contract_form.xml b/create_invoice_contract_form.xml
deleted file mode 100644
index 5c2ed43..0000000
--- a/create_invoice_contract_form.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
diff --git a/create_prorogue_form.xml b/create_prorogue_form.xml
deleted file mode 100644
index 53f9da6..0000000
--- a/create_prorogue_form.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
diff --git a/diary.py b/diary.py
index e1f37d3..ec84354 100644
--- a/diary.py
+++ b/diary.py
@@ -3,7 +3,24 @@ from trytond.model import (
class Diary(ModelSQL, ModelView):
'Diary'
- __name__ = 'optical_equipment.maintenance.diary'
+ __name__ = 'optical_equipment_maintenance.diary'
code = fields.Char(
"Code", select=True,states={'readonly': True })
+
+ date_expected = fields.DateTime("Expected Date")
+ date_estimated = fields.DateTime("Estimated Date")
+ date_end = fields.DateTime("Date End")
+ maintenance_service = fields.Many2One('optical_equipment.maintenance.service', 'Maintenance Service')
+ technical = fields.Many2One('company.employee', "Technical")
+
+ state = fields.Selection([('draft', "Draft"),
+ ('agended', "Agended"),
+ ('in_progress', "In Progress"),
+ ('failed', "Failed"),
+ ('finished', "Finished")
+ ], "State", required=True, readonly=True, sort=True)
+
+ @classmethod
+ def default_state(self):
+ return 'draft'
diff --git a/equipment.xml b/equipment.xml
index d32520c..fb72fd5 100644
--- a/equipment.xml
+++ b/equipment.xml
@@ -11,6 +11,14 @@
+
+ Maintenance Administration
+
+
+
+
+