Replace item dialogs with Popups for better integration

This commit is contained in:
Cole Deck
2024-12-20 23:41:19 +00:00
parent 27169ff8a0
commit b1c817432b
4 changed files with 254 additions and 283 deletions

View File

@@ -74,6 +74,8 @@ class AddPage(rio.Component):
self.popup_show = False
else:
# OK, add part
if self.location == "":
self.location_code = ""
if create_item(self.partnum, self.serial, self.office, self.code, locationid=self.location_code, description=self.description, manufacturer=self.manu, mac=self.mac, fwver=self.fwver) == False:
self.popup_message = "\n Duplicate barcode! \n\n"
self.popup_show = True