More work on native gui. Make data editable.
This commit is contained in:
1 parent
5641e1706f
commit
7aa5d2af3b
43 files changed
+2686
-1037
No files matched your search
@@ -1,6 +1,7 @@
|
||||
# SPDX-License-Identifier: WTFPL
|
||||
|
||||
from .dbrecord import DbRecord
|
||||
from yms.lookup import Table
|
||||
|
||||
class Inventory(DbRecord):
|
||||
|
||||
@@ -13,3 +14,8 @@ class Inventory(DbRecord):
|
||||
def __init__(self, db, invid=None):
|
||||
super().__init__(db, invid)
|
||||
self.title = _("Inventory({})")
|
||||
|
||||
def save(self, commit=True):
|
||||
super().save()
|
||||
if commit:
|
||||
self.conn.commit()
|
||||
@@ -13,3 +13,8 @@ class Provision(DbRecord):
|
||||
def __init__(self, db, provid=None):
|
||||
super().__init__(db, provid)
|
||||
self.title = _("Provision({})")
|
||||
|
||||
def save(self, commit=True):
|
||||
super().save()
|
||||
if commit:
|
||||
self.conn.commit()
|
||||
Reference in new issue
Block a user