Work on native gui: views and database model
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
# SPDX-License-Identifier: WTFPL
|
||||
|
||||
from .dbrecord import DbRecord
|
||||
|
||||
class Project(DbRecord):
|
||||
|
||||
table = "project"
|
||||
pk_field = "prokid"
|
||||
fields = ('projid', 'projname', 'vid', 'responsible', 'startdate',
|
||||
'duration', 'costs_plan', 'costs_final', 'remarks', 'projstate')
|
||||
|
||||
def __init__(self, db, projid=None):
|
||||
super().__init__(db, projid)
|
||||
self.title = _("Project({})")
|
||||
Reference in New Issue
Block a user