many changes
This commit is contained in:
@@ -30,7 +30,7 @@ class AddLocationPage(rio.Component):
|
||||
if get_location_id(self.parent) != False:
|
||||
self.parent_code = self.parent
|
||||
print("Found location " + get_location_id(self.parent).name)
|
||||
self.parent = get_location_id(self.parent).name
|
||||
self.parent = '*' + get_location_id(self.parent).name
|
||||
|
||||
async def add_part(self):
|
||||
if self.code == "":
|
||||
@@ -88,16 +88,19 @@ class AddLocationPage(rio.Component):
|
||||
),
|
||||
rio.TextInput(
|
||||
label="Barcode",
|
||||
text=self.bind().code
|
||||
text=self.bind().code,
|
||||
on_confirm=self._add_part_enter
|
||||
),
|
||||
rio.TextInput(
|
||||
label="Parent Location (optional)",
|
||||
text=self.bind().parent,
|
||||
on_change=self._update_location
|
||||
on_change=self._update_location,
|
||||
on_confirm=self._add_part_enter
|
||||
),
|
||||
rio.TextInput(
|
||||
label="Location Name",
|
||||
text=self.bind().name
|
||||
text=self.bind().name,
|
||||
on_confirm=self._add_part_enter
|
||||
),
|
||||
rio.MultiLineTextInput(
|
||||
label="Description (optional)",
|
||||
|
||||
Reference in New Issue
Block a user