Minor fixes

This commit is contained in:
Oscar 2021-06-07 15:22:25 -05:00
parent 1e34808c75
commit 7149ed55b5
4 changed files with 3 additions and 17 deletions

4
README
View File

@ -1,5 +1,5 @@
trytond_dashboard_purchase
=============================
trytond_dashboard_surveillance
==============================
The purchase discount module of the Tryton application platform.

View File

@ -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'

View File

@ -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

View File

@ -1,5 +1,5 @@
[tryton]
version=5.0.1
version=6.0.0
depends:
party
product