From 7149ed55b5b3fd5aa1be7dff511dda929b2223ba Mon Sep 17 00:00:00 2001 From: Oscar Date: Mon, 7 Jun 2021 15:22:25 -0500 Subject: [PATCH] Minor fixes --- README | 4 ++-- dash.py | 2 -- surveillance.py | 12 ------------ tryton.cfg | 2 +- 4 files changed, 3 insertions(+), 17 deletions(-) diff --git a/README b/README index 15e57e0..8566a8e 100644 --- a/README +++ b/README @@ -1,5 +1,5 @@ -trytond_dashboard_purchase -============================= +trytond_dashboard_surveillance +============================== The purchase discount module of the Tryton application platform. diff --git a/dash.py b/dash.py index da13490..10b124c 100644 --- a/dash.py +++ b/dash.py @@ -2,8 +2,6 @@ # this repository contains the full copyright notices and license terms. from trytond.pool import PoolMeta -__all__ = ['DashApp'] - class DashApp(metaclass=PoolMeta): __name__ = 'dash.app' diff --git a/surveillance.py b/surveillance.py index a485ad0..1df76e4 100644 --- a/surveillance.py +++ b/surveillance.py @@ -1,27 +1,15 @@ # This file is part of purchase_discount module for Tryton. # The COPYRIGHT file at the top level of this repository contains # the full copyright notices and license terms. -import math -from decimal import Decimal -from sql import Table -from sql.aggregate import Sum -from datetime import date -from trytond.pool import Pool, PoolMeta from trytond.transaction import Transaction from trytond.model import ModelView, ModelSQL, fields -__all__ = ['AppSurveillanceSchedule'] - class AppSurveillanceSchedule(ModelSQL, ModelView): 'App Surveillance Schedule' __name__ = 'dash.app.surveillance_schedule' company = fields.Many2One('company.company', 'Company', required=True) - @classmethod - def __setup__(cls): - super(AppSurveillanceSchedule, cls).__setup__() - @staticmethod def default_company(): return Transaction().context.get('company') or None diff --git a/tryton.cfg b/tryton.cfg index 6095c9d..3044162 100644 --- a/tryton.cfg +++ b/tryton.cfg @@ -1,5 +1,5 @@ [tryton] -version=5.0.1 +version=6.0.0 depends: party product