Minor fixes
This commit is contained in:
parent
1e34808c75
commit
7149ed55b5
4
README
4
README
|
@ -1,5 +1,5 @@
|
|||
trytond_dashboard_purchase
|
||||
=============================
|
||||
trytond_dashboard_surveillance
|
||||
==============================
|
||||
|
||||
The purchase discount module of the Tryton application platform.
|
||||
|
||||
|
|
2
dash.py
2
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'
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[tryton]
|
||||
version=5.0.1
|
||||
version=6.0.0
|
||||
depends:
|
||||
party
|
||||
product
|
||||
|
|
Loading…
Reference in New Issue