diff --git a/__init__.py b/__init__.py index 7101a02..b21e6e1 100644 --- a/__init__.py +++ b/__init__.py @@ -1,6 +1,6 @@ from trytond.pool import Pool from . import (address, party, product, purchase, sale, - equipment, configuration_equipment, subscription) + equipment, configuration_equipment, maintenance, subscription) def register(): Pool.register( @@ -14,6 +14,7 @@ def register(): sale.CreateSubscriptionStart, equipment.OpticalEquipment, configuration_equipment.Configuration, + maintenance.Maintenance, subscription.Subscription, subscription.SubscriptionEquipment, module='optical_equipment', type_='model') diff --git a/equipment.xml b/equipment.xml index 4528483..0e2edd7 100644 --- a/equipment.xml +++ b/equipment.xml @@ -15,11 +15,6 @@ name="Equipment" sequence="40" id="menu_equipment"/> - Equipments optical_equipment.equipment @@ -90,7 +85,7 @@ + + + + + Maintenances + optical_equipment.maintenance + + + + optical_equipment.maintenance + tree + maintenance_tree + + + optical_equipment.maintenance + form + maintenance_form + + + + + + + + + + + + + Draft + + + + + + + Agended + + + + + + + In progress + + + + + + + Finished + + + + + + + All + + + + + + draft + Draft + + + + agended + Agended + + + + in_progress + In progress + + + + finished + Finished + + + + + diff --git a/tryton.cfg b/tryton.cfg index 80f7e34..02795fc 100644 --- a/tryton.cfg +++ b/tryton.cfg @@ -20,5 +20,6 @@ xml: sale.xml purchase.xml uom.xml + maintenance.xml subscription.xml message.xml \ No newline at end of file diff --git a/view/maintenance_form.xml b/view/maintenance_form.xml new file mode 100644 index 0000000..2b6bc20 --- /dev/null +++ b/view/maintenance_form.xml @@ -0,0 +1,23 @@ + + +
+