36 lines
1.1 KiB
Python
36 lines
1.1 KiB
Python
# This file is part of Tryton. The COPYRIGHT file at the top level of
|
|
# this repository contains the full copyright notices and license terms.
|
|
from trytond.model import (
|
|
Workflow, ModelSQL, ModelView, Unique, fields, sequence_ordered)
|
|
from trytond.wizard import (
|
|
Button, StateAction, StateTransition, StateView, Wizard)
|
|
from trytond.modules.company import CompanyReport
|
|
from trytond.transaction import Transaction
|
|
from trytond.pyson import Bool, Eval, If, Id, Equal
|
|
from trytond.pool import Pool
|
|
from trytond.modules.currency.fields import Monetary
|
|
from trytond.modules.product import price_digits
|
|
|
|
import datetime
|
|
from datetime import timedelta
|
|
|
|
#from scipy.stats import t
|
|
#import matplotlib.pyplot as plt
|
|
#import numpy as np
|
|
#import math as mt
|
|
|
|
from io import BytesIO
|
|
from trytond.exceptions import UserError
|
|
|
|
_digits = (16, 2)
|
|
|
|
|
|
class MaintenanceService(Workflow, ModelSQL, ModelView):
|
|
'Equipment Maintenance Service'
|
|
__name__ = 'optical_equipment_maintenance.service'
|
|
|
|
|
|
class MaintenanceLine(Workflow, ModelSQL, ModelView):
|
|
'Equipment Maintenance'
|
|
__name__ = 'optical_equipment.maintenance'
|