Native gui first steps: storage, box and companies are editable
This commit is contained in:
1 parent
1eea4058bf
commit
06a9834688
47 files changed
+3119
-883
No files matched your search
@@ -1,6 +1,7 @@
|
||||
# SPDX-License-Identifier: WTFPL
|
||||
|
||||
from .dbrecord import DbRecord
|
||||
from yms.lookup import Table
|
||||
|
||||
class Project(DbRecord):
|
||||
|
||||
@@ -12,3 +13,8 @@ class Project(DbRecord):
|
||||
def __init__(self, db, projid=None):
|
||||
super().__init__(db, projid)
|
||||
self.title = _("Project({})")
|
||||
|
||||
def save(self, commit=True):
|
||||
super().save(Table.PROJECTS)
|
||||
if commit:
|
||||
self.conn.commit()
|
||||
Reference in new issue
Block a user