From e26d7e50d6fb0c50c5da1059f6baa202efb9bc05 Mon Sep 17 00:00:00 2001 From: sinergia Date: Tue, 12 Jul 2022 17:19:08 -0500 Subject: [PATCH] model 'maintenance' --- __init__.py | 3 +- equipment.xml | 7 +-- maintenance.py | 59 +++++++++++++++++++++++ maintenance.xml | 98 +++++++++++++++++++++++++++++++++++++++ tryton.cfg | 1 + view/maintenance_form.xml | 23 +++++++++ view/maintenance_tree.xml | 11 +++++ 7 files changed, 195 insertions(+), 7 deletions(-) create mode 100644 maintenance.xml create mode 100644 view/maintenance_form.xml create mode 100644 view/maintenance_tree.xml 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 @@ + + +
+