# This file is part of lims_industry module for Tryton.
# The COPYRIGHT file at the top level of this repository contains
# the full copyright notices and license terms.

from trytond.pool import Pool
from . import configuration
from . import industry
from . import analysis
from . import sample
from . import notebook
from . import results_report
from . import party
from . import task
from . import control_tendency
from . import planification
from . import sheet


def register():
    Pool.register(
        industry.Plant,
        industry.EquipmentType,
        industry.Brand,
        industry.ComponentKind,
        industry.ComponentLocation,
        industry.ComponentType,
        industry.EquipmentTemplate,
        industry.EquipmentTemplateComponentKind,
        industry.Equipment,
        industry.Component,
        industry.ComercialProductBrand,
        industry.ComercialProduct,
        analysis.SampleAttributeSet,
        analysis.SampleAttribute,
        analysis.SampleAttributeAttributeSet,
        analysis.SamplingType,
        analysis.ProductType,
        analysis.Analysis,
        sample.Entry,
        sample.Sample,
        sample.SampleEditionLog,
        sample.Fraction,
        sample.FractionType,
        sample.CreateSampleStart,
        sample.EditSampleStart,
        sample.WarnDangerousProductStart,
        notebook.Notebook,
        results_report.ResultsReport,
        results_report.ResultsReportVersionDetail,
        results_report.ResultsReportVersionDetailSample,
        results_report.ResultsReportVersionDetailLine,
        party.Party,
        party.Address,
        task.AdministrativeTaskTemplate,
        task.AdministrativeTask,
        control_tendency.TrendChart,
        module='lims_industry', type_='model')
    Pool.register(
        configuration.Configuration,
        results_report.ResultsReport2,
        results_report.ReportNameFormat,
        module='lims_industry', type_='model',
        depends=['lims_email'])
    Pool.register(
        sheet.AnalysisSheet,
        module='lims_industry', type_='model',
        depends=['lims_analysis_sheet'])
    Pool.register(
        sample.CreateSample,
        sample.EditSample,
        sample.WarnDangerousProduct,
        results_report.OpenResultsDetailPrecedent,
        results_report.OpenResultsDetailAttachment,
        control_tendency.OpenTrendChart,
        planification.TechniciansQualification,
        module='lims_industry', type_='wizard')
    Pool.register(
        results_report.SendResultsReport,
        module='lims_industry', type_='wizard',
        depends=['lims_email'])
