Native gui first steps: storage, box and companies are editable

This commit is contained in:
thooge committed 2026-10-21 17:16:55 +02:00
1 parent 1eea4058bf
commit 06a9834688
47 files changed
+3119 -883

No files matched your search

+12
View File
@@ -1,6 +1,13 @@
# SPDX-License-Identifier: WTFPL
from .dbrecord import DbRecord
from yms.lookup import Table
# names for fixed dropdown values
SUPPLIER = 1
MANUFACTURER = 2
SHIPYARD = 3
MISC = 9
class Company(DbRecord):
@@ -13,3 +20,8 @@ class Company(DbRecord):
def __init__(self, db, compid=None):
super().__init__(db, compid)
self.title = _("Company({})")
def save(self, commit=True):
super().save(Table.COMPANIES)
if commit:
self.conn.commit()