Replace item dialogs with Popups for better integration
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user