kalenislims/lims_report_html/__init__.py

53 lines
1.7 KiB
Python

# This file is part of lims_report_html 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 trytond.report import Report
from . import action
from . import html_template
from . import configuration
from . import laboratory
from . import party
from . import sample
from . import analysis
from . import results_report
from . import notebook
def register():
module = 'lims_report_html'
Pool.register(
action.ActionReport,
html_template.ReportTemplate,
html_template.ReportTemplateTranslation,
html_template.ReportTemplateSection,
html_template.ResultsReportTemplate,
html_template.ResultsReportTemplateTrendChart,
configuration.Configuration,
laboratory.Laboratory,
party.Party,
sample.Fraction,
sample.Sample,
sample.CreateSampleStart,
analysis.Analysis,
results_report.ResultsReportVersionDetail,
results_report.ResultsReportVersionDetailSection,
results_report.ResultsReportVersionDetailTrendChart,
results_report.ResultsReportVersionDetailSample,
results_report.GenerateReportStart,
results_report.RelateAttachmentResultsReportStart,
notebook.Notebook,
module=module, type_='model')
Pool.register(
action.ReportTranslationSet,
sample.CreateSample,
results_report.GenerateReport,
results_report.RelateAttachmentResultsReport,
module=module, type_='wizard')
Pool.register(
results_report.ResultReport,
module=module, type_='report')
Pool.register_mixin(html_template.LimsReport, Report,
module=module)